0
0
Nginxdevops~5 mins

Prometheus exporter in Nginx - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a Prometheus exporter?
A Prometheus exporter is a tool that collects metrics from a system or application and exposes them in a format Prometheus can read.
Click to reveal answer
beginner
Why do we need a Prometheus exporter for Nginx?
Nginx does not expose metrics in Prometheus format by default, so an exporter collects Nginx stats and converts them for Prometheus to scrape.
Click to reveal answer
intermediate
Which Nginx module is commonly used to expose metrics for Prometheus?
The 'nginx-prometheus-exporter' or a sidecar exporter is commonly used to expose Nginx metrics in Prometheus format.
Click to reveal answer
beginner
How does Prometheus get metrics from an exporter?
Prometheus periodically sends HTTP requests to the exporter's metrics endpoint to collect the current metrics data.
Click to reveal answer
intermediate
What kind of metrics can the Nginx Prometheus exporter provide?
It can provide metrics like request counts, response statuses, connection states, and request durations.
Click to reveal answer
What is the main role of a Prometheus exporter?
ATo collect and expose metrics in Prometheus format
BTo store metrics data permanently
CTo visualize metrics in dashboards
DTo send alerts based on metrics
Which protocol does Prometheus use to scrape metrics from an exporter?
AFTP
BHTTP
CSSH
DSMTP
Why can't Prometheus directly scrape Nginx metrics without an exporter?
ANginx metrics are encrypted
BPrometheus only works with databases
CNginx blocks Prometheus IPs
DNginx does not expose metrics in Prometheus format by default
Which of these is NOT a typical metric provided by the Nginx Prometheus exporter?
ARequest count
BConnection states
CCPU temperature
DResponse status codes
How often does Prometheus scrape metrics from exporters by default?
AEvery 15 seconds
BEvery 1 second
CEvery 1 hour
DOnly once at startup
Explain how a Prometheus exporter works with Nginx to provide monitoring data.
Think about how data flows from Nginx to Prometheus.
You got /4 concepts.
    Describe the steps to set up a Prometheus exporter for Nginx.
    Focus on installation, configuration, and scraping.
    You got /4 concepts.