Like the title says, does anyone here know of the proper way to go about adding
cardano-node version to the
cardano_node_metrics being exported by Prometheus to Grafana? I would like to add this information to the dashboard without having to create a whole separate set of scripts and services to obtain this information.
There is this Github issue with the same request, but it is marked as closed without any explanation/documentation.
Then there is also this, which seems to imply that it is possible and is somehow used by IOG for their internal operations or something. But it involves Nix, which is currently beyond my realm of understanding.
My solution is to use
prometheus_client in Python to create a service on each node just to export the version. But if there is a cleaner way...please let me know.