0

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.

2
  • 1
    On last your link "there is also this, which seems to imply...", if you look down OP mentioned that it is not native metric, but rather generated by script, same idea as with your Python script. I would guess that is the way...
    – os11k
    Feb 9, 2023 at 16:57
  • Yes, that is the route that I went. A Python script to get the versions and dump it to an appropriately formatted text file to use with Prometheus text file collectors.
    – King Leon
    Feb 9, 2023 at 20:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.