mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Referring to configuration.md, to have a Generic placeholders definition section (#7875)
Signed-off-by: Luke Chen <showuon@gmail.com>
This commit is contained in:
parent
252265fa81
commit
dba729f6b6
|
@ -46,21 +46,20 @@ The JSON response envelope format is as follows:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Input timestamps may be provided either in
|
Generic placeholders are defined as follows:
|
||||||
|
|
||||||
|
* `<rfc3339 | unix_timestamp>`: Input timestamps may be provided either in
|
||||||
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) format or as a Unix timestamp
|
[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) format or as a Unix timestamp
|
||||||
in seconds, with optional decimal places for sub-second precision. Output
|
in seconds, with optional decimal places for sub-second precision. Output
|
||||||
timestamps are always represented as Unix timestamps in seconds.
|
timestamps are always represented as Unix timestamps in seconds.
|
||||||
|
* `<series_selector>`: Prometheus [time series
|
||||||
Names of query parameters that may be repeated end with `[]`.
|
|
||||||
|
|
||||||
`<series_selector>` placeholders refer to Prometheus [time series
|
|
||||||
selectors](basics.md#time-series-selectors) like `http_requests_total` or
|
selectors](basics.md#time-series-selectors) like `http_requests_total` or
|
||||||
`http_requests_total{method=~"(GET|POST)"}` and need to be URL-encoded.
|
`http_requests_total{method=~"(GET|POST)"}` and need to be URL-encoded.
|
||||||
|
* `<duration>`: [Prometheus duration strings](basics.md#time_durations).
|
||||||
`<duration>` placeholders refer to [Prometheus duration strings](basics.md#time_durations).
|
|
||||||
For example, `5m` refers to a duration of 5 minutes.
|
For example, `5m` refers to a duration of 5 minutes.
|
||||||
|
* `<bool>`: boolean values (strings `true` and `false`).
|
||||||
|
|
||||||
`<bool>` placeholders refer to boolean values (strings `true` and `false`).
|
Note: Names of query parameters that may be repeated end with `[]`.
|
||||||
|
|
||||||
## Expression queries
|
## Expression queries
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue