remijouannet / graftorio2

(fork of graftorio) factorio mod for creating grafana dashboard
MIT License
77 stars 21 forks source link

Improve train metrics setting #32

Open Andrew-Wichmann opened 6 months ago

Andrew-Wichmann commented 6 months ago

Objective

Details

I found out that the train metrics from this mod were creating 100k+ active series on my Grafana Cloud account that would have soon cost me over $1k / mo. The server is a long-running project, so I was dismayed when the this disable feature was a "startup" setting rather than an "runtime-global". As far as I can tell, that meant I couldn't change the setting for my server after it was created. Setting it to "runtime-global" has seemingly allowed me to turn these metrics on and off as I please.

Lastly, in my opinion, these train metrics simply don't scale with Factorio and they should be disabled by default or reworked to bring the cardinality way down.