Skip to content

Commit

Permalink
Merge branch 'main' into k8s-pvc-os-synthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolfocal authored Feb 14, 2024
2 parents a052ea4 + 132a1db commit de66678
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 de66678

Please sign in to comment.