Adjust Ceph metrics scrape interval in Prometheus

Enables modifying the interval and sets the recommended default value.

[1] https://docs.ceph.com/en/latest/mgr/prometheus/#configuration

Change-Id: I4b91d184485aa52b3c06011f9dbb6b34bcad3ca8
This commit is contained in:
Piotr Parczewski 2023-11-29 08:29:36 +01:00
parent 77c18fa615
commit 03a1b9925d
3 changed files with 7 additions and 0 deletions

View File

@ -1288,6 +1288,7 @@ enable_prometheus_etcd_integration: "{{ enable_prometheus | bool and enable_etcd
enable_prometheus_msteams: "no" enable_prometheus_msteams: "no"
prometheus_alertmanager_user: "admin" prometheus_alertmanager_user: "admin"
prometheus_ceph_exporter_interval: "{{ prometheus_scrape_interval }}"
prometheus_grafana_user: "grafana" prometheus_grafana_user: "grafana"
prometheus_scrape_interval: "60s" prometheus_scrape_interval: "60s"
prometheus_openstack_exporter_interval: "{{ prometheus_scrape_interval }}" prometheus_openstack_exporter_interval: "{{ prometheus_scrape_interval }}"

View File

@ -125,6 +125,7 @@ scrape_configs:
{% if enable_prometheus_ceph_mgr_exporter | bool %} {% if enable_prometheus_ceph_mgr_exporter | bool %}
- job_name: ceph_mgr_exporter - job_name: ceph_mgr_exporter
honor_labels: true honor_labels: true
scrape_interval: {{ prometheus_ceph_exporter_interval }}
static_configs: static_configs:
- targets: - targets:
{% for exporter in prometheus_ceph_mgr_exporter_endpoints %} {% for exporter in prometheus_ceph_mgr_exporter_endpoints %}

View File

@ -0,0 +1,5 @@
---
features:
- |
Adds a new variable ``prometheus_ceph_exporter_interval`` for controlling
Ceph's metrics scrape interval.