Commit graph

8 commits

Author SHA1 Message Date
Simon Knox
8980b71490 Return no_content from prometheus API empty response 2019-06-06 11:43:50 +01:00
Reuben Pereira
434359446a Add ability to do variable substitution
- In prometheus proxy api, allow variables to be replaced. For example,
if 'up{env="%{ci_environment_slug}"}' is passed to the endpoint, it
becomes 'up{env="production"}' before being sent to prometheus.
2019-04-15 15:31:59 +00:00
rpereira2
3888b4d35c Allow message strings to be translated 2019-04-05 02:12:34 +05:30
rpereira2
5ee7c419ea Call permit! on params 2019-04-05 02:12:34 +05:30
rpereira2
16772b91f0 Remove permitting of params
- It is now being done in ProxyService class.
2019-04-05 02:12:33 +05:30
rpereira2
eac3e2302c Add spec for invalid environment id 2019-04-05 02:12:33 +05:30
Peter Leitzen
1427ad4f5c Streamline controller specs 2019-04-05 02:12:33 +05:30
rpereira2
e1a167ee23 Add a Prometheus API per environment
The api will proxy requests to the environment's prometheus server.
The Prometheus::ProxyService class can be reused when we add support for
group prometheus servers.
2019-04-05 02:12:33 +05:30