]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Thu, 1 Sep 2022 18:48:56 +0000 (14:48 -0400)
commit91dd03fd648d25773a83fdad311b62b781619fc4
tree320109235a4bce90ea7583b502aef042c99b9d71
parent0c55bf362ee66c186542f2784a5a9f78540bd5a2
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>
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