diff --git a/docs/configuration/configuration.md b/docs/configuration/configuration.md index c3857bdf7..f1c387c5c 100644 --- a/docs/configuration/configuration.md +++ b/docs/configuration/configuration.md @@ -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": [ "", ... ], @@ -825,6 +826,14 @@ The JSON file must contain a list of static configs, using this format: ] ``` +**YAML** +```yaml +- targets: + [ - '' ] + labels: + [ : ... ] +``` + As a fallback, the file contents are also re-read periodically at the specified refresh interval.