Open nineinchnick opened 2 years ago
@przemekak @sopel39 @radek-starburst PTAL. There are breaking changes here but I tried to preserve some backward compatibility.
@nineinchnick are you working on this? Is this required for benchmarking infra
@nineinchnick are you working on this? Is this required for benchmarking infra
I'm not, since it's not required. It would only make report queries a bit simpler, as it would have to parse metric names to split out prefixes.
Because this is a breaking change, I want to prepare responses to all the comments I got, but it's a low priority.
This PR extracts
name
andunit
from measurements into anothermetrics
table. Such metrics also have attributes, which allow the removal of prefixes and suffixes from metric names and make it easier to filter some metrics when building reports.The denormalized
measurement.name
andmeasurement.unit
columns are not removed, but the name format is changed fromcluster-cpu_max
tocpu {scope=cluster,aggregate=max}
.This change matches how other metric monitoring system stores data, using labels (Prometheus) or attributes (OpenTelemetry).