From 040ef5f6f82d9a3c14ebbe27b1dd18ca5d758461 Mon Sep 17 00:00:00 2001 From: greg pereira Date: Wed, 10 Nov 2021 17:18:24 -0800 Subject: [PATCH 1/2] service monitor to expose prow metrics to smaug grafana --- prow/overlays/smaug/kustomization.yaml | 1 + prow/overlays/smaug/service-monitor.yaml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 prow/overlays/smaug/service-monitor.yaml diff --git a/prow/overlays/smaug/kustomization.yaml b/prow/overlays/smaug/kustomization.yaml index a420b5f6d..8593edcab 100644 --- a/prow/overlays/smaug/kustomization.yaml +++ b/prow/overlays/smaug/kustomization.yaml @@ -7,6 +7,7 @@ resources: - route-ghproxy-metrics.yaml - routes.yaml - s3-storage.yaml + - service-monitor.yaml patchesStrategicMerge: - imagestreamtags.yaml - unsuspend_branchprotector.yaml diff --git a/prow/overlays/smaug/service-monitor.yaml b/prow/overlays/smaug/service-monitor.yaml new file mode 100644 index 000000000..d53f98eae --- /dev/null +++ b/prow/overlays/smaug/service-monitor.yaml @@ -0,0 +1,15 @@ +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: thoth-station-prow-monitor + labels: + monitor-component: thoth-station +spec: + endpoints: + - interval: 30s + port: metrics + scheme: https + namespaceSelector: + matchNames: + - opf-ci-prow + selector: {} From 3852a5c84ca933b960a899d1ee19ddd59c218873 Mon Sep 17 00:00:00 2001 From: Harshad Reddy Nalla Date: Mon, 15 Nov 2021 16:22:43 -0500 Subject: [PATCH 2/2] Update prow/overlays/smaug/service-monitor.yaml --- prow/overlays/smaug/service-monitor.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prow/overlays/smaug/service-monitor.yaml b/prow/overlays/smaug/service-monitor.yaml index d53f98eae..8fcacf90a 100644 --- a/prow/overlays/smaug/service-monitor.yaml +++ b/prow/overlays/smaug/service-monitor.yaml @@ -1,9 +1,9 @@ apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: - name: thoth-station-prow-monitor + name: opf-prow-monitor labels: - monitor-component: thoth-station + monitor-component: operate-first spec: endpoints: - interval: 30s