Project

General

Profile

Annotate perfcounters » History » Version 2

Jessica Mack, 06/23/2015 09:34 PM

1 1 Jessica Mack
h1. Annotate perfcounters
2
3
h3. Summary
4
5
Perfcounters are undocumented.  Include docs inline in code where they are defined.
6
7
h3. Owners
8
9
* Danny Al-Gaaf (Deutsche Telekom AG)
10
* Name (Affiliation)
11
* Name
12
13
h3. Interested Parties
14
15
* Sage Weil (Inktank)
16
* Danny Al-Gaaf (Deutsche Telekom AG)
17
* Name (Affiliation)
18
* Name
19
20
h3. Current Status
21
22
Perfcounters are undocumented.  They are defined in two places:
23
* the header includes an enum for l_$subsys_$metric
24
* a function elsewhere constructs the perfcounter collection with a PerfCounterBuilder (or similar)
25
26
The metric is named but not described.
27
There is an admin socket command that dumps the perf counter types.  This would be a nice place to describe them too.
28
29
h3. Detailed Description
30
31
Expand the PerfCounterBuilder to include a new field that describes the perfcounter.  This should either be a single string, or allow a short and long description.
32
33
h3. Work items
34
35
h3. Coding tasks
36
37
# perfcounters: expand builder methods to include a description
38
# asok: include descriptions in perf dump
39
# document metrics for
40 2 Jessica Mack
## osd
41 1 Jessica Mack
## objecter
42
## filestore
43
## objecter
44
## librados
45
## mon
46
## ....
47 2 Jessica Mack
# generate perfcounter docs as rst?
48 1 Jessica Mack
## this is awkward because the collections are constructed at runtime, so there is no easy way to extract all counters from all parts of the code.
49
50
h3. Documentation tasks
51
52
# document how perfcounters are described
53
54
h3. Pad
55
56
http://pad.ceph.com/p/cdsgiant-annotate-config-perfcounters