prometheus/web/api/v1
Max Leonard Inden 1c96fbb992
Expose current Prometheus config via /status/config
This PR adds the `/status/config` endpoint which exposes the currently
loaded Prometheus config. This is the same config that is displayed on
`/config` in the UI in YAML format. The response payload looks like
such:
```
{
  "status": "success",
  "data": {
    "yaml": <CONFIG>
  }
}
```
2017-08-13 22:21:18 +02:00
..
api.go Expose current Prometheus config via /status/config 2017-08-13 22:21:18 +02:00
api_test.go Expose current Prometheus config via /status/config 2017-08-13 22:21:18 +02:00