Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch changes the way we reset metrics when collecting data in the prometheus exporter module. With this patch, the exported metrics at any point in time should align with a freshly started ceph-mgr module. The patch also introduces locking mechanism to serialize the requests and to avoid overwriting the metrics during multiple scrapes happenning at the same time. Signed-off-by: Boris Ranto <branto@redhat.com> (cherry picked from commit f6c4db8) Conflicts: src/pybind/mgr/prometheus/module.py: Do not import PG_STATES
- Loading branch information
Showing
1 changed file
with
52 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters