Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
relationships:
- name: k8sNamespaceContainsReplicaSet
version: "1"
origins:
- Kubernetes Integration
conditions:
- attribute: eventType
anyOf: [ "K8sReplicasetSample" ]
- attribute: entityGuid
present: true
- attribute: namespaceName
present: true
- attribute: clusterName
present: true
- attribute: podsDesired
regex: "^[1-9][0-9]*$"
relationship:
expires: PT75M
relationshipType: CONTAINS
source:
lookupGuid:
candidateCategory: KUBERNETES_NAMESPACE
fields:
- field: k8s.clusterName
attribute: clusterName
- field: k8s.namespaceName
attribute: namespaceName
target:
extractGuid:
attribute: entityGuid
entityType:
value: KUBERNETES_REPLICASET
- name: otelKsmK8sNamespaceContainsReplicaSet
# use kube-state-metrics kube_replicaset_owner
version: "1"
origins:
- OpenTelemetry
conditions:
- attribute: metricName
anyOf: [ "kube_replicaset_owner" ]
relationship:
expires: PT75M
relationshipType: CONTAINS
source:
buildGuid:
account:
lookup: true
domain:
value: INFRA
type:
value: KUBERNETES_NAMESPACE
identifier:
fragments:
- attribute: k8s.cluster.name
- value: ":"
- attribute: k8s.namespace.name
hashAlgorithm: FARM_HASH
target:
extractGuid:
attribute: entity.guid
entityType:
value: KUBERNETES_REPLICASET
Loading