forked from newrelic/entity-definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathINFRA-KUBERNETES_DEPLOYMENT-to-INFRA-KUBERNETES_POD.stg.yml
More file actions
58 lines (58 loc) · 1.74 KB
/
INFRA-KUBERNETES_DEPLOYMENT-to-INFRA-KUBERNETES_POD.stg.yml
File metadata and controls
58 lines (58 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
relationships:
- name: k8sDeploymentManagesPodStg
version: "1"
origins:
- Kubernetes Integration
conditions:
- attribute: eventType
anyOf: [ "K8sPodSample" ]
relationship:
expires: PT75M
relationshipType: MANAGES
source:
buildGuid:
account:
lookup: true
domain:
value: INFRA
type:
value: KUBERNETES_DEPLOYMENT
valueInGuid: NA
identifier:
fragments:
- value: "k8s:"
- attribute: clusterName
- value: ":"
- attribute: namespaceName
- value: ":deployment:"
- attribute: deploymentName
hashAlgorithm: FARM_HASH
target:
extractGuid:
attribute: entityGuid
entityType:
value: KUBERNETES_POD
- name: otelKsmK8sDeploymentManagesPodStg
# use kube-state-metrics kube_deployment_status_condition metric
version: "1"
origins:
- OpenTelemetry
conditions:
- attribute: metricName
anyOf: [ "kube_deployment_status_condition" ]
relationship:
expires: PT2H
relationshipType: MANAGES
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: KUBERNETES_POD
fields:
- field: k8s.deploymentName # deployment name of deployment
attribute: k8s.deployment.name # deployment of pod
- field: k8s.namespaceName # namespace of deployment
attribute: k8s.namespace.name # namespace of pod
- field: k8s.clusterName # cluster of deployment
attribute: k8s.cluster.name # cluster of pod