Skip to content

metric_set

MetricSet is used to define metrics. A metric set is a collection of metrics with the same attributes, generally used to describe a class of metrics for a certain type of observable entity, such as CPU, memory, disk a…

Kind: metric_set

Every element shares the standard envelope kind · metadata · schema.

spec fields

FieldTypeRequiredDefaultDescription
labelsobjectThe list of labels for the MetricSet. It is recommended to use dynamic to automatically generate labels. Note: The labels here are the general labels of the MetricSet. It is generally recommended that the MetricSet on…
labels.keysarray<field_spec>The list of labels. The value format is reference to the field definition.
labels.dynamicbooleanfalseWhether the key is dynamic. It is generally recommended to set it to true.
labels.filterstringThe filter of the label. When dynamic is true, it will be filtered according to this filter.
label_keysarray<field_spec>The label keys of the MetricSet. It is currently deprecated and will be deleted. Please use the labels field instead.
metricsarray<metric>The detailed list of metrics.
query_typeenum: prom, spl, cmsThe query type of the metric. The value can be prom, spl or cms.
needs_processingbooleanfalseWhether the MetricSet needs to be processed again. That is, whether the metrics in the MetricSet need to be processed again to be used. For example, the counter/summary/histogram metrics in Prometheus need to be proce…

Released under the Apache-2.0 License.