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

Adding a grafana-image-renderer to scylla-monitoring #904

Closed
fruch opened this issue Apr 23, 2020 · 4 comments · Fixed by #1062
Closed

Adding a grafana-image-renderer to scylla-monitoring #904

fruch opened this issue Apr 23, 2020 · 4 comments · Fixed by #1062

Comments

@fruch
Copy link
Contributor

fruch commented Apr 23, 2020

grafana has a build-it plug that can help us capture panels or dashboards
https://grafana.com/docs/grafana/latest/administration/image_rendering/#run-in-docker

up until now, we are doing all kind of hacks, using selenium and such to capture the dashboards as images.

this seems to work much better, and I think it would be a nice addition to scylla-monitoring

@fruch
Copy link
Contributor Author

fruch commented Apr 23, 2020

example of using it:

LOCAL_HOST_IP=192.168.1.14

docker run -d -p 8081:8081 grafana/grafana-image-renderer

./start-all.sh -c GF_RENDERING_SERVER_URL=http://${LOCAL_HOST_IP}:8081/render -c GF_RENDERING_CALLBACK_URL=http://${LOCAL_HOST_IP}:3000/ -c GF_LOG_FILTERS=rendering:debug

curl http://localhost:3000/render/d/cql-3-3/scylla-cql?orgId=1&refresh=30s&from=1587680332029&to=1587680632029&width=1000&height=2500 > dashboard.png

@amnonh
Copy link
Collaborator

amnonh commented Apr 26, 2020

It is nice, but it means running an additional container just for snapshots.

You can still add this to the QA testing without adding it by default to the monitoring stack.

@amnonh
Copy link
Collaborator

amnonh commented Apr 26, 2020

@amnonh
Copy link
Collaborator

amnonh commented Jun 25, 2020

One annoying part is the configuration. Both containers need to know each other IPs, this can be done either using the host IP (not always clear) or with a docker-compose

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

Successfully merging a pull request may close this issue.

2 participants