From 390a96790c2de29d6fd340969fc0aa6de204bf79 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Wed, 29 Apr 2026 09:59:19 +0700 Subject: [PATCH] fix: ship cadvisor working_set/rss metrics so memory panels reflect real usage container_memory_usage_bytes counts page cache attributed to the cgroup, which makes disk-heavy containers (e.g. gitea) appear to use ~all host RAM. Add container_memory_working_set_bytes (the metric Grafana's Docker integration dashboard expects), plus container_memory_rss, container_memory_cache, and container_spec_memory_limit_bytes for breakdown and limit-percentage panels. --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 76f2c07..1beaae1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -215,7 +215,7 @@ configs: rule { source_labels = ["__name__"] - regex = "container_cpu_usage_seconds_total|container_fs_reads_total|container_fs_usage_bytes|container_fs_writes_total|container_last_seen|container_memory_usage_bytes|container_network_receive_bytes_total|container_network_receive_errors_total|container_network_receive_packets_dropped_total|container_network_transmit_bytes_total|container_network_transmit_errors_total|container_network_transmit_packets_dropped_total|container_spec_memory_reservation_limit_bytes|machine_memory_bytes|machine_scrape_error|up" + regex = "container_cpu_usage_seconds_total|container_fs_reads_total|container_fs_usage_bytes|container_fs_writes_total|container_last_seen|container_memory_cache|container_memory_rss|container_memory_usage_bytes|container_memory_working_set_bytes|container_network_receive_bytes_total|container_network_receive_errors_total|container_network_receive_packets_dropped_total|container_network_transmit_bytes_total|container_network_transmit_errors_total|container_network_transmit_packets_dropped_total|container_spec_memory_limit_bytes|container_spec_memory_reservation_limit_bytes|machine_memory_bytes|machine_scrape_error|up" action = "keep" } }