Skip to content

Commit 0b50c94

Browse files
authored
Merge pull request #685 from gabemontero/fix-exporter-metrics-grafana-console
PLNSRVCE-1069: get exporter metrics to work from dashboards
2 parents 1f6c7e7 + a960b2e commit 0b50c94

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

operator/gitops/argocd/pipeline-service/metrics-exporter/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ spec:
2020
image: quay.io/redhat-appstudio/pipeline-service-exporter:placeholder
2121
ports:
2222
- containerPort: 9117
23+
name: metrics
2324
resources:
2425
requests:
2526
memory: "128Mi"

operator/gitops/argocd/pipeline-service/metrics-exporter/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ resources:
55
- clusterrolebinding.yaml
66
- deployment.yaml
77
- service.yaml
8+
- servicemonitor.yaml
89

910
images:
1011
- name: quay.io/redhat-appstudio/pipeline-service-exporter
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
# for RHTAP, the pipeline-service monitor is defined in infra-deployments, but we define here in our developer folder (vs. the operator folder) to define this out of dev_setup.sh
3+
apiVersion: monitoring.coreos.com/v1
4+
kind: ServiceMonitor
5+
metadata:
6+
name: pipeline-service
7+
namespace: openshift-pipelines
8+
spec:
9+
jobLabel: app
10+
namespaceSelector:
11+
matchNames:
12+
- openshift-pipelines
13+
endpoints:
14+
- path: /metrics
15+
port: metrics
16+
interval: 15s
17+
scheme: http
18+
honorLabels: true
19+
selector:
20+
matchLabels:
21+
app: pipeline-metrics-exporter

0 commit comments

Comments
 (0)