Kubernetes - Monitoring and LoggingWhich of the following is the correct way to add a Prometheus data source in Grafana's UI?AGo to Configuration > Data Sources > Add data source > Select PrometheusBGo to Dashboards > New Dashboard > Add PrometheusCUse kubectl to apply a Prometheus config fileDInstall Prometheus plugin via Grafana CLICheck Answer
Step-by-Step SolutionSolution:Step 1: Locate data source settings in Grafana UIData sources are added under Configuration > Data Sources.Step 2: Select Prometheus as the data source typeChoose Prometheus from the list to add it.Final Answer:Go to Configuration > Data Sources > Add data source > Select Prometheus -> Option AQuick Check:Adding data source = Configuration > Data Sources [OK]Quick Trick: Add data sources via Configuration menu in Grafana [OK]Common Mistakes:Trying to add data source in Dashboards sectionUsing kubectl instead of Grafana UIAssuming plugin install is needed for Prometheus
Master "Monitoring and Logging" in Kubernetes9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kubernetes Quizzes Monitoring and Logging - Prometheus for metrics collection - Quiz 13medium Monitoring and Logging - Alerting with Prometheus Alertmanager - Quiz 6medium Monitoring and Logging - Why cluster monitoring matters - Quiz 11easy Operators and Custom Resources - Operator pattern overview - Quiz 4medium Operators and Custom Resources - Why operators extend Kubernetes - Quiz 3easy Operators and Custom Resources - Operator SDK basics - Quiz 2easy Production Best Practices - etcd backup and recovery - Quiz 7medium Service Mesh - Why service mesh matters - Quiz 12easy Troubleshooting - Pod in CrashLoopBackOff - Quiz 10hard Troubleshooting - Node troubleshooting - Quiz 13medium