README update
This commit is contained in:
parent
471f8bb170
commit
0276465876
@ -142,6 +142,7 @@ 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:
|
||||
|
||||
```
|
||||
GET / # Same as /v1/discoveries
|
||||
GET /v1/discovery # Returns current local discovery packet
|
||||
GET /v1/discoveries # Returns list of all discovered servers and their labels.
|
||||
@ -149,6 +150,7 @@ So far the REST API is super simple and it has only two endpoints:
|
||||
GET /v1/prometheus/:name # Generates output for Prometheus's SD config, name is group of the monitoring services described above.
|
||||
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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user