Skip to content

Commit

Permalink
fix: Name for OS K8s deployment from replicaset telemetry (#1573)
Browse files Browse the repository at this point in the history
Co-authored-by: Otávio Carvalho <[email protected]>
  • Loading branch information
brettj-newrelic and otaviocarvalho authored Mar 26, 2024
1 parent 2ea6d08 commit 2341699
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion entity-types/infra-kubernetes_deployment/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ synthesis:
# owner_name is that of the deployment
- owner_name
encodeIdentifierInGUID: true
name: deployment
name: owner_name
conditions:
# kube-state-metrics replicaset owned by deployment
- attribute: metricName
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"k8s.cluster.name": "farm",
"namespace": "orchards",
"deployment": "apple-tree",
"newrelic.source": "api.metrics.otlp",
"newrelicOnly": "true",
"metricName": "kube_deployment_created",
"kube_deployment_created": {"type":"gauge","count":1,"sum":1.0,"min":1.0,"max":1.0,"latest":1.0}
},
{
"k8s.cluster.name": "farm",
"namespace": "orchards",
"owner_name": "apple-tree",
"owner_kind": "Deployment",
"replicaset": "apple-tree-9f7b9f44b",
"newrelic.source": "api.metrics.otlp",
"newrelicOnly": "true",
"metricName": "kube_replicaset_owner",
"kube_replicaset_owner": {"type":"gauge","count":1,"sum":1.0,"min":1.0,"max":1.0,"latest":1.0}
}
]

0 comments on commit 2341699

Please sign in to comment.