Commit 404350e5 authored by Brian Brazil's avatar Brian Brazil

Merge pull request #257 from brian-brazil/file-sd-clarify

Clarify the format for file SD files.
parents b0117f5c 1bcaee18
...@@ -472,15 +472,18 @@ all defined files are detected via disk watches and applied immediately. Files m ...@@ -472,15 +472,18 @@ all defined files are detected via disk watches and applied immediately. Files m
provided in YAML or JSON format. Only changes resulting in well-formed target groups provided in YAML or JSON format. Only changes resulting in well-formed target groups
are applied. are applied.
The JSON version of a target group has the following format: The JSON file must contain a list of target groups, using this format:
``` ```
{ [
"targets": [ "<host>", ... ], {
"labels": { "targets": [ "<host>", ... ],
[ "<labelname>": "<labelvalue>", ... ] "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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment