Challenge - 5 Problems
Prometheus Exporter Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Prometheus Nginx Exporter Metrics Endpoint Output
You have configured the Prometheus Nginx exporter to expose metrics at
http://localhost:9113/metrics. What is the expected output when you curl this endpoint?Nginx
curl http://localhost:9113/metricsAttempts:
2 left
💡 Hint
Prometheus exporters expose metrics in a simple text format for scraping.
✗ Incorrect
Prometheus exporters expose metrics as plain text with metric names and values, not JSON or HTML.
❓ Configuration
intermediate2:00remaining
Configuring Nginx for Prometheus Exporter
Which Nginx configuration snippet correctly enables the stub_status module at
/nginx_status for Prometheus exporter scraping?Attempts:
2 left
💡 Hint
The stub_status directive provides basic Nginx metrics.
✗ Incorrect
The stub_status directive enables Nginx to expose metrics at the specified location, allowing Prometheus exporter to scrape them.
❓ Troubleshoot
advanced2:00remaining
Prometheus Exporter Fails to Scrape Nginx Metrics
You configured Prometheus to scrape Nginx metrics from
http://localhost:9113/metrics, but no data appears in Prometheus. What is the most likely cause?Attempts:
2 left
💡 Hint
Check if Nginx exposes metrics for the exporter to collect.
✗ Incorrect
If the stub_status endpoint is not enabled or blocked, the exporter cannot collect metrics, so Prometheus sees no data.
🔀 Workflow
advanced3:00remaining
Steps to Add Nginx Metrics to Prometheus Monitoring
What is the correct order of steps to add Nginx metrics to Prometheus using the Prometheus Nginx exporter?
Attempts:
2 left
💡 Hint
Think about enabling metrics first, then running exporter, then configuring Prometheus.
✗ Incorrect
First enable stub_status, then run exporter to collect metrics, then configure Prometheus to scrape, finally reload services.
✅ Best Practice
expert2:30remaining
Securing Nginx Metrics Endpoint for Prometheus Exporter
Which method is the best practice to secure the Nginx stub_status endpoint exposed for Prometheus scraping?
Attempts:
2 left
💡 Hint
Limit access to trusted sources only.
✗ Incorrect
Restricting access by IP ensures only Prometheus can scrape metrics, reducing security risks.