PCA (Prometheus Certified Associate) sample exam question with answer 572
Question:
When configuring a Prometheus data source in Grafana, which of the following is a configuration setting?
- Scrape Interval
- Service Discovery Configs
- gRPC URL to Prometheus Server
- Scrape Timeout
Answer:
A - is the correct answer. Note that this setting in Grafana should be set the same as the typical scrape interval configured in Prometheus. Unlike in Prometheus, this setting in Grafana does not affect scraping of your targets. Instead, Grafana uses it as a guide when drawing visualizations. More at
datasources
B - is incorrect as this is only configurable within the scrape configuration in Prometheus
C - is incorrect as the Prometheus Query API is served over HTTP, not gRPC
D - is incorrect as this is only configurable within the scrape configuration in Prometheus