Skip to content

[Feature]: add metricRelabelings field to the dcgm exporter service monitor. #2938

Description

@xhejtman

The operator already supports relabelings, but not the metricRelabelings. If I want to avoid exported_namespace and exporeted_pod labels and use the namespace and pod instead, I can do it with:

  metricRelabelings:
        - action: replace
          regex: (.+)
          sourceLabels:
            - exported_namespace
          targetLabel: namespace
        - action: replace
          regex: (.+)
          sourceLabels:
            - exported_pod
          targetLabel: pod
        - action: replace
          regex: (.+)
          sourceLabels:
            - exported_container
          targetLabel: container

but this is currently not possible from the helm values.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureissue/PR that proposes a new feature or functionalitylifecycle/frozenneeds-triageissue or PR has not been assigned a priority-px label

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions