-
Notifications
You must be signed in to change notification settings - Fork 398
Expand file tree
/
Copy pathINFRA-KUBERNETES_PERSISTENTVOLUMECLAIM-to-INFRA-KUBERNETES_PERSISTENTVOLUME.stg.yml
More file actions
77 lines (77 loc) · 2.12 KB
/
INFRA-KUBERNETES_PERSISTENTVOLUMECLAIM-to-INFRA-KUBERNETES_PERSISTENTVOLUME.stg.yml
File metadata and controls
77 lines (77 loc) · 2.12 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
relationships:
- name: k8sPersistentVolumeClaimManagesPersistentVolume
version: "1"
origins:
- Kubernetes Integration
conditions:
- attribute: eventType
anyOf: [ "K8sPersistentVolumeClaimSample" ]
- attribute: volumeName
present: true
relationship:
expires: PT75M
relationshipType: MANAGES
source:
extractGuid:
attribute: entityGuid
entityType:
value: KUBERNETES_PERSISTENTVOLUMECLAIM
target:
buildGuid:
account:
lookup: true
domain:
value: INFRA
type:
value: KUBERNETES_PERSISTENTVOLUME
valueInGuid: NA
identifier:
fragments:
- value: "k8s:"
- attribute: clusterName
- value: ":PersistentVolume:"
- attribute: volumeName
hashAlgorithm: FARM_HASH
- name: otelKsmK8sPersistentVolumeClaimManagesPersistentVolume
# use kube-state-metrics kube_persistentvolumeclaim_info metric
version: "1"
origins:
- OpenTelemetry
conditions:
- attribute: metricName
anyOf: [ "kube_persistentvolumeclaim_info" ]
- attribute: volumename
present: true
relationship:
expires: PT75M
relationshipType: MANAGES
source:
buildGuid:
account:
lookup: true
domain:
value: INFRA
type:
value: KUBERNETES_PERSISTENTVOLUMECLAIM
identifier:
fragments:
- attribute: k8s.cluster.name
- value: ":"
- attribute: k8s.namespace.name
- value: ":"
- attribute: k8s.pvc.name
hashAlgorithm: FARM_HASH
target:
buildGuid:
account:
lookup: true
domain:
value: INFRA
type:
value: KUBERNETES_PERSISTENTVOLUME
identifier:
fragments:
- attribute: k8s.cluster.name
- value: ":"
- attribute: volumename
hashAlgorithm: FARM_HASH