diff --git a/contour/resources/podmonitors.yaml b/contour/resources/podmonitors.yaml new file mode 100644 index 0000000..e4f0005 --- /dev/null +++ b/contour/resources/podmonitors.yaml @@ -0,0 +1,33 @@ +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor +metadata: + name: contour-pods + labels: + prometheus: default +spec: + selector: + matchLabels: + app: contour-contour + namespaceSelector: + matchNames: + - projectcontour + podMetricsEndpoints: + - port: metrics + path: /metrics +--- +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor +metadata: + name: envoy-pods + labels: + prometheus: default +spec: + selector: + matchLabels: + app: envoy-contour + namespaceSelector: + matchNames: + - projectcontour + podMetricsEndpoints: + - port: metrics + path: /stats/prometheus \ No newline at end of file