From f46ce9b5be48279c2c6dc2f71e3d873f73ede11f Mon Sep 17 00:00:00 2001 From: ScarletRedMan Date: Sat, 30 Nov 2024 01:46:10 +0700 Subject: [PATCH] feat: updated Grafana dashboard --- prometheus/grafana_dashboards/jvm.json | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/prometheus/grafana_dashboards/jvm.json b/prometheus/grafana_dashboards/jvm.json index f987e90..b1d681e 100644 --- a/prometheus/grafana_dashboards/jvm.json +++ b/prometheus/grafana_dashboards/jvm.json @@ -482,10 +482,12 @@ "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, + "editorMode": "code", "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\"})*100/sum(jvm_memory_max_bytes{application=\"$application\",instance=\"$instance\", area=\"heap\"})", "format": "time_series", "intervalFactor": 2, "legendFormat": "", + "range": true, "refId": "A", "step": 14400 } @@ -1018,8 +1020,8 @@ "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", + "fillOpacity": 20, + "gradientMode": "hue", "hideFrom": { "legend": false, "tooltip": false, @@ -1027,7 +1029,7 @@ }, "insertNulls": false, "lineInterpolation": "linear", - "lineWidth": 1, + "lineWidth": 3, "pointSize": 5, "scaleDistribution": { "type": "linear" @@ -1092,7 +1094,7 @@ "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "process_cpu_seconds_total{application=\"$application\", instance=\"$instance\"}", + "expr": "sum(increase(process_cpu_seconds_total{application=\"$application\", instance=\"$instance\"}[$__range]))", "format": "time_series", "intervalFactor": 2, "legendFormat": "cpu", @@ -2192,6 +2194,6 @@ "timezone": "browser", "title": "JVM", "uid": "ae5ew9zzh8cu8e", - "version": 20, + "version": 21, "weekStart": "" } \ No newline at end of file