Skip to content

Can't to exclude attributes #1128

@laa88rf

Description

@laa88rf

Hello.

I have unneded Kafka metrics. For example:

# HELP kafka_network_RequestMetrics_50thPercentile Attribute exposed for management kafka.network:name=ResponseQueueTimeMs,type=RequestMetrics,attribute=50thPercentile
# TYPE kafka_network_RequestMetrics_50thPercentile untyped
kafka_network_RequestMetrics_50thPercentile{name="LocalTimeMs",request="AddOffsetsToTxn"} 0.0
kafka_network_RequestMetrics_50thPercentile{name="LocalTimeMs",request="AddPartitionsToTxn"} 0.0

I want delete it from /metrics page.
I tried the following:

blacklistObjectNames: ["kafka.log:*", "kafka.network:name=ResponseQueueTimeMs,type=RequestMetrics,attribute=50thPercentile", "kafka.cluster:type=Partition,*"]
rules:
  - pattern: ".*"

also:

excludeObjectNameAttributes:
        "kafka.network:type=RequestMetrics":
                - 50thPercentile

Also:

rules:
- pattern: "(.*)"
  name: "$1"
  action: drop
  labels:
    __name__: ".*(_50thPercentile)$"

and many more options. And none of them work.
Version 1.1.0

Please help me.
Also, please add relevant information about exclude/drop metrics.

Thank you.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions