diff --git a/camtiler/application.yml b/camtiler/application.yml index dc31e09..b66e514 100644 --- a/camtiler/application.yml +++ b/camtiler/application.yml @@ -339,3 +339,17 @@ spec: target: http://user@100.102.3.1:8080/?action=stream secretRef: camera-secrets replicas: 1 +--- +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor +metadata: + name: camera-motion-detect +spec: + selector: + matchLabels: + component: camera-motion-detect + podMetricsEndpoints: + - port: http + podTargetLabels: + - app.kubernetes.io/name + - component diff --git a/camtiler/network-policies.yml b/camtiler/network-policies.yml index e182b6a..0029a52 100644 --- a/camtiler/network-policies.yml +++ b/camtiler/network-policies.yml @@ -19,7 +19,7 @@ spec: - from: - namespaceSelector: matchLabels: - kubernetes.io/metadata.name: prometheus-operator + kubernetes.io/metadata.name: monitoring podSelector: matchLabels: app.kubernetes.io/name: prometheus @@ -64,7 +64,7 @@ spec: - from: - namespaceSelector: matchLabels: - kubernetes.io/metadata.name: prometheus-operator + kubernetes.io/metadata.name: monitoring podSelector: matchLabels: app.kubernetes.io/name: prometheus @@ -186,7 +186,7 @@ spec: - from: - namespaceSelector: matchLabels: - kubernetes.io/metadata.name: prometheus-operator + kubernetes.io/metadata.name: monitoring podSelector: matchLabels: app.kubernetes.io/name: prometheus