diff --git a/templates/test_service_montitor.yaml b/templates/test_service_montitor.yaml new file mode 100644 index 0000000..fb08d64 --- /dev/null +++ b/templates/test_service_montitor.yaml @@ -0,0 +1,29 @@ +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor + +metadata: + # The name of the service monitor + name: test-servicemonitor + # The namespace it will be in + namespace: mobene-nsodev + labels: + # How to find this service monitor + # The name I should use in `serviceMonitorSelector` + name: test-servicemonitor + release: kube-prometheus-stack + +spec: + endpoints: + - interval: 5s + port: metrics + path: /metrics + + # The namespace of origin service + namespaceSelector: + matchNames: + - mobene-nsodev + + selector: + matchLabels: + # Where the monitor will attach to + name: test-monitor-service \ No newline at end of file