]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: allow setting prometheus retention time
authorAdam King <adking@redhat.com>
Mon, 22 Aug 2022 15:14:12 +0000 (11:14 -0400)
committerAdam King <adking@redhat.com>
Fri, 16 Sep 2022 14:48:28 +0000 (10:48 -0400)
commit30eb87b7e4e632bc84f49549b34d18c6bb19b8f7
tree18ce5bf4f4d79a203c3f3f45884173696081573c
parent585a4f3cc7488913a7a1606748419ceb7c5dd847
mgr/cephadm: allow setting prometheus retention time

When we deploy Prometheus server, we don't provide any
ability to define the tsdb retention time - so it defaults to 15d.

This change adds a field that can be passed in a prometheus service
spec that will be passed as an arg to the --storage.tsdb.retention.time
parameter for the prometheus daemon.

Fixes: https://tracker.ceph.com/issues/54308
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 91dd03fd648d25773a83fdad311b62b781619fc4)

Conflicts:
src/pybind/mgr/cephadm/services/monitoring.py
src/pybind/mgr/cephadm/tests/test_services.py
src/cephadm/cephadm
src/cephadm/tests/test_cephadm.py
src/pybind/mgr/cephadm/services/monitoring.py
src/pybind/mgr/cephadm/tests/test_services.py
src/python-common/ceph/deployment/service_spec.py