Skip to content

Commit

Permalink
feat: Stop creating confluent topic entities for opentelemetry (#1905)
Browse files Browse the repository at this point in the history
feat: Stop creating confluent topic entities for opentelemetry
  • Loading branch information
dsankaraganti authored Feb 7, 2025
1 parent 8b6f7c6 commit dbf47cc
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 75 deletions.
2 changes: 0 additions & 2 deletions entity-types/ext-service/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ synthesis:
value: opentelemetry
- attribute: newrelic.entity.type
present: false
- attribute: kafka_id # to skip confluent kafka server metrics to create confluentcloudcluster entities instead of service entities
present: false
tags:
k8s.cluster.name:
ttl: P1D
Expand Down
38 changes: 19 additions & 19 deletions entity-types/infra-confluentcloudcluster/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,25 @@ dashboardTemplates:
synthesis:
rules:
# telemetry from opentelemetry provider
- identifier: kafka_id
name: kafka.cluster_name
encodeIdentifierInGUID: true
tags:
kafka_id:
kafka.cluster_name:
instrumentation.provider:
newrelic.source:
conditions:
- attribute: eventType
value: Metric
- attribute: metricName
prefix: confluent_kafka_server_
- attribute: instrumentation.provider
value: opentelemetry
- attribute: kafka_id
present: true
- attribute: topic
present: false
# - identifier: kafka_id
# name: kafka.cluster_name
# encodeIdentifierInGUID: true
# tags:
# kafka_id:
# kafka.cluster_name:
# instrumentation.provider:
# newrelic.source:
# conditions:
# - attribute: eventType
# value: Metric
# - attribute: metricName
# prefix: confluent_kafka_server_
# - attribute: instrumentation.provider
# value: opentelemetry
# - attribute: kafka_id
# present: true
# - attribute: topic
# present: false

# telemetry from confluent-cloud provider
- identifier: confluent.clusterId
Expand Down
108 changes: 54 additions & 54 deletions entity-types/infra-confluentcloudkafkatopic/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,61 +36,61 @@ dashboardTemplates:
synthesis:
rules:
# telemetry from opentelemetry provider
- compositeIdentifier:
separator: ":"
attributes:
- kafka_id
- topic
name: displayName
encodeIdentifierInGUID: true
tags:
kafka_id:
kafka.cluster_name:
instrumentation.provider:
topic:
bootstrap.servers:
newrelic.source:
conditions:
- attribute: eventType
value: Metric
- attribute: metricName
prefix: confluent_kafka_server_
- attribute: instrumentation.provider
value: opentelemetry
- attribute: kafka_id
present: true
- attribute: topic
present: true
- attribute: displayName
present: true
# - compositeIdentifier:
# separator: ":"
# attributes:
# - kafka_id
# - topic
# name: displayName
# encodeIdentifierInGUID: true
# tags:
# kafka_id:
# kafka.cluster_name:
# instrumentation.provider:
# topic:
# bootstrap.servers:
# newrelic.source:
# conditions:
# - attribute: eventType
# value: Metric
# - attribute: metricName
# prefix: confluent_kafka_server_
# - attribute: instrumentation.provider
# value: opentelemetry
# - attribute: kafka_id
# present: true
# - attribute: topic
# present: true
# - attribute: displayName
# present: true

- compositeIdentifier:
separator: ":"
attributes:
- kafka_id
- topic
name: topic
encodeIdentifierInGUID: true
tags:
kafka_id:
kafka.cluster_name:
topic:
instrumentation.provider:
bootstrap.servers:
newrelic.source:
conditions:
- attribute: eventType
value: Metric
- attribute: metricName
prefix: confluent_kafka_server_
- attribute: instrumentation.provider
value: opentelemetry
- attribute: kafka_id
present: true
- attribute: topic
present: true
- attribute: displayName
present: false
# - compositeIdentifier:
# separator: ":"
# attributes:
# - kafka_id
# - topic
# name: topic
# encodeIdentifierInGUID: true
# tags:
# kafka_id:
# kafka.cluster_name:
# topic:
# instrumentation.provider:
# bootstrap.servers:
# newrelic.source:
# conditions:
# - attribute: eventType
# value: Metric
# - attribute: metricName
# prefix: confluent_kafka_server_
# - attribute: instrumentation.provider
# value: opentelemetry
# - attribute: kafka_id
# present: true
# - attribute: topic
# present: true
# - attribute: displayName
# present: false

# telemetry from confluent-cloud provider
- compositeIdentifier:
Expand Down

0 comments on commit dbf47cc

Please sign in to comment.