]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Mon, 30 Apr 2018 23:20:44 +0000 (01:20 +0200)
commit056bc08d51306f4e4d031d1e3ff68ad7312c55d8
treeeb7de5e984eb4f6bec21992e2b7bc4f3baf249d3
parent4dde3d355f4a0782c74bcc2b663f4412ae523cc0
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>
src/pybind/mgr/mgr_module.py
src/pybind/mgr/prometheus/module.py