mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -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
|
||||
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>", ... ],
|
||||
|
@ -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
|
||||
refresh interval.
|
||||
|
||||
|
|
Loading…
Reference in a new issue