Using CAdvisor, Prometheus, and Grafana To Build A Valheim Dashboard #330
Replies: 4 comments 10 replies
-
Woah Excellent work!! :) It looks good! |
Beta Was this translation helpful? Give feedback.
-
Looks like Grafana decided to feature this dashboard in a showcase for GrafanaCON, pretty neat! |
Beta Was this translation helpful? Give feedback.
-
Hey @bforbis, I was trying to set this up on an Amazon Lightsail server, but it wasn’t working. I think it might have something to do with the Grafana datasource provisioning on the server. Could you provide a little more detail on what the dashboard is taking to? Is it the Grafana instance on your server at <public_ip>:9090? Or the Prometheus instance at that address? I don’t have write access to the Grafana-provisioning/ folder that was created, so I’m guessing I did something wrong there because I assume the Grafana datasource provisioning yaml is required. |
Beta Was this translation helpful? Give feedback.
-
Thanks for creating this, it's excellent! Spun up my first self-hosted & public valheim server, however, I'm using lloesche/valheim-server-docker instead of the one you're using. I've set the 'STATUS_HTTP' & 'STATUS_HTTP_PORT' to match (2549) as well as add the port on the environment portion of my compose file, yet I cannot retrieve any data from the valheim server. Is there something I'm missing to get this to work? Ps. quite nooby when it comes to monitoring to this degree :) |
Beta Was this translation helpful? Give feedback.
-
I would like to share some information on how to setup a Grafana dashboard to track information about your running Valheim server. This Grafana dashboard keeps track of the following information:
You can download the Grafana dashboard at https://grafana.com/grafana/dashboards/14123
Docker Compose
The first step is to setup your Valheim docker compose to include CAdvisor, Prometheus, and Grafana
Prometheus Config
You should also have a
prometheus.yml
config file bind mounted to your prometheus container. This will be setup to scrape both your CAdvisor container and your Valheim HTTP Status server/metrics
endpoint served at yourHTTP_PORT
Grafana Datasource Provisioning
You should also setup Grafana to automatically setup your prometheus server as a datasource. You can do this by creating a datasource provisioning file
Beta Was this translation helpful? Give feedback.
All reactions