Skip to content

Commit

Permalink
Improve Java Eden Space metrics (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
walkline authored Nov 17, 2023
1 parent bc60c68 commit 08fd707
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions modules/monitoring/dashboards/mendix_native.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@
"targets": [
{
"exemplar": true,
"expr": "jvm_memory_used_bytes{namespace=~\"$namespace\",privatecloud_mendix_com_app=\"$environment_id\",pod=~\"$pod_name\",id!=\"Eden Space\"}",
"expr": "jvm_memory_used_bytes{namespace=~\"$namespace\",privatecloud_mendix_com_app=\"$environment_id\",pod=~\"$pod_name\",id!~\"G1 Eden Space|Eden Space\"}",
"format": "time_series",
"hide": false,
"instant": false,
Expand All @@ -839,17 +839,6 @@
"queryType": "randomWalk",
"refId": "JVM memory pool (except eden space)"
},
{
"exemplar": true,
"expr": "jvm_memory_used_bytes{namespace=~\"$namespace\",privatecloud_mendix_com_app=\"$environment_id\",pod=~\"$pod_name\",id=\"Eden Space\"}",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{id}}",
"queryType": "randomWalk",
"refId": "JVM memory pool (eden space)"
},
{
"exemplar": true,
"expr": "sum(jvm_memory_committed_bytes{namespace=~\"$namespace\",privatecloud_mendix_com_app=\"$environment_id\",pod=~\"$pod_name\",area=\"heap\"})-sum(jvm_memory_used_bytes{namespace=~\"$namespace\",privatecloud_mendix_com_app=\"$environment_id\",pod=~\"$pod_name\",area=\"heap\"})",
Expand Down Expand Up @@ -881,6 +870,17 @@
"legendFormat": "max memory",
"refId": "Memory limit"
},
{
"exemplar": true,
"expr": "jvm_memory_used_bytes{namespace=~\"$namespace\",privatecloud_mendix_com_app=\"$environment_id\",pod=~\"$pod_name\",id=~\"G1 Eden Space|Eden Space\"}",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "Eden Space",
"queryType": "randomWalk",
"refId": "JVM memory pool (eden space)"
},
{
"exemplar": true,
"expr": "max without (id, name) (container_memory_usage_bytes{namespace=~\"$namespace\",pod=~\"$pod_name\",container=\"mendix\"}) ",
Expand Down Expand Up @@ -1414,7 +1414,7 @@
"targets": [
{
"exemplar": true,
"expr": "jvm_memory_used_bytes{namespace=~\"$namespace\",privatecloud_mendix_com_app=\"$environment_id\",pod=~\"$pod_name\",area=\"heap\",id!=\"Eden Space\"}",
"expr": "jvm_memory_used_bytes{namespace=~\"$namespace\",privatecloud_mendix_com_app=\"$environment_id\",pod=~\"$pod_name\",area=\"heap\",id!~\"G1 Eden Space|Eden Space\"}",
"format": "time_series",
"hide": false,
"instant": false,
Expand All @@ -1425,10 +1425,10 @@
},
{
"exemplar": true,
"expr": "jvm_memory_used_bytes{namespace=~\"$namespace\",privatecloud_mendix_com_app=\"$environment_id\",pod=~\"$pod_name\",area=\"heap\",id=\"Eden Space\"}",
"expr": "jvm_memory_used_bytes{namespace=~\"$namespace\",privatecloud_mendix_com_app=\"$environment_id\",pod=~\"$pod_name\",area=\"heap\",id=~\"G1 Eden Space|Eden Space\"}",
"hide": false,
"interval": "",
"legendFormat": "{{id}}",
"legendFormat": "Eden Space",
"refId": "Eden space"
},
{
Expand Down

0 comments on commit 08fd707

Please sign in to comment.