README update

This commit is contained in:
Adam Štrauch 2021-09-04 22:18:50 +02:00
parent 471f8bb170
commit 0276465876
Signed by: cx
GPG Key ID: 018304FFA8988F8D
1 changed files with 9 additions and 7 deletions

View File

@ -142,13 +142,15 @@ At least one prometheus label has to be set to export the monitoring service in
So far the REST API is super simple and it has only two endpoints: So far the REST API is super simple and it has only two endpoints:
GET / # Same as /v1/discoveries ```
GET /v1/discovery # Returns current local discovery packet GET / # Same as /v1/discoveries
GET /v1/discoveries # Returns list of all discovered servers and their labels. GET /v1/discovery # Returns current local discovery packet
GET /v1/discoveries?labels=LABELS # output will be filtered based on one or multiple labels separated by comma GET /v1/discoveries # Returns list of all discovered servers and their labels.
GET /v1/prometheus/:name # Generates output for Prometheus's SD config, name is group of the monitoring services described above. GET /v1/discoveries?labels=LABELS # output will be filtered based on one or multiple labels separated by comma
POST /v1/labels # Add runtime labels that will persist over daemon restarts. Labels should be in the body of the request, one line per one label. GET /v1/prometheus/:name # Generates output for Prometheus's SD config, name is group of the monitoring services described above.
DELETE /v1/labels # Delete runtime labels. One label per line. Can't affect the labels from environment variables or labels added from the LabelPath. POST /v1/labels # Add runtime labels that will persist over daemon restarts. Labels should be in the body of the request, one line per one label.
DELETE /v1/labels # Delete runtime labels. One label per line. Can't affect the labels from environment variables or labels added from the LabelPath.
```
If there is an error the error message is returned as plain text. If there is an error the error message is returned as plain text.