HUB
Sign inSign up
rust-exporter logo

winter/rust-exporter

By winter

•Updated over 4 years ago

An exporter for the game Rust that uses Rcon and supports exporting metrics for multiple servers

Image
0

389

winter/rust-exporter repository overview

⁠Rust Exporter GitHub Workflow Status GitHub release (latest by date) GitHub all releases GitHub

A dead-simple exporter for the video-game Rust that uses Rcon and supports exporting metrics for multiple servers

⁠Installation

⁠Binary

View the Releases⁠ page and download the one for your system

⁠Docker

docker run:

docker run \
    -v /path/to/config.json:/config.json \
    -p 9099:9099 \
    winter/rust-exporter:latest

docker-compose:

version: "3.7"

services:
    rust-exporter:
        image: winter/rust-exporter:latest
        restart: unless-stopped
        ports:
            - 9099:9099
        volumes:
            - /path/to/config.json:/config.json

⁠Configuration

Create a file in the same directory as the binary called config.json

{
    "interval": 1000,
    "port": 9099,
    "servers": [
        {
            "ip": "",
            "port": 0,
            "password": ""
        }
    ]
}

⁠Prometheus Config

- job_name: 'rust_exporter'
    scrape_interval: 10s
    static_configs:
      - targets: ['0.0.0.0:9099']

⁠Collected Metrics

players{name="0.0.0.0:28016",type="max"} 40
players{name="0.0.0.0:28016",type="online"} 0
players{name="0.0.0.0:28016",type="sleeping"} 0
players{name="0.0.0.0:28016",type="queued"} 0
players{name="0.0.0.0:28016",type="joining"} 0
network{name="0.0.0.0:28016",type="in"} 0
network{name="0.0.0.0:28016",type="out"} 0
entities{name="0.0.0.0:28016"} 5542
fps{name="0.0.0.0:28016"} 244

Tag summary

Content type

Image

Digest

Size

28.6 MB

Last updated

over 4 years ago

docker pull winter/rust-exporter