ChainSafe / forest

🌲 Rust Filecoin Node Implementation
https://forest.chainsafe.io
Apache License 2.0
620 stars 149 forks source link

Add Forest version in Prometheus metrics #4533

Closed LesnyRumcajs closed 3 weeks ago

LesnyRumcajs commented 1 month ago

Issue summary

Forest version would be useful for tracking versions in Grafana dashboards. This can be done now with limited amount of curls and call to binaries, but it's a hassle.

Other information and links

LesnyRumcajs commented 1 month ago

Re-opened due to revert https://github.com/ChainSafe/forest/pull/4594

LesnyRumcajs commented 1 month ago

Note: using info metric type might not be feasible given some default setups do not really like it.

From the infra team: image

It also doesn't work on my Prometheus/Grafana stack https://github.com/ChainSafe/forest/tree/main/monitoring (custom dashboard, the default one doesn't work at the moment). Also, see https://github.com/prometheus/client_rust/issues/111