File tree 1 file changed +12
-0
lines changed
specification/metrics/semantic_conventions
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 10
10
* [ Name Reuse Prohibition] ( #name-reuse-prohibition )
11
11
* [ Units] ( #units )
12
12
* [ Pluralization] ( #pluralization )
13
+ + [ Use ` count ` Instead of Pluralization] ( #use-count-instead-of-pluralization )
13
14
- [ General Metric Semantic Conventions] ( #general-metric-semantic-conventions )
14
15
* [ Instrument Naming] ( #instrument-naming )
15
16
* [ Instrument Units] ( #instrument-units )
@@ -105,6 +106,17 @@ should not be pluralized, even if many data points are recorded.
105
106
* ` system.paging.faults ` , ` system.disk.operations ` , and ` system.network.packets `
106
107
should be pluralized, even if only a single data point is recorded.
107
108
109
+ #### Use ` count ` Instead of Pluralization
110
+
111
+ If the value being recorded represents the count of concepts signified
112
+ by the namespace then the metric should be named ` count ` (within its namespace).
113
+ The pluralization rule does not apply in this case.
114
+
115
+ For example if we have a namespace ` system.processes ` which contains all metrics related
116
+ to the processes then to represent the count of the processes we can have a metric named
117
+ ` system.processes.count ` . The suffix ` count ` here indicates that it is the count of
118
+ ` system.processes ` .
119
+
108
120
## General Metric Semantic Conventions
109
121
110
122
The following semantic conventions aim to keep naming consistent. They
You can’t perform that action at this time.
0 commit comments