Skip to content

Commit eb6e265

Browse files
avinalRoming22
authored andcommitted
add ServiceMonitor for tekton chains
Signed-off-by: Avinal Kumar <[email protected]>
1 parent 2b35235 commit eb6e265

File tree

3 files changed

+30
-4
lines changed

3 files changed

+30
-4
lines changed

operator/gitops/argocd/pipeline-service/openshift-pipelines/chains-observability-service.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,4 @@ spec:
1414
protocol: TCP
1515
targetPort: 9090
1616
selector:
17-
app.kubernetes.io/name: controller
18-
app.kubernetes.io/component: controller
19-
app.kubernetes.io/instance: default
20-
app.kubernetes.io/part-of: tekton-chains
17+
app: tekton-chains-controller
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
apiVersion: monitoring.coreos.com/v1
3+
kind: ServiceMonitor
4+
metadata:
5+
name: tekton-chains-controller
6+
namespace: openshift-pipelines
7+
annotations:
8+
argocd.argoproj.io/sync-wave: "1"
9+
spec:
10+
endpoints:
11+
- path: /metrics
12+
port: metrics
13+
scheme: http
14+
selector:
15+
matchLabels:
16+
app: tekton-chains-controller

operator/gitops/argocd/pipeline-service/openshift-pipelines/kustomization.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,18 @@ resources:
77
- openshift-operator.yaml
88
- tekton-config.yaml
99
- config-logging.yaml
10+
- chains-service-monitor.yaml
1011
# Manully add ConfigMap and Service until PLNSRVCE-1359 is fixed
1112
- chains-observability-service.yaml
13+
14+
## add a patch to add app label to the tekton chains deployment
15+
patches:
16+
- target:
17+
kind: Deployment
18+
name: tekton-chains-controller
19+
namespace: openshift-pipelines
20+
patch: |-
21+
- op: add
22+
path: /metadata/labels
23+
value:
24+
app: tekton-chains-controller

0 commit comments

Comments
 (0)