diff --git a/flux/air-quality/kustomization.yaml b/flux/air-quality/kustomization.yaml index 7ca00db..4902d2d 100644 --- a/flux/air-quality/kustomization.yaml +++ b/flux/air-quality/kustomization.yaml @@ -4,3 +4,4 @@ resources: - namespace.yaml - externalsecret.yaml - helmrelease.yaml + - servicemonitor.yaml diff --git a/flux/air-quality/servicemonitor.yaml b/flux/air-quality/servicemonitor.yaml new file mode 100644 index 0000000..603a223 --- /dev/null +++ b/flux/air-quality/servicemonitor.yaml @@ -0,0 +1,15 @@ +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: air-quality + namespace: air-quality + labels: + release: kube-prometheus-stack +spec: + selector: + matchLabels: + app.kubernetes.io/name: air-quality + endpoints: + - port: http + path: /metrics + interval: 30s diff --git a/flux/holidays/kustomization.yaml b/flux/holidays/kustomization.yaml index 7ca00db..4902d2d 100644 --- a/flux/holidays/kustomization.yaml +++ b/flux/holidays/kustomization.yaml @@ -4,3 +4,4 @@ resources: - namespace.yaml - externalsecret.yaml - helmrelease.yaml + - servicemonitor.yaml diff --git a/flux/holidays/servicemonitor.yaml b/flux/holidays/servicemonitor.yaml new file mode 100644 index 0000000..41a62dd --- /dev/null +++ b/flux/holidays/servicemonitor.yaml @@ -0,0 +1,15 @@ +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: holidays + namespace: holidays + labels: + release: kube-prometheus-stack +spec: + selector: + matchLabels: + app.kubernetes.io/name: holidays + endpoints: + - port: http + path: /metrics + interval: 30s diff --git a/flux/zip-enrichment/kustomization.yaml b/flux/zip-enrichment/kustomization.yaml index 7ca00db..4902d2d 100644 --- a/flux/zip-enrichment/kustomization.yaml +++ b/flux/zip-enrichment/kustomization.yaml @@ -4,3 +4,4 @@ resources: - namespace.yaml - externalsecret.yaml - helmrelease.yaml + - servicemonitor.yaml diff --git a/flux/zip-enrichment/servicemonitor.yaml b/flux/zip-enrichment/servicemonitor.yaml new file mode 100644 index 0000000..cb9d10c --- /dev/null +++ b/flux/zip-enrichment/servicemonitor.yaml @@ -0,0 +1,15 @@ +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: zip-enrichment + namespace: zip-enrichment + labels: + release: kube-prometheus-stack +spec: + selector: + matchLabels: + app.kubernetes.io/name: zip-enrichment + endpoints: + - port: http + path: /metrics + interval: 30s