Skip to content

Commit

Permalink
feat: K8s container synthesis from ksm->otel (#1431)
Browse files Browse the repository at this point in the history
Co-authored-by: rodolfocal <[email protected]>
  • Loading branch information
brettj-newrelic and rodolfocal authored Feb 14, 2024
1 parent 29e7f6b commit abe4127
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions entity-types/infra-container/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,38 @@ synthesis:
# and select the dashboard.
otel.library.name:
entityTagName: instrumentation.name
# kube-state-metrics data via opentelemetry prometheusReceiver
- compositeIdentifier:
separator: ":"
attributes:
- k8s.cluster.name
- namespace
- pod
- container
encodeIdentifierInGUID: true
name: container
conditions:
# kube-state-metrics container prefix
- attribute: metricName
prefix: kube_pod_container_
# identifier attributes
- attribute: container
present: true
- attribute: pod
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, handle as one
- attribute: service.name
present: false
# value added for test entities only
- attribute: newrelicOnly
value: "true"
tags:
newrelic.integrationName:
newrelic.integrationVersion:
Expand Down

0 comments on commit abe4127

Please sign in to comment.