samba-operator icon indicating copy to clipboard operation
samba-operator copied to clipboard

Metrics: Report software versions for operator

Open spuiuk opened this issue 3 years ago • 7 comments

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).

spuiuk avatar Apr 28 '22 15:04 spuiuk

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

synarete avatar May 12 '22 13:05 synarete

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 avatar May 12 '22 14:05 spuiuk

also sambacc when we ship it as rpm.

spuiuk avatar May 12 '22 14:05 spuiuk

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

synarete avatar May 12 '22 14:05 synarete

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

obnoxxx avatar Jan 18 '23 16:01 obnoxxx

should this be an issue in the smbmetrics project? @spuiuk , @synarete

obnoxxx avatar Dec 04 '24 09:12 obnoxxx

should this be an issue in the smbmetrics project? @spuiuk , @synarete

Both of those values are already reported via labels on smb_metrics_status metric

synarete avatar Dec 04 '24 09:12 synarete