Skip to content

Commit

Permalink
feat: Synthesis deployment from ksm->otel (#1429)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettj-newrelic authored Feb 14, 2024
1 parent a191dd6 commit 132a1db
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions entity-types/infra-kubernetes_deployment/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,35 @@ goldenTags:
- k8s.deploymentName
- k8s.clusterName
- k8s.namespaceName
synthesis:
rules:
# kube-state-metrics data via opentelemetry prometheusReceiver
- compositeIdentifier:
separator: ":"
attributes:
- k8s.cluster.name
- namespace
- deployment
encodeIdentifierInGUID: true
name: deployment
conditions:
# kube-state-metrics deployment prefix
- attribute: metricName
prefix: kube_deployment_
# identifier attributes
- attribute: deployment
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 132a1db

Please sign in to comment.