[MOD 0.12.X] promfacto: Factorio metrics in Prometheus

Topics and discussion about specific mods
ncc
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Aug 08, 2016 11:17 pm
Contact:

[MOD 0.12.X] promfacto: Factorio metrics in Prometheus

Post by ncc »

promfacto
  • Name: promfacto
  • Version: 0.1.4
  • Factorio-Version: 0.12.35
  • Description:
  • License: MIT
  • Release: 2015-08-08
  • Download-Url: Download
  • Website: this thread
  • Dependencies: Enhanced by modified YARM and Advanced Logistic System (zips available at above Download link)
  • Category: Helper
promfacto doesn't change anything whatsover in-game. Instead it lets you output metrics (aka statistics, numbers of interest) about a variety of things happening in the game. These metrics can be collected by Prometheus and visualized using Grafana. Instructions for doing so are provided here.

Why would you want this? Prometheus lets you store oodles of data cheaply, so you can look back over the entire history of your game. It also provides a powerful query language to work with the data. Grafana lets you build dashboards to present this data in different ways, slicing and dicing and zooming in and so forth. Think how useful the Production metrics you get in game by pressing 'p' are - this is the same idea but more flexible and for more things, e.g. pollution, fluids stored, mining, chest contents, etc. Sadly the full production stats themselves are not available, though they will be in Factorio 0.13 I think (this mod is not yet compatible with 0.13.)

Here's an example panel showing fluid storage. You can see at 18:30 I turned on the oil train. First crude stored dipped while it was en route, then it returned almost to normal as it was unloaded, and production of light/heavy/petroleum started rising. The train made one more trip, fetching a somewhat smaller batch of crude, then I turned it off again.
fluidpanel.png
fluidpanel.png (84.58 KiB) Viewed 1822 times
This has only been tested on Linux. In principle it could be made to work on any OS, but the more different the OS is from Linux the more work it's likely to be.
Ragazzo
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu Jul 06, 2017 10:22 am
Contact:

Re: [MOD 0.12.X] promfacto: Factorio metrics in Prometheus

Post by Ragazzo »

Hello. I think this is an amazing thing :D

I tried it out and I haven't managed to get it to work. No files getting stored in the '/script-output/metrics' path. Does it only start getting metrics once someone has connected to the server? I tested starting a new server and no player has connected to it yet.
Post Reply

Return to “Mods”