Skip to content

Commit

Permalink
feat: K8s daemonset synthesis from ksm->otel (#1432)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettj-newrelic authored Feb 14, 2024
1 parent 80b2fe0 commit 29e7f6b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions entity-types/infra-kubernetes_daemonset/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,34 @@ goldenTags:
- k8s.daemonsetName
- k8s.clusterName
- k8s.namespaceName
synthesis:
rules:
# kube-state-metrics data via opentelemetry prometheusReceiver
- compositeIdentifier:
separator: ":"
attributes:
- k8s.cluster.name
- namespace
- daemonset
encodeIdentifierInGUID: true
name: daemonset
conditions:
# kube-state-metrics daemonset prefix
- attribute: metricName
prefix: kube_daemonset_
# identifier attributes
- attribute: daemonset
present: true
- attribute: namespace
present: true
- attribute: k8s.cluster.name
present: true
# open telemetry
- attribute: newrelic.source
value: 'api.metrics.otlp'
# if service.name is present, it's a service
- attribute: service.name
present: false
# value added for test entities only
- attribute: newrelicOnly
value: "true"

0 comments on commit 29e7f6b

Please sign in to comment.