Skip to content

Commit 34211ef

Browse files
avinalramessesii2
authored andcommitted
add tekton chains grafana dashboard
- fix tekton chains servicemonitor issue - remove tekton chains patches - add grafana dashboard with two metrics - refer PLNSRVCE-1332 Signed-off-by: Avinal Kumar <[email protected]>
1 parent 532acec commit 34211ef

File tree

4 files changed

+206
-14
lines changed

4 files changed

+206
-14
lines changed

operator/gitops/argocd/grafana/dashboards/pipeline-service-dashboard.json

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3618,6 +3618,193 @@
36183618
"timeShift": null,
36193619
"title": "Watcher Latency",
36203620
"type": "timeseries"
3621+
},
3622+
{
3623+
"collapsed": false,
3624+
"gridPos": {
3625+
"h": 1,
3626+
"w": 24,
3627+
"x": 0,
3628+
"y": 179
3629+
},
3630+
"id": 79,
3631+
"panels": [],
3632+
"repeat": "datasource",
3633+
"repeatDirection": "h",
3634+
"title": "Tekton Chains",
3635+
"type": "row"
3636+
},
3637+
{
3638+
"datasource": null,
3639+
"fieldConfig": {
3640+
"defaults": {
3641+
"color": {
3642+
"mode": "palette-classic"
3643+
},
3644+
"custom": {
3645+
"axisCenteredZero": false,
3646+
"axisColorMode": "text",
3647+
"axisLabel": "",
3648+
"axisPlacement": "auto",
3649+
"barAlignment": 0,
3650+
"drawStyle": "line",
3651+
"fillOpacity": 0,
3652+
"gradientMode": "none",
3653+
"hideFrom": {
3654+
"legend": false,
3655+
"tooltip": false,
3656+
"viz": false
3657+
},
3658+
"lineInterpolation": "linear",
3659+
"lineWidth": 1,
3660+
"pointSize": 5,
3661+
"scaleDistribution": {
3662+
"type": "linear"
3663+
},
3664+
"showPoints": "auto",
3665+
"spanNulls": false,
3666+
"stacking": {
3667+
"group": "A",
3668+
"mode": "none"
3669+
},
3670+
"thresholdsStyle": {
3671+
"mode": "off"
3672+
}
3673+
},
3674+
"mappings": [],
3675+
"thresholds": {
3676+
"mode": "absolute",
3677+
"steps": [
3678+
{
3679+
"color": "green",
3680+
"value": null
3681+
},
3682+
{
3683+
"color": "red",
3684+
"value": 80
3685+
}
3686+
]
3687+
}
3688+
},
3689+
"overrides": []
3690+
},
3691+
"gridPos": {
3692+
"h": 8,
3693+
"w": 12,
3694+
"x": 0,
3695+
"y": 180
3696+
},
3697+
"id": 81,
3698+
"options": {
3699+
"legend": {
3700+
"calcs": [],
3701+
"displayMode": "list",
3702+
"placement": "bottom",
3703+
"showLegend": true
3704+
},
3705+
"tooltip": {
3706+
"mode": "single",
3707+
"sort": "none"
3708+
}
3709+
},
3710+
"targets": [
3711+
{
3712+
"datasource": null,
3713+
"editorMode": "builder",
3714+
"expr": "rate(watcher_go_gc_cpu_fraction{app=\"tekton-chains-controller\"}[5m])",
3715+
"legendFormat": "__auto",
3716+
"range": true,
3717+
"refId": "A"
3718+
}
3719+
],
3720+
"title": "Tekton Chains CPU Fraction Use",
3721+
"type": "timeseries"
3722+
},
3723+
{
3724+
"datasource": null,
3725+
"fieldConfig": {
3726+
"defaults": {
3727+
"color": {
3728+
"mode": "palette-classic"
3729+
},
3730+
"custom": {
3731+
"axisCenteredZero": false,
3732+
"axisColorMode": "text",
3733+
"axisLabel": "",
3734+
"axisPlacement": "auto",
3735+
"barAlignment": 0,
3736+
"drawStyle": "line",
3737+
"fillOpacity": 0,
3738+
"gradientMode": "none",
3739+
"hideFrom": {
3740+
"legend": false,
3741+
"tooltip": false,
3742+
"viz": false
3743+
},
3744+
"lineInterpolation": "linear",
3745+
"lineWidth": 1,
3746+
"pointSize": 5,
3747+
"scaleDistribution": {
3748+
"type": "linear"
3749+
},
3750+
"showPoints": "auto",
3751+
"spanNulls": false,
3752+
"stacking": {
3753+
"group": "A",
3754+
"mode": "none"
3755+
},
3756+
"thresholdsStyle": {
3757+
"mode": "off"
3758+
}
3759+
},
3760+
"mappings": [],
3761+
"thresholds": {
3762+
"mode": "absolute",
3763+
"steps": [
3764+
{
3765+
"color": "green",
3766+
"value": null
3767+
},
3768+
{
3769+
"color": "red",
3770+
"value": 80
3771+
}
3772+
]
3773+
}
3774+
},
3775+
"overrides": []
3776+
},
3777+
"gridPos": {
3778+
"h": 8,
3779+
"w": 12,
3780+
"x": 12,
3781+
"y": 180
3782+
},
3783+
"id": 83,
3784+
"options": {
3785+
"legend": {
3786+
"calcs": [],
3787+
"displayMode": "list",
3788+
"placement": "bottom",
3789+
"showLegend": true
3790+
},
3791+
"tooltip": {
3792+
"mode": "single",
3793+
"sort": "none"
3794+
}
3795+
},
3796+
"targets": [
3797+
{
3798+
"datasource": null,
3799+
"editorMode": "builder",
3800+
"expr": "rate(watcher_workqueue_longest_running_processor_seconds_count{app=\"tekton-chains-controller\"}[5m])",
3801+
"legendFormat": "__auto",
3802+
"range": true,
3803+
"refId": "A"
3804+
}
3805+
],
3806+
"title": "Tekton Chains Workqueue Rate",
3807+
"type": "timeseries"
36213808
}
36223809
],
36233810
"refresh": "10s",

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,19 @@ kind: Service
44
metadata:
55
name: tekton-chains
66
namespace: openshift-pipelines
7+
annotations:
8+
argocd.argoproj.io/sync-wave: "0"
79
labels:
8-
app.kubernetes.io/instance: default
910
app.kubernetes.io/part-of: tekton-chains
11+
app.kubernetes.io/component: metrics
12+
app: tekton-chains-controller
1013
spec:
1114
ports:
1215
- name: metrics
1316
port: 9090
1417
protocol: TCP
1518
targetPort: 9090
1619
selector:
17-
app: tekton-chains-controller
20+
app.kubernetes.io/instance: default
21+
app.kubernetes.io/part-of: tekton-chains
22+
app.kubernetes.io/component: controller

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,22 @@ metadata:
77
annotations:
88
argocd.argoproj.io/sync-wave: "1"
99
spec:
10+
jobLabel: "app.kubernetes.io/name"
1011
endpoints:
1112
- path: /metrics
1213
port: metrics
14+
interval: 15s
1315
scheme: http
16+
honorLabels: true
17+
namespaceSelector:
18+
matchNames:
19+
- openshift-pipelines
1420
selector:
1521
matchLabels:
22+
app.kubernetes.io/part-of: tekton-chains
23+
app.kubernetes.io/component: metrics
1624
app: tekton-chains-controller
25+
targetLabels:
26+
- app
27+
- app.kubernetes.io/component
28+
- app.kubernetes.io/part-of

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,3 @@ resources:
1010
- chains-service-monitor.yaml
1111
# Manully add ConfigMap and Service until PLNSRVCE-1359 is fixed
1212
- 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)