statfactory

by ftvkyo

Exports live game metrics (production, pollution, evolution, kills, players, and more) to Prometheus for use with Grafana.

Utilities
4 days ago
2.1
4
Owner:
ftvkyo
Source:
https://github.com/ftvkyo/statfactory
Homepage:
https://github.com/ftvkyo/statfactory
License:
MIT
Created:
4 days ago
Latest Version:
0.0.3 (4 days ago)
Factorio version:
2.1
Downloaded by:
4 users

Exports live Factorio game metrics to a Prometheus-compatible file so you can graph them in Grafana.

What it tracks

  • Connected/total players, player deaths (by force/player)
  • Area paved, per surface and tile type
  • Pollution level, production, and consumption, per surface
  • Evolution factor, per surface and by cause (spawner kills / pollution / time)
  • Kills, per surface/force/entity
  • Item and fluid production/consumption, per surface/force
  • Rockets launched, researches finished, ticks played

How it works

Every second, the mod writes a factorio_*-prefixed Prometheus metrics file to
script-output/statfactory/game.prom in your Factorio application directory. The
GitHub repo includes a ready-to-run
docker-compose stack (Prometheus + Grafana) with a starter dashboard, and full
setup instructions.

Attribution

Based on graftorio2 (MIT / BSD-2).
See the repo's README for full attribution details.