Skip to content

Commit eff42f4

Browse files
PMM-10308: Fix 'Buffer Pool Size of Total RAM' (avoid label mismatch;… (#1729)
* PMM-10308: Fix 'Buffer Pool Size of Total RAM' (avoid label mismatch; percent 0–100, decimals=0) * PMM-10308: Fix "Buffer Pool Size of Total RAM" – join MemTotal by node_name
1 parent 1dfc28d commit eff42f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dashboards/MySQL/MySQL_Instance_Summary.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@
500500
"calculatedInterval": "10m",
501501
"datasourceErrors": {},
502502
"errors": {},
503-
"expr": "avg by (node_name) ((mysql_global_variables_innodb_buffer_pool_size{service_name=~\"$service_name\"} * 100)) / \non (node_name) (max by () (container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or \nmax by () (node_memory_MemTotal_bytes{node_name=~\"$node_name\"}))",
503+
"expr": "100 * (avg by (service_name)(mysql_global_variables_innodb_buffer_pool_size{service_name=~\"$service_name\"})) / on(service_name) min by (service_name) (node_memory_MemTotal_bytes * on(node_name) group_left(service_name) min by (node_name,service_name) (mysql_up{service_name=~\"$service_name\"}))",
504504
"format": "time_series",
505505
"interval": "5m",
506506
"intervalFactor": 1,

0 commit comments

Comments
 (0)