Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to connect grafana to prometheus #16552

Closed
holgerkoch opened this issue Sep 25, 2017 · 4 comments
Closed

How to connect grafana to prometheus #16552

holgerkoch opened this issue Sep 25, 2017 · 4 comments

Comments

@holgerkoch
Copy link

Hello,

First, thank you very much for the really good Prometheus template. It is working very fine.

We try to connect from a grafana frontend to the Prometheus server. But we got no successful connection. Maybe the oauth proxy is a problem.

My question is, did somebody successfully connect from grafana to the prometheus server?

Best regards

Holger

Version

openshift 3.6

@pweil-
Copy link

pweil- commented Sep 28, 2017

cc @jcantrill @zgalor

@zgalor
Copy link
Contributor

zgalor commented Oct 1, 2017

@holgerkoch haven't tried that myself.
If grafana is outside of the prometheus pod it will have to connect via the proxy, using openshift admin token in the Authorization header:
"Authorization: Bearer $TOKEN"

If grafana headers can't be modified, as a workaround, you can deploy grafana in the same pod, and connect via clear http without the proxy.

@mrsiano
Copy link

mrsiano commented Nov 7, 2017

@holgerkoch you can use this PR #17037

see also
https://github.com/mrsiano/grafana-ocp

@holgerkoch
Copy link
Author

@mrsiano Thank you very much for your help. Your solution is very simple to install and works like a dream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants