Skip to content
Snippets Groups Projects
Commit dbe4f3eb authored by Thomas Schneider's avatar Thomas Schneider
Browse files

prometheus: Fix scraping prometheus’ own metrics

parent 54808597
No related branches found
No related tags found
No related merge requests found
--- ---
prometheus_args: "" prometheus_args: ""
prometheus_metrics_path: /metrics
# This variable intentionally left null. They need to exist, so that the # This variable intentionally left null. They need to exist, so that the
# template works, but they need to have a value (empty string does not work). # template works, but they need to have a value (empty string does not work).
prometheus_rules: null prometheus_rules: null
......
...@@ -18,6 +18,7 @@ scrape_configs: ...@@ -18,6 +18,7 @@ scrape_configs:
# Override the global default and scrape targets from this job every 5 seconds. # Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s scrape_interval: 5s
scrape_timeout: 5s scrape_timeout: 5s
metrics_path: '{{ prometheus_metrics_path }}'
static_configs: static_configs:
- targets: - targets:
- 'localhost:9090' - 'localhost:9090'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment