]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
prometheus: Handle the TIME perf counter type metrics
authorBoris Ranto <branto@redhat.com>
Mon, 30 Apr 2018 23:12:02 +0000 (01:12 +0200)
committerBoris Ranto <branto@redhat.com>
Fri, 1 Jun 2018 12:26:25 +0000 (14:26 +0200)
commitc7593731aadb7bdca0be6cd76d72496cd8c3b082
tree52c4e1a7444bc77486e190ca24e70e371806297d
parent51c205873c41efbd0438680441fdff2be375a442
prometheus: Handle the TIME perf counter type metrics

This patch correctly sets the PERFCOUNTER_MASK to 3 so that the
PERFCOUNTER_TIME metrics are not ignored by the mgr_module code. It also
converts the TIME metrics from nanoseconds to seconds just like the ceph
perf dump does and exposes the metrics via prometheus module.

Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit 056bc08d51306f4e4d031d1e3ff68ad7312c55d8)

Conflicts:
src/pybind/mgr/mgr_module.py: trivial resolution
src/pybind/mgr/mgr_module.py
src/pybind/mgr/prometheus/module.py