]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: run smbmetrics as side-car container
authorShachar Sharon <ssharon@redhat.com>
Wed, 24 Jul 2024 09:30:31 +0000 (12:30 +0300)
committerShachar Sharon <ssharon@redhat.com>
Fri, 30 Aug 2024 09:02:55 +0000 (12:02 +0300)
commit2c4096943edd24ea1ba10ccf51f7dc81ce58852f
tree671b49d50d7d25465cd5a6976ce15ad314c0b373
parent3cc0605988f7c2e53505472a233a5767d8eeeb26
cephadm: run smbmetrics as side-car container

When samba metrics-exporter image is provided and it is not an empty
string, run the smbmetrics as side-car container along-side main
samba-server. This metrics-exporter uses 'smbstatus' to convert SMB
stats into standard Prometheus metrics (via port 9922 by default).

This commit defines ContainerCommon as base of SambaContainerCommon and
SMBMetricsContainer. It defines the basic APIs of smb containers with
empty defaults. It also allows passing explicit image URL to samba's
sidecar containers. If no alternative image is provided (which is the
typical case), use the one provided by context or default one.

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
src/cephadm/cephadmlib/daemons/smb.py