mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 17:13:22 +00:00
Update example rules file to be valid with the default scrape config (#11692)
* Update docs example rules for default config The prometheus download includes a default config to scrape itself. This self-scraping prometheus doesn't include any metric named as `http_inprogress_requests`, but does include one named `prometheus_http_requests_total`. Updating this example rule in the docs to one which can be used out-of-the-box with the default download would be a nice improvement. Signed-off-by: Sam Jewell <sam.jewell@grafana.com> * Update syntax as per @LeviHarrison's review Co-authored-by: Levi Harrison <levisamuelharrison@gmail.com> Signed-off-by: Sam Jewell <2903904+samjewell@users.noreply.github.com> Signed-off-by: Sam Jewell <sam.jewell@grafana.com> Signed-off-by: Sam Jewell <2903904+samjewell@users.noreply.github.com> Co-authored-by: Levi Harrison <levisamuelharrison@gmail.com>
This commit is contained in:
parent
48bccc50c8
commit
f88a0a7d83
@ -70,8 +70,8 @@ A simple example rules file would be:
|
||||
groups:
|
||||
- name: example
|
||||
rules:
|
||||
- record: job:http_inprogress_requests:sum
|
||||
expr: sum by (job) (http_inprogress_requests)
|
||||
- record: code:prometheus_http_requests_total:sum
|
||||
expr: sum by (code) (prometheus_http_requests_total)
|
||||
```
|
||||
|
||||
### `<rule_group>`
|
||||
|
Loading…
Reference in New Issue
Block a user