mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
docs: update /api/v1/rules documentation (#6449)
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
parent
b15dda9e07
commit
941568839a
|
@ -482,6 +482,9 @@ guarantees as the overarching API v1.
|
|||
GET /api/v1/rules
|
||||
```
|
||||
|
||||
URL query parameters:
|
||||
- `type=alert|record`: return only the alerting rules (e.g. `type=alert`) or the recording rules (e.g. `type=record`). When the parameter is absent or empty, no filtering is done.
|
||||
|
||||
```json
|
||||
$ curl http://localhost:9090/api/v1/rules
|
||||
|
||||
|
|
Loading…
Reference in a new issue