IzakMarais / reporter

Service that generates a PDF report from a Grafana dashboard
Apache License 2.0
946 stars 304 forks source link

Openshift Grafana route addr update instead of Grafana IP and port into Grafana reporter. #345

Closed joe00712 closed 1 year ago

joe00712 commented 1 year ago

Hi Izak, I'm running Grafana over openshift with external Grafana-Reporter using "podman run -d -p 8686:8686 --network=host izakmarais/grafana-reporter". Grafana is served from openshift route and Grafana reporter had only flag "-ip string" which takes Grafana IP and port. (default "localhost:3000").

So is there any way that i can give openshift route to it ?

joe00712 commented 1 year ago

@IzakMarais , Do we have some solution regarding the same ?

joe00712 commented 1 year ago

@IzakMarais,

Seeking your support for this point.

IzakMaraisTAL commented 1 year ago

I don't have experience with openshift or its routing. As I recall the ip string is just passed to the Go standard http library, so it should be pretty general (be able to resolve DNS names).

If that does not work, I suggest changing your network configuration or forking and modifying the reporter source code.