Skip to content

Commit

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

Please sign in to comment.