You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ A metric consist of 5 parameters: name, value, timestamp, verbosity and tags.
91
91
| verbosity | DEBUG / INFO / PROD | no | INFO |
92
92
| tags | vector<unsignedint> | no | - |
93
93
94
-
A metric can be constructed by providing required parameters:
94
+
A metric can be constructed by providing required parameters (value and name):
95
95
```cpp
96
96
Metric{10, "name"}
97
97
```
@@ -108,7 +108,7 @@ Metrics need to match backends verbosity in order to be sent, eg. backend with `
108
108
109
109
#### Tags
110
110
Each metric can be tagged with any number of [predefined tags](include/Monitoring/Tags.h).
111
-
In order to do so use `addTags(std::initializer_list<unsigned int>&& tags)` method.
111
+
In order to do so use `addTag(tags::Key, tags::Value)` or `addTag(tags::Key, unsigned short)`methods. The latter method allows assigning numeric value to a tag.
112
112
113
113
See the example: [examples/2-TaggedMetrics.cxx](examples/2-TaggedMetrics.cxx).
114
114
@@ -165,7 +165,7 @@ Glabal tags are tags that are added to each metric. The following tags are set t
165
165
-`hostname`
166
166
-`name` - process name
167
167
168
-
You can add your own global tag by calling `addGlobalTag(std::string name, std::string value)`.
168
+
You can add your own global tag by calling `addGlobalTag(std::string_view key, std::string_view value)` or `addGlobalTag(tags::Key, tags::Value)`.
0 commit comments