Commit b0af6d9e authored by Brian Brazil's avatar Brian Brazil

Make it clear what the full config is.

parent df6b8d26
......@@ -246,8 +246,8 @@ job_service:rpc_durations_microseconds_count:avg_rate5m = avg(rate(rpc_durations
```
To make Prometheus pick up this new rule, add a `rule_files` statement to the
global configuration section in your `prometheus.conf`. The global section
should now look like this:
global configuration section in your `prometheus.conf`. The config should now
look like this:
```
# Global default settings.
......@@ -266,7 +266,32 @@ global: {
rule_file: "prometheus.rules"
}
[...]
job: {
name: "random-example"
scrape_interval: "5s"
# The "production" targets for this job.
target_group: {
target: "http://localhost:8080/metrics"
target: "http://localhost:8081/metrics"
labels: {
label: {
name: "group"
value: "production"
}
}
}
# The "canary" targets for this job.
target_group: {
target: "http://localhost:8082/metrics"
labels: {
label: {
name: "group"
value: "canary"
}
}
}
}
```
Restart Prometheus with the new configuration and verify that a new time series
......
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