Commit 0054878e authored by juliusv's avatar juliusv

Merge pull request #17 from brian-brazil/clarify

Make it clear what the full config is.
parents 3c9399bb b0af6d9e
...@@ -246,8 +246,8 @@ job_service:rpc_durations_microseconds_count:avg_rate5m = avg(rate(rpc_durations ...@@ -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 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 global configuration section in your `prometheus.conf`. The config should now
should now look like this: look like this:
``` ```
# Global default settings. # Global default settings.
...@@ -266,7 +266,32 @@ global: { ...@@ -266,7 +266,32 @@ global: {
rule_file: "prometheus.rules" 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 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