kminion icon indicating copy to clipboard operation
kminion copied to clipboard

How to get version of the program?

Open Snelius30 opened this issue 1 year ago • 1 comments

I can't find any command line argument to get help or version number of installed kminion instance.

I'm using something like that

$ strings /usr/local/bin/kminion | grep 'main.builtAt' | tail -1 | cut -d '=' -f 3 | cut -d ' ' -f 1

Could you please help me with a proper way? Thank you.

Snelius30 avatar Mar 10 '25 08:03 Snelius30

Cool digging!

[docs/metrics.md] describes version label on the up metric, but it's empty for v2.2.12 and some earlier ones:

# HELP kminion_exporter_up Build info about this Prometheus Exporter. Gauge value is 0 if one or more scrapes have failed.
# TYPE kminion_exporter_up gauge
kminion_exporter_up{version=""} 1

Let's try figuring out why.

hdhoang avatar Apr 10 '25 09:04 hdhoang