Minetest Mod: Push metrics to Prometheus' Pushgateway
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE.txt
README.md
description.txt
init.lua
mod.conf

README.md

Prometheus Pushgateway Uploader for Minetest

Written by rubenwardy.
License: MIT

API

  • prometheus.push(metric, value)
    • Calls to push will be queued and only uploaded every prometheus.upload_interval.
    • metric is the metric name, see the metric naming guide for names to choose.
    • value is the actual value to push, for example number of players.
  • prometheus.upload()
    • Uploads any queued metrics.
    • Automatically called every prometheus.upload_interval seconds.

Settings

  • prometheus.pushgateway_url - url including domain and port, default: http://localhost:9091.
  • prometheus.job_name - job label, default: minetest.
  • prometheus.default_stats_interval - interval in seconds to collect stats such as player numbers, default: 15.
  • prometheus.upload_interval - interval to upload metrics, default: 15. Should be less or equal to prometheus.default_stats_interval.
  • prometheus.players_metric - name of player metric, default: minetest_players.