Huginn is a status server used to check the status of your Valheim server.
- Install Rust & git
- Clone the repo
cargo install cargo-make
makers -e production release
chmod +x ./target/debug/huginn
- Copy
./target/debug/huginn
to/usr/local/bin
Variable | Default | Required | Description |
---|---|---|---|
ADDRESS | Your Public IP |
FALSE | This setting is used in conjunction with odin status and setting this will stop odin from trying to fetch your public IP |
HTTP_PORT | anything above 1024 |
FALSE | Setting this will spin up a little http server that provides two endpoints for you to call. |
NOTE: your server MUST be public (eg. PUBLIC=1
) in order for Odin+Huginn to collect and report statistics.
Simply launch huginn
in the background with:
cd /path/to/your/valheim/server/folder
huginn &
-
With the root user or using sudo run
nano /etc/systemd/system/huginn.service
-
Copy and paste the text below
[Unit] Description=Huginn Valheim Status Server After=network.target StartLimitIntervalSec=0 [Service] Type=simple Restart=always RestartSec=1 User=steam Environment="HTTP_PORT=3000" "ADDRESS=127.0.0.1:2457" WorkingDirectory=/home/steam/valheim ExecStart=/usr/bin/env /usr/local/bin/huginn [Install] WantedBy=multi-user.target
-
Make any necessary changes to the service to fit your needs. (Remember, the port you use in your
ADDRESS
must be your query port which is +1 of your game port.) -
Next save the file and start the service.
sudo systemctl start huginn
-
To have the server start on server launch, run:
sudo systemctl enable huginn
Endpoint | Description |
---|---|
/metrics |
Provides a Prometheus compatible output of the server status. Click here to see a guide on how to get a dashboard setup. |
/status |
Provides a more traditional JSON output of the server status. |