Skip to content

[Metricbeat][Kubernetes] Enrich metadata from state resource quota #38004

@constanca-m

Description

@constanca-m

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions