-
Feature
-
Resolution: Done
-
Undefined
-
None
-
False
-
None
-
False
-
Not Selected
-
0
-
0% To Do, 0% In Progress, 100% Done
Functionality
The metrics transform processor can be used to rename metrics, and add, rename or delete label keys and values. It can also be used to perform scaling and aggregations on metrics across labels or label values. The complete list of supported operations that can be applied to one or more metrics is provided in the below table.
Operation | Example (based on metric system.cpu.usage) |
---|---|
Rename metrics | Rename to system.cpu.usage_time |
Add labels | Add new label identifier with value 1 to all points |
Rename label keys | Rename label state to cpu_state |
Rename label values | For label state, rename value idle to - |
Delete data points | Delete all points where label state has value idle |
Toggle data type | Change from int data points to double data points |
Scale value | Multiply values by 1000 to convert from seconds to milliseconds |
Aggregate across label sets | Retain only the label state, average all points with the same value for this label |
Aggregate across label values | For label state, sum points where the value is user or system into used = user + system |
Scope
Tech Preview, including tests and documentation