Allow Prometheus Proxy API to be used as a Grafana data source
Figure out a way to allow the Prometheus Proxy API to be used in tools like Grafana.
One way is to allow the Prometheus proxy API to be called using a token authentication system rather than requiring a gitlab user to be signed in. You can look at the discussion on this topic at https://gitlab.com/gitlab-org/gitlab-ce/issues/58375#note_150658494
However, Grafana does not currently allow a token to be set when defining a Prometheus data source.
We can create a new datasource plugin for Grafana which will allow us to define a token field that will be used in all requests to Prometheus.
Documentation
We will need to:
- Add a section to the Prometheus integration documentation, about connecting an external Monitoring solution to GitLab
- How to utilize the authentication token, and the URL
- Add an example configuration for Grafana
Edited by Reuben Pereira