Skip to content

Commit

Permalink
Merge branch 'main' into k8s-persistentvolume-os-synthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolfocal authored Feb 14, 2024
2 parents e774544 + 712be9c commit f5051ef
Show file tree
Hide file tree
Showing 2 changed files with 63 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"

31 changes: 31 additions & 0 deletions entity-types/infra-kubernetes_persistentvolumeclaim/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,34 @@ goldenTags:
- k8s.pvcName
- k8s.clusterName
- k8s.pvcNamespace
synthesis:
rules:
# kube-state-metrics data via opentelemetry prometheusReceiver
- compositeIdentifier:
separator: ":"
attributes:
- k8s.cluster.name
- namespace
- persistentvolumeclaim
encodeIdentifierInGUID: true
name: persistentvolumeclaim
conditions:
# kube-state-metrics persistentvolumeclaim prefix
- attribute: metricName
prefix: kube_persistentvolumeclaim_
# identifier attributes
- attribute: persistentvolumeclaim
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 f5051ef

Please sign in to comment.