Skip to content

Commit 0b7e18b

Browse files
fix(kafka-otel): Update kafka cluster golden metrics
1 parent 424f58c commit 0b7e18b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entity-types/infra-kafkacluster/golden_metrics.stg.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ TopicCount:
2525
opentelemetry:
2626
select: max(kafka.cluster.topic.count)
2727
from: Metric
28-
where: metricName='kafka.cluster.topic.count'
28+
where: metricName='kafka.cluster.topic.count' and getField(kafka.cluster.topic.count , 'count') > 0
2929
eventId: entity.guid
3030

3131
partitionCount:
@@ -40,7 +40,7 @@ partitionCount:
4040
opentelemetry:
4141
select: max(kafka.cluster.partition.count)
4242
from: Metric
43-
where: metricName='kafka.cluster.partition.count'
43+
where: metricName='kafka.cluster.partition.count' and getField(kafka.cluster.partition.count , 'count') > 0
4444
eventId: entity.guid
4545

4646
offlinePartitions:

0 commit comments

Comments
 (0)