scrape_interval: 15s — collect metrics every 15 seconds.
This defines how often Prometheus pulls metrics from its targets.
Fifteen seconds is a reasonable default: frequent enough for visibility, but not too heavy for most systems.
A job named prometheus that scrapes itself.
Prometheus exposes its own internal metrics at localhost:9090/metrics.
Scraping itself allows you to monitor Prometheus performance and health.
This is the default configuration shipped with Prometheus.
When you download Prometheus, it includes a simple config that monitors only itself.
Start small and expand gradually.
Begin with this minimal setup, then add more scrape_configs as you introduce new applications, exporters, or infrastructure components.