prometheus/config
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
..
testdata Make sure that url for remote_read/write is not nil (#3024) 2017-08-07 08:49:45 +01:00
config.go Make sure that url for remote_read/write is not nil (#3024) 2017-08-07 08:49:45 +01:00
config_default_test.go Renaming the config_notwin test to config_default 2017-07-10 11:08:16 -03:00
config_test.go Expose current Prometheus config via /status/config 2017-08-13 22:21:18 +02:00
config_windows_test.go Fixing code style to adhere gofmt 2017-07-09 02:43:33 -03:00