AP-Hunt / FicsitRemoteMonitoringCompanion

A companion app to the Ficsit Remote Monitoring mod for Satisfactory
24 stars 9 forks source link

Add vehicle stats #17

Closed featheredtoast closed 1 year ago

featheredtoast commented 1 year ago

Supersedes #16 (commit included in this)

Add stats for /getTrains /getVehicles and /getDroneStation. Expose these to prometheus.

Add extra metrics for trains and vehicles to mark elapsed time between:

refactor: centralize collector start+stop logic.

collectors should just deal with collecting. leave start and stop to another object. Allows for simpler adding of collectors.

featheredtoast commented 1 year ago

re: prometheus, basically yes, that - the implementation for windows makes sense as a way to just get metrics shown in a simple "I just want to see the production graphs!" by running a single binary.

The way I'm using the companion is by running it in a docker compose next to prometheus's official container, which allows for flexibility -- which means I just need the golang part running over linux.

While I suppose we could re-implement a way to download+run prometheus for non-windows environments as well, there hasn't been a need for it yet.