Skip to content

Commit 04f3699

Browse files
committed
contrib: add grafana dashboards for deletion metrics
This has been a part of the API for some time and is starting to be used extensively. Signed-off-by: crozzy <[email protected]> (cherry picked from commit 34e95a1)
1 parent 8a2d99f commit 04f3699

File tree

2 files changed

+610
-20
lines changed

2 files changed

+610
-20
lines changed

contrib/openshift/grafana/dashboards/dashboard-clair.configmap.yaml

Lines changed: 305 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ data:
3434
"editable": true,
3535
"gnetId": null,
3636
"graphTooltip": 1,
37-
"iteration": 1675970678069,
37+
"iteration": 1694452951165,
3838
"links": [],
3939
"panels": [
4040
{
@@ -1136,7 +1136,7 @@ data:
11361136
"yBucketSize": null
11371137
},
11381138
{
1139-
"datasource": "${datasource}",
1139+
"datasource": "$datasource",
11401140
"fieldConfig": {
11411141
"defaults": {
11421142
"color": {
@@ -1770,7 +1770,7 @@ data:
17701770
"type": "timeseries"
17711771
},
17721772
{
1773-
"datasource": "${datasource}",
1773+
"datasource": "$datasource",
17741774
"fieldConfig": {
17751775
"defaults": {
17761776
"color": {
@@ -2888,6 +2888,301 @@ data:
28882888
"x": 0,
28892889
"y": 114
28902890
},
2891+
"id": 66,
2892+
"options": {
2893+
"legend": {
2894+
"calcs": [],
2895+
"displayMode": "list",
2896+
"placement": "bottom"
2897+
},
2898+
"tooltip": {
2899+
"mode": "single"
2900+
}
2901+
},
2902+
"targets": [
2903+
{
2904+
"exemplar": true,
2905+
"expr": "sum by (code) (rate(clair_http_indexerv1_request_total{method=\"delete\", handler=\"/indexer/api/v1/index_report\"}[$rate]))",
2906+
"hide": false,
2907+
"instant": false,
2908+
"interval": "1",
2909+
"legendFormat": "Status {{ code }} ",
2910+
"refId": "B"
2911+
}
2912+
],
2913+
"title": "Index Report Bulk Deletion Requests / s",
2914+
"type": "timeseries"
2915+
},
2916+
{
2917+
"cards": {
2918+
"cardPadding": null,
2919+
"cardRound": null
2920+
},
2921+
"color": {
2922+
"cardColor": "#b4ff00",
2923+
"colorScale": "linear",
2924+
"colorScheme": "interpolateGreys",
2925+
"exponent": 0.5,
2926+
"mode": "opacity"
2927+
},
2928+
"dataFormat": "tsbuckets",
2929+
"datasource": "$datasource",
2930+
"description": "",
2931+
"gridPos": {
2932+
"h": 8,
2933+
"w": 12,
2934+
"x": 12,
2935+
"y": 114
2936+
},
2937+
"heatmap": {},
2938+
"hideZeroBuckets": true,
2939+
"highlightCards": true,
2940+
"id": 67,
2941+
"legend": {
2942+
"show": true
2943+
},
2944+
"maxDataPoints": 50,
2945+
"reverseYBuckets": false,
2946+
"targets": [
2947+
{
2948+
"exemplar": true,
2949+
"expr": "sum(increase(clair_http_indexerv1_request_duration_seconds_bucket{method=\"delete\", handler=\"/indexer/api/v1/index_report\"} [5m])) by (le)",
2950+
"format": "heatmap",
2951+
"instant": false,
2952+
"interval": "1",
2953+
"legendFormat": "{{ le }}",
2954+
"refId": "A"
2955+
}
2956+
],
2957+
"title": "Index Report Bulk Deletion Request Latency",
2958+
"tooltip": {
2959+
"show": true,
2960+
"showHistogram": false
2961+
},
2962+
"type": "heatmap",
2963+
"xAxis": {
2964+
"show": true
2965+
},
2966+
"xBucketNumber": null,
2967+
"xBucketSize": null,
2968+
"yAxis": {
2969+
"decimals": null,
2970+
"format": "s",
2971+
"logBase": 1,
2972+
"max": null,
2973+
"min": null,
2974+
"show": true,
2975+
"splitFactor": null
2976+
},
2977+
"yBucketBound": "auto",
2978+
"yBucketNumber": null,
2979+
"yBucketSize": null
2980+
},
2981+
{
2982+
"datasource": "$datasource",
2983+
"fieldConfig": {
2984+
"defaults": {
2985+
"color": {
2986+
"mode": "palette-classic"
2987+
},
2988+
"custom": {
2989+
"axisLabel": "",
2990+
"axisPlacement": "auto",
2991+
"barAlignment": 0,
2992+
"drawStyle": "line",
2993+
"fillOpacity": 0,
2994+
"gradientMode": "none",
2995+
"hideFrom": {
2996+
"legend": false,
2997+
"tooltip": false,
2998+
"viz": false
2999+
},
3000+
"lineInterpolation": "linear",
3001+
"lineWidth": 1,
3002+
"pointSize": 5,
3003+
"scaleDistribution": {
3004+
"type": "linear"
3005+
},
3006+
"showPoints": "auto",
3007+
"spanNulls": false,
3008+
"stacking": {
3009+
"group": "A",
3010+
"mode": "none"
3011+
},
3012+
"thresholdsStyle": {
3013+
"mode": "off"
3014+
}
3015+
},
3016+
"mappings": [],
3017+
"thresholds": {
3018+
"mode": "absolute",
3019+
"steps": [
3020+
{
3021+
"color": "green",
3022+
"value": null
3023+
},
3024+
{
3025+
"color": "red",
3026+
"value": 80
3027+
}
3028+
]
3029+
}
3030+
},
3031+
"overrides": []
3032+
},
3033+
"gridPos": {
3034+
"h": 8,
3035+
"w": 12,
3036+
"x": 0,
3037+
"y": 122
3038+
},
3039+
"id": 68,
3040+
"options": {
3041+
"legend": {
3042+
"calcs": [],
3043+
"displayMode": "list",
3044+
"placement": "bottom"
3045+
},
3046+
"tooltip": {
3047+
"mode": "single"
3048+
}
3049+
},
3050+
"targets": [
3051+
{
3052+
"exemplar": true,
3053+
"expr": "sum by (code) (rate(clair_http_indexerv1_request_total{method=\"delete\", handler=\"/indexer/api/v1/index_report/:digest\"}[$rate]))",
3054+
"instant": false,
3055+
"interval": "1",
3056+
"legendFormat": "Status {{ code }} ",
3057+
"refId": "A"
3058+
}
3059+
],
3060+
"title": "Index Report Deletion Requests / s",
3061+
"type": "timeseries"
3062+
},
3063+
{
3064+
"cards": {
3065+
"cardPadding": null,
3066+
"cardRound": null
3067+
},
3068+
"color": {
3069+
"cardColor": "#b4ff00",
3070+
"colorScale": "linear",
3071+
"colorScheme": "interpolateGreys",
3072+
"exponent": 0.5,
3073+
"mode": "opacity"
3074+
},
3075+
"dataFormat": "tsbuckets",
3076+
"datasource": "$datasource",
3077+
"description": "",
3078+
"gridPos": {
3079+
"h": 8,
3080+
"w": 12,
3081+
"x": 12,
3082+
"y": 122
3083+
},
3084+
"heatmap": {},
3085+
"hideZeroBuckets": true,
3086+
"highlightCards": true,
3087+
"id": 69,
3088+
"legend": {
3089+
"show": true
3090+
},
3091+
"maxDataPoints": 50,
3092+
"reverseYBuckets": false,
3093+
"targets": [
3094+
{
3095+
"exemplar": true,
3096+
"expr": "sum(increase(clair_http_indexerv1_request_duration_seconds_bucket{method=\"delete\", handler=\"/indexer/api/v1/index_report/:digest\"} [5m])) by (le)",
3097+
"format": "heatmap",
3098+
"instant": false,
3099+
"interval": "1",
3100+
"legendFormat": "{{ le }}",
3101+
"refId": "A"
3102+
}
3103+
],
3104+
"title": "Index Report Deletion Request Latency",
3105+
"tooltip": {
3106+
"show": true,
3107+
"showHistogram": false
3108+
},
3109+
"type": "heatmap",
3110+
"xAxis": {
3111+
"show": true
3112+
},
3113+
"xBucketNumber": null,
3114+
"xBucketSize": null,
3115+
"yAxis": {
3116+
"decimals": null,
3117+
"format": "s",
3118+
"logBase": 1,
3119+
"max": null,
3120+
"min": null,
3121+
"show": true,
3122+
"splitFactor": null
3123+
},
3124+
"yBucketBound": "auto",
3125+
"yBucketNumber": null,
3126+
"yBucketSize": null
3127+
},
3128+
{
3129+
"datasource": "$datasource",
3130+
"fieldConfig": {
3131+
"defaults": {
3132+
"color": {
3133+
"mode": "palette-classic"
3134+
},
3135+
"custom": {
3136+
"axisLabel": "",
3137+
"axisPlacement": "auto",
3138+
"barAlignment": 0,
3139+
"drawStyle": "line",
3140+
"fillOpacity": 0,
3141+
"gradientMode": "none",
3142+
"hideFrom": {
3143+
"legend": false,
3144+
"tooltip": false,
3145+
"viz": false
3146+
},
3147+
"lineInterpolation": "linear",
3148+
"lineWidth": 1,
3149+
"pointSize": 5,
3150+
"scaleDistribution": {
3151+
"type": "linear"
3152+
},
3153+
"showPoints": "auto",
3154+
"spanNulls": false,
3155+
"stacking": {
3156+
"group": "A",
3157+
"mode": "none"
3158+
},
3159+
"thresholdsStyle": {
3160+
"mode": "off"
3161+
}
3162+
},
3163+
"mappings": [],
3164+
"thresholds": {
3165+
"mode": "absolute",
3166+
"steps": [
3167+
{
3168+
"color": "green",
3169+
"value": null
3170+
},
3171+
{
3172+
"color": "red",
3173+
"value": 80
3174+
}
3175+
]
3176+
}
3177+
},
3178+
"overrides": []
3179+
},
3180+
"gridPos": {
3181+
"h": 8,
3182+
"w": 12,
3183+
"x": 0,
3184+
"y": 130
3185+
},
28913186
"id": 41,
28923187
"options": {
28933188
"legend": {
@@ -2968,7 +3263,7 @@ data:
29683263
"h": 8,
29693264
"w": 12,
29703265
"x": 12,
2971-
"y": 114
3266+
"y": 130
29723267
},
29733268
"id": 40,
29743269
"options": {
@@ -3050,7 +3345,7 @@ data:
30503345
"h": 8,
30513346
"w": 12,
30523347
"x": 0,
3053-
"y": 122
3348+
"y": 138
30543349
},
30553350
"id": 39,
30563351
"options": {
@@ -3132,7 +3427,7 @@ data:
31323427
"h": 8,
31333428
"w": 12,
31343429
"x": 12,
3135-
"y": 122
3430+
"y": 138
31363431
},
31373432
"id": 42,
31383433
"options": {
@@ -3165,7 +3460,7 @@ data:
31653460
"h": 1,
31663461
"w": 24,
31673462
"x": 0,
3168-
"y": 130
3463+
"y": 146
31693464
},
31703465
"id": 9,
31713466
"panels": [],
@@ -3228,7 +3523,7 @@ data:
32283523
"h": 8,
32293524
"w": 12,
32303525
"x": 0,
3231-
"y": 131
3526+
"y": 147
32323527
},
32333528
"id": 11,
32343529
"options": {
@@ -3310,7 +3605,7 @@ data:
33103605
"h": 8,
33113606
"w": 12,
33123607
"x": 12,
3313-
"y": 131
3608+
"y": 147
33143609
},
33153610
"id": 12,
33163611
"options": {
@@ -3512,7 +3807,7 @@ data:
35123807
},
35133808
{
35143809
"current": {
3515-
"selected": false,
3810+
"selected": true,
35163811
"text": "Prometheus",
35173812
"value": "Prometheus"
35183813
},

0 commit comments

Comments
 (0)