Skip to content

Grafana Operator Integration not applying metrics_relabel_config #4992

Open
@wltbenade

Description

@wltbenade

Hi all,

I've just implemented my first Integration CR, but have noticed that my metrics_relabel_metrics rule isn't being applied.

By default, the mssql exporter brings back the up metric, but in order to align it with the rest of our scraping configurations, I'd like to rename it to mssql_up.

Integration definition:

spec:
  config:
    autoscrape:
      enable: true
      metrics_instance: monitoring-system/metrics
      metrics_relabel_configs:
      - regex: up
        replacement: mssql_up
        source_labels:
        - __name__
        target_label: __name__
    connection_string: [REDACTED]
    instance: [REDACTED]
  name: mssql
  type:
    allNodes: false
    unique: true

Any idea what I'm doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-attentionAn issue or PR has been sitting around and needs attention.operatorGrafana Agent Operator relatedvariant/operatorRelated to Grafana Agent Static Operator.variant/staticRelated to Grafana Agent Static.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions