You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jamie Quigley c9f9f31d68
Merge pull request #42 from Sciencentistguy/renovate/serde_json-1.x
19 hours ago
src Merge branch 'renovate/clap-3.x' 3 weeks ago
.gitignore Initial commit 4 months ago
Cargo.lock Update Rust crate serde_json to 1.0.76 23 hours ago
Cargo.toml Update Rust crate serde_json to 1.0.76 23 hours ago
LICENCE Initial commit 4 months ago
config.yml Release version 1.0 4 months ago
readme.md Specify example port in readme 3 weeks ago
renovate.json Add renovate.json 2 months ago

readme.md

minecraft-prometheus-exporter

A scraper for Prometheus for minecraft (1.13+) servers.

Usage

First, enable rcon on your minecraft server, by setting the following values in server.properties:

rcon.port=25575
rcon.password=<password>
enable-rcon=true

Then, create a configuration file. An example configuration file is provided in config.yml. Then run the program with the path to that file as the first argument e.g. ./target/release/minecraft-server-exporter config.yml.

This program runs an http server, which Prometheus then polls. An example Prometheus configuration is provided:

scrape_configs:
  - job_name: "minecraft"
    scrape_timeout: 30s
    static_configs:
      - targets: ["localhost::9001"]

Available under the Mozilla Public Licence, version 2.0