Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added panel regarding ammount of HPA #3934

Merged
merged 1 commit into from
Dec 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
246 changes: 216 additions & 30 deletions config/grafana/keda-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 82,
"id": 9794,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -54,8 +54,6 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -173,7 +171,7 @@
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "sum by(job) (rate(keda_metrics_adapter_scaler_errors_total{}[5m]))",
"expr": "sum by(job) (rate(keda_scaler_errors_total{}[5m]))",
"legendFormat": "{{ job }}",
"range": true,
"refId": "A"
Expand All @@ -194,8 +192,6 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -313,7 +309,7 @@
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "sum by(scaler) (rate(keda_metrics_adapter_scaler_errors{namespace=~\"$namespace\", scaledObject=~\"$scaledObject\", scaler=~\"$scaler\"}[5m]))",
"expr": "sum by(scaler) (rate(keda_scaler_errors{namespace=~\"$namespace\", scaledObject=~\"$scaledObject\", scaler=~\"$scaler\"}[5m]))",
"legendFormat": "{{ scaler }}",
"range": true,
"refId": "A"
Expand All @@ -334,8 +330,6 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -423,7 +417,7 @@
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "sum by(scaledObject) (rate(keda_metrics_adapter_scaled_object_errors{namespace=~\"$namespace\", scaledObject=~\"$scaledObject\"}[5m]))",
"expr": "sum by(scaledObject) (rate(keda_scaled_object_errors{namespace=~\"$namespace\", scaledObject=~\"$scaledObject\"}[5m]))",
"legendFormat": "{{ scaledObject }}",
"range": true,
"refId": "A"
Expand All @@ -444,8 +438,6 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -533,7 +525,7 @@
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "sum by(metric) (rate(keda_metrics_adapter_scaler_metrics_value{namespace=~\"$namespace\", metric=~\"$metric\"}[5m]))",
"expr": "sum by(metric) (rate(keda_scaler_metrics_value{namespace=~\"$namespace\", metric=~\"$metric\"}[5m]))",
"legendFormat": "{{ metric }}",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -600,8 +592,8 @@
"overrides": []
},
"gridPos": {
"h": 9,
"w": 24,
"h": 10,
"w": 23,
"x": 0,
"y": 20
},
Expand Down Expand Up @@ -648,12 +640,202 @@
],
"title": "Changes in Replicas",
"type": "state-timeline"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"description": "shows current replicas against max ones",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 30
},
"id": 15,
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "/^current_replicas$/",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "9.0.5",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
"expr": "kube_horizontalpodautoscaler_status_current_replicas{namespace=\"$namespace\",horizontalpodautoscaler=\"keda-hpa-$scaledObject\"}",
"instant": true,
"legendFormat": "current_replicas",
"range": false,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
"expr": "kube_horizontalpodautoscaler_spec_max_replicas{namespace=\"$namespace\",horizontalpodautoscaler=\"keda-hpa-$scaledObject\"}",
"hide": false,
"instant": true,
"legendFormat": "max_replicas",
"range": false,
"refId": "B"
}
],
"title": "HPA current/max replicas",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"description": "shows current replicas against max ones based on time difference",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "bars",
"fillOpacity": 100,
"gradientMode": "hue",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 11,
"x": 12,
"y": 30
},
"id": 13,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
"expr": "kube_horizontalpodautoscaler_status_current_replicas{namespace=\"$namespace\",horizontalpodautoscaler=\"keda-hpa-$scaledObject\"}",
"format": "time_series",
"instant": true,
"interval": "",
"legendFormat": "current_replicas",
"range": false,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
"expr": "kube_horizontalpodautoscaler_spec_max_replicas{namespace=\"$namespace\",horizontalpodautoscaler=\"keda-hpa-$scaledObject\"}",
"format": "time_series",
"hide": false,
"instant": true,
"legendFormat": "max_replicas",
"range": false,
"refId": "B"
}
],
"title": "HPA current/max replicas (time based)",
"type": "timeseries"
}
],
"refresh": "1m",
"schemaVersion": 37,
"schemaVersion": 36,
"style": "dark",
"tags": ["keda"],
"tags": [
"keda"
],
"templating": {
"list": [
{
Expand All @@ -677,21 +859,21 @@
{
"current": {
"selected": false,
"text": "dario",
"value": "dario"
"text": "keda",
"value": "keda"
},
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"definition": "label_values(keda_metrics_adapter_scaled_object_errors, namespace)",
"definition": "label_values(keda_scaled_object_errors, namespace)",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "namespace",
"options": [],
"query": {
"query": "label_values(keda_metrics_adapter_scaled_object_errors, namespace)",
"query": "label_values(keda_scaled_object_errors, namespace)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
Expand All @@ -703,21 +885,25 @@
{
"current": {
"selected": true,
"text": ["http-demo"],
"value": ["http-demo"]
"text": [
"keda-demo"
],
"value": [
"keda-demo"
]
},
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"definition": "label_values(keda_metrics_adapter_scaled_object_errors{namespace=\"$namespace\"}, scaledObject)",
"definition": "label_values(keda_scaled_object_errors{namespace=\"$namespace\"}, scaledObject)",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "scaledObject",
"options": [],
"query": {
"query": "label_values(keda_metrics_adapter_scaled_object_errors{namespace=\"$namespace\"}, scaledObject)",
"query": "label_values(keda_scaled_object_errors{namespace=\"$namespace\"}, scaledObject)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
Expand All @@ -736,14 +922,14 @@
"type": "prometheus",
"uid": "${datasource}"
},
"definition": "label_values(keda_metrics_adapter_scaler_errors{namespace=\"$namespace\"}, scaler)",
"definition": "label_values(keda_scaler_errors{namespace=\"$namespace\"}, scaler)",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "scaler",
"options": [],
"query": {
"query": "label_values(keda_metrics_adapter_scaler_errors{namespace=\"$namespace\"}, scaler)",
"query": "label_values(keda_scaler_errors{namespace=\"$namespace\"}, scaler)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
Expand All @@ -762,14 +948,14 @@
"type": "prometheus",
"uid": "${datasource}"
},
"definition": "label_values(keda_metrics_adapter_scaler_errors{namespace=\"$namespace\"}, metric)",
"definition": "label_values(keda_scaler_errors{namespace=\"$namespace\"}, metric)",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "metric",
"options": [],
"query": {
"query": "label_values(keda_metrics_adapter_scaler_errors{namespace=\"$namespace\"}, metric)",
"query": "label_values(keda_scaler_errors{namespace=\"$namespace\"}, metric)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
Expand All @@ -788,6 +974,6 @@
"timezone": "",
"title": "Keda",
"uid": "asdasd8rvmMxdVk",
"version": 2,
"version": 4,
"weekStart": ""
}