]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: configuring prometheus endpoint for smb 58815/head
authorShachar Sharon <ssharon@redhat.com>
Wed, 24 Jul 2024 10:59:30 +0000 (13:59 +0300)
committerShachar Sharon <ssharon@redhat.com>
Fri, 30 Aug 2024 09:02:55 +0000 (12:02 +0300)
commit4f1d97918e0f845d11adc8ef17e8f42ad9e83f9a
tree3690fef9a424d28bf1beff3506a401bd6fd93260
parent2c4096943edd24ea1ba10ccf51f7dc81ce58852f
cephadm: configuring prometheus endpoint for smb

Allow Prometheus to scrap samba-server metrics via default port 9922[1].
Uses the same conventions as used by NFS-Ganesha Prometheus metrics
exporter.

[1] https://github.com/prometheus/prometheus/wiki/Default-port-allocations

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
src/pybind/mgr/cephadm/service_discovery.py
src/pybind/mgr/cephadm/services/monitoring.py
src/pybind/mgr/cephadm/templates/services/prometheus/prometheus.yml.j2
src/pybind/mgr/cephadm/tests/test_service_discovery.py
src/pybind/mgr/cephadm/tests/test_services.py