mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Updated documentation (#5390)
Updated documentation to include YAML example for file_sd_config Signed-off-by: Lars Nielsen <nellemandela@gmail.com>
This commit is contained in:
parent
ed6ce7ac98
commit
019d031f3e
|
@ -811,9 +811,10 @@ It reads a set of files containing a list of zero or more
|
||||||
and applied immediately. Files may be provided in YAML or JSON format. Only
|
and applied immediately. Files may be provided in YAML or JSON format. Only
|
||||||
changes resulting in well-formed target groups are applied.
|
changes resulting in well-formed target groups are applied.
|
||||||
|
|
||||||
The JSON file must contain a list of static configs, using this format:
|
Files must contain a list of static configs, using these formats:
|
||||||
|
|
||||||
```yaml
|
**JSON**
|
||||||
|
```json
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"targets": [ "<host>", ... ],
|
"targets": [ "<host>", ... ],
|
||||||
|
@ -825,6 +826,14 @@ The JSON file must contain a list of static configs, using this format:
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**YAML**
|
||||||
|
```yaml
|
||||||
|
- targets:
|
||||||
|
[ - '<host>' ]
|
||||||
|
labels:
|
||||||
|
[ <labelname>: <labelvalue> ... ]
|
||||||
|
```
|
||||||
|
|
||||||
As a fallback, the file contents are also re-read periodically at the specified
|
As a fallback, the file contents are also re-read periodically at the specified
|
||||||
refresh interval.
|
refresh interval.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue