The TypeScript type that represents the values of the composed metric.
Protected
metricProtected
metricProtected
metricProtected
metricsProtected
orchestratorProtected
queryThe query that yields the composed metric.
Protected
getHelper method to create an observable that emits immediately and then at the default polling interval.
The emitted value counts the number of emissions, starting with 0
, like interval()
.
This should be used for realizing getValueStream()
on raw metrics sources that require polling.
Generated using TypeDoc
A ComposedMetricSource that fetches composed metrics from Prometheus.
Naming Scheme: Composed metrics that are stored in Prometheus use the following naming scheme:
metricType
is the snake case version of the respectiveComposedMetricType.instance.metricTypeName
.metricType
can also be inferred from a MetricMapping CRD by using the snake case of<crd_api_group>_<crd_kind_without_metric_mapping_suffix>
. For example:Multi-valued composed metric example: Since Prometheus supports only a single floating point value per metric sample, we store the properties of a composed metric object using multiple samples and a classifier label. For example:
Single-valued composed metric example: Composed metrics that consist of a single value only use '.' as the
prop_key
.