Commit 03ca82d0 authored by Björn Rabenstein's avatar Björn Rabenstein Committed by GitHub

Merge pull request #495 from benzimmer/patch-1

Replaces deprecated `scrape_configs` in examples
parents 9b167942 8cd7617b
...@@ -51,7 +51,7 @@ scrape_configs: ...@@ -51,7 +51,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
target_groups: static_configs:
- targets: ['localhost:9090'] - targets: ['localhost:9090']
``` ```
...@@ -191,7 +191,7 @@ scrape_configs: ...@@ -191,7 +191,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
target_groups: static_configs:
- targets: ['localhost:8080', 'localhost:8081'] - targets: ['localhost:8080', 'localhost:8081']
labels: labels:
group: 'production' group: 'production'
...@@ -252,7 +252,7 @@ scrape_configs: ...@@ -252,7 +252,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
target_groups: static_configs:
- targets: ['localhost:9090'] - targets: ['localhost:9090']
- job_name: 'example-random' - job_name: 'example-random'
...@@ -260,7 +260,7 @@ scrape_configs: ...@@ -260,7 +260,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
target_groups: static_configs:
- targets: ['localhost:8080', 'localhost:8081'] - targets: ['localhost:8080', 'localhost:8081']
labels: labels:
group: 'production' 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