]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
restful: Expose perf counters 27885/head
authorBoris Ranto <branto@redhat.com>
Mon, 29 Apr 2019 16:44:45 +0000 (18:44 +0200)
committerBoris Ranto <branto@redhat.com>
Tue, 30 Apr 2019 11:30:14 +0000 (13:30 +0200)
commitaaaef9146cd2a2c6511ea8a0f70612b84f476bd7
tree35a6adac6a67bb6dd4c53ca66ba0d6f2018f159e
parentc99f7e16829ecc09bc9efd181145c4ab0e844c1e
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>
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]