samba-in-kubernetes / samba-operator

An operator for a Samba as a service on PVCs in kubernetes
Apache License 2.0
108 stars 24 forks source link

Metrics: Report software versions for operator #190

Open spuiuk opened 2 years ago

spuiuk commented 2 years ago

It would be very useful to see the underlying software versions in the metrics page.

The software I am interested in are: 1) Samba version. 2) CTDB version (if in clustering mode).

synarete commented 2 years ago

@spuiuk What command should I issue to get the CTDB version?

spuiuk commented 2 years ago

For ctdb specifically we can use the ctdb version command.

However maybe we should just rely on rpm commands - so something similar to rpm -q ctdb samba python3 ?

spuiuk commented 2 years ago

also sambacc when we ship it as rpm.

synarete commented 2 years ago

Cool -- using rpm -q is the simplest solution. Thanks.

obnoxxx commented 1 year ago

ctdb had a separate version only in the very beginning. since ctdb code was merged into the samba git repo a long time go, the ctdb version is just the samba version. I don't even remember whether ctdb reports its own version any more ..., @synarete , @spuiuk