prometheus/web
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/v1 Expose current Prometheus config via /status/config 2017-08-13 22:21:18 +02:00
ui Merge branch 'release-1.7' 2017-07-21 19:40:30 +02:00
federate.go Expose current Prometheus config via /status/config 2017-08-13 22:21:18 +02:00
federate_test.go Expose current Prometheus config via /status/config 2017-08-13 22:21:18 +02:00
web.go Expose current Prometheus config via /status/config 2017-08-13 22:21:18 +02:00
web_test.go 2831 Add Healthy and Ready endpoints 2017-08-07 17:34:04 -03:00