Unlike other state metricsets, resource quota does not have an enricher for its metadata:
|
type ResourceQuotaMetricSet struct { |
|
mb.BaseMetricSet |
|
prometheus p.Prometheus |
|
mapping *p.MetricsMapping |
|
mod k8smod.Module |
|
} |
We should add a new variable for it like we do with other state metricsets:
|
enricher: util.NewResourceMetadataEnricher(base, resourceName, mod.GetMetricsRepo(), false), |
This enricher is expected to make use of watchers tracking the resources namespace and resource quota.
Unlike other state metricsets, resource quota does not have an enricher for its metadata:
beats/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota.go
Lines 53 to 58 in ecaf12c
We should add a new variable for it like we do with other state metricsets:
beats/metricbeat/helper/kubernetes/state_metricset.go
Line 91 in d9139c9
This enricher is expected to make use of watchers tracking the resources namespace and resource quota.