Commit 8cd7617b authored by Ben Zimmer's avatar Ben Zimmer Committed by GitHub

Replaces deprecated `scrape_configs` in examples

According to https://prometheus.io/docs/operating/configuration/ the `target_groups` field was replaced by `static_configs`.
parent 9b167942
......@@ -51,7 +51,7 @@ scrape_configs:
# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s
target_groups:
static_configs:
- targets: ['localhost:9090']
```
......@@ -191,7 +191,7 @@ scrape_configs:
# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s
target_groups:
static_configs:
- targets: ['localhost:8080', 'localhost:8081']
labels:
group: 'production'
......@@ -252,7 +252,7 @@ scrape_configs:
# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s
target_groups:
static_configs:
- targets: ['localhost:9090']
- job_name: 'example-random'
......@@ -260,7 +260,7 @@ scrape_configs:
# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s
target_groups:
static_configs:
- targets: ['localhost:8080', 'localhost:8081']
labels:
group: 'production'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment