Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting relabelings and metricRelabelings for hpe-array-exporter & hpe-csi-info-metrics #404

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aw1cks
Copy link

@aw1cks aw1cks commented Nov 7, 2024

This PR allows setting relabelings and metricRelabelings on the serviceMonitor of the hpe-array-exporter and hpe-csi-info-metrics charts.

Here is an example usage, which makes the metric names consistent across all array types:

serviceMonitor:
  metricRelabelings:
    - sourceLabels: [__name__]
      action: labelmap
      regex: "cpg|pool"
      replacement: "storagepool"
    - sourceLabels: [__name__]
      regex: "^hpe(primera|nimble|3par|alletra6000|alletra9000)_(.*)"
      targetLabel: "__name__"
      replacement: "hpe_$2"
    - sourceLabels: [__name__]
      regex: "^hpe_(pool|cpg)_(.*)"
      targetLabel: "__name__"
      replacement: "hpe_storagepool_$2"

@datamattsson
Copy link
Collaborator

Thank you for your contribution. This PR will be considered for the next build, no ETA as of now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants