-
Notifications
You must be signed in to change notification settings - Fork 398
Expand file tree
/
Copy pathINFRA-HOST-to-INFRA-KUBERNETES_POD.stg.yml
More file actions
59 lines (59 loc) · 1.81 KB
/
INFRA-HOST-to-INFRA-KUBERNETES_POD.stg.yml
File metadata and controls
59 lines (59 loc) · 1.81 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
59
relationships:
- name: k8sHostHostsPod
version: "1"
origins:
- Kubernetes Integration
conditions:
- attribute: eventType
anyOf: [ "K8sPodSample" ]
relationship:
expires: PT75M
relationshipType: HOSTS
source:
lookupGuid:
candidateCategory: HOST
fields:
- field: hostName # hostname of host
attribute: nodeName # node hostname from pod
target:
lookupGuid:
candidateCategory: KUBERNETES_POD
fields:
- field: k8s.cluster.name # cluster of pod
attribute: clusterName # cluster from K8sPodSample
- field: k8s.node.name # node of pod
attribute: nodeName # node from K8sPodSample
- name: otelKsmK8sHostHostsPod
# use kube-state-metrics system metric
version: "1"
origins:
- OpenTelemetry
conditions:
- attribute: metricName
startsWith: system.
- attribute: eventType
anyOf: [ "Metric" ]
- attribute: newrelic.source
anyOf: [ "api.metrics.otlp" ]
# if service.name is present, it's a service, not a host
- attribute: service.name
present: false
# if container.id is present, it's a container, not a host
- attribute: container.id
present: false
- attribute: k8s.cluster.name
present: true
relationship:
expires: PT75M
relationshipType: HOSTS
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: KUBERNETES_POD
fields:
- field: k8s.node.name # node name of host
attribute: host.name # hostname of pod
- field: k8s.cluster.name # cluster of host
attribute: k8s.cluster.name # cluster of pod