]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
restful: Expose perf counters
authorBoris Ranto <branto@redhat.com>
Mon, 29 Apr 2019 16:44:45 +0000 (18:44 +0200)
committerBoris Ranto <branto@redhat.com>
Wed, 29 May 2019 10:23:16 +0000 (12:23 +0200)
commitf29496af50cdc3cf45f40a56dd475a65655f3308
tree03b7ef864fb48d5f61f64eccce68fa9c847c02c1
parente59336ba55003736ec289bccc25494ec251b350b
restful: Expose perf counters

We currently do not expose perf counters in the restful module but this
is a useful piece of information to be exposed by the restful module.

Since we already have a function to gather all the information about the
perf counters, we can make this easily accessible through the restful
API.

This also supports filtering by daemons through regexps.

Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit aaaef9146cd2a2c6511ea8a0f70612b84f476bd7)
qa/workunits/rest/test_mgr_rest_api.py
src/pybind/mgr/restful/api/__init__.py
src/pybind/mgr/restful/api/perf.py [new file with mode: 0644]