docs(prometheus-exporter): add new metric

This commit is contained in:
2025-09-19 21:57:39 +02:00
parent 25026b2e73
commit bf119e4b47

View File

@@ -9,6 +9,9 @@ Currently, item and fluid production metrics are available:
`factorio_(production/consumption)_total` `factorio_(production/consumption)_total`
: Gives a counter of item and fluid production or consumption, including the *type* (item or fluid), *surface* (a.k.a. planet), *force* (usually player), and the in-game name of the entity. : Gives a counter of item and fluid production or consumption, including the *type* (item or fluid), *surface* (a.k.a. planet), *force* (usually player), and the in-game name of the entity.
`factorio_energy_(production/consumption)_total_joules`
: Total of item and fluid production or consumption, including the *network_id*, *surface* and *name* of the entity using or producing power. Note that the player must place a **Metrics Pole** in the electricity network to track its metrics (to avoid tracking very many tiny networks).
## Usage ## Usage
The mod alone cannot do everything in-game, nor do you want it to, for performance reasons. As such, it does the absolute minimum amount of work necessary to get the metrics onto your filesystem. From here, a sidecar exposes it to Prometheus. The mod alone cannot do everything in-game, nor do you want it to, for performance reasons. As such, it does the absolute minimum amount of work necessary to get the metrics onto your filesystem. From here, a sidecar exposes it to Prometheus.