← All dashboards

Valheim

Tracks metrics from Valheim server using mbround18/valheim docker and cadvisor

Tracks info about a running Valheim server using mbround18/valheim-docker and cAdvisor

Note that Valheim player count metrics do not work for LAN servers. You must have your Valheim server set to PUBLIC and have port forwarding setup for your steam query port (Valheim Port number +1), as player count metrics are pulled from the Steam API. If you are running multiple Valheim servers, make sure each server has their own dedicated steam query port number.

To set this up, use this example docker-compose.yml

yaml
version: "2.4"
services:
  valheim:
    image: mbround18/valheim:latest
    container_name: valheim
    restart: unless-stopped
    ports:
      - 2456:2456/udp
      - 2457:2457/udp
      - 2458:2458/udp
      - 2459:2459/tcp
    environment:
      PORT: 2456
      HTTP_PORT: 2459
      PUBLIC: 1
  prometheus:
    image: prom/prometheus:latest
    container_name: prometheus
    restart: always
    ports:
      - 9090:9090/tcp
    volumes:
      - ./prometheus.yml:/etc/prometheus/prometheus.yml
  grafana:
    image: grafana/grafana:latest
    container_name: grafana
    restart: always
    ports:
      - 3000:3000/tcp
    environment:
      GF_SECURITY_ADMIN_USER: admin
      GF_SECURITY_ADMIN_PASSWORD: password
  cadvisor:
    image: gcr.io/google-containers/cadvisor:latest
    container_name: cadvisor
    restart: always
    ports:
      - 8080:8080/tcp
    privileged: true
    command:
      # Defaults to 1s interval, 5s interval for reduced cpu
      - "-housekeeping_interval=5s"
    volumes:
      - /:/rootfs:ro
      - /var/run:/var/run:ro
      - /sys:/sys:ro
      - /var/lib/docker:/var/lib/docker:ro
      - /dev/disk:/dev/disk:ro

And use the following scrape configs for your prometheus.yml

yaml
scrape_configs:
  - job_name: cadvisor
    static_configs:
    - targets: ['cadvisor:8080']
  - job_name: valheim
    static_configs:
    - targets: ['valheim:2459']

Dashboard revisions

RevisionDecscriptionCreated

Reviews

Login or Sign up to write a review

Reviews from the community

Get this dashboard

Data source:

Dependencies:

Import the dashboard template:

or

Download JSON

Docs: Importing dashboards

Downloads: 102