From 0b951e0239997e0038f2ae44e7682f2c34595d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20=C5=9Awi=C4=85tek?= Date: Fri, 13 Oct 2023 17:26:25 +0200 Subject: [PATCH] feat(metrics): collect node_memory_MemAvailable_bytes --- .changelog/3322.added.txt | 1 + deploy/helm/sumologic/values.yaml | 3 ++- docs/scraped-metrics.md | 1 + docs/v4-migration-doc.md | 1 + tests/integration/internal/constants.go | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changelog/3322.added.txt diff --git a/.changelog/3322.added.txt b/.changelog/3322.added.txt new file mode 100644 index 0000000000..9ba37ff8b6 --- /dev/null +++ b/.changelog/3322.added.txt @@ -0,0 +1 @@ +feat(metrics): collect node_memory_MemAvailable_bytes \ No newline at end of file diff --git a/deploy/helm/sumologic/values.yaml b/deploy/helm/sumologic/values.yaml index 973b7d52df..cd615cb0d5 100644 --- a/deploy/helm/sumologic/values.yaml +++ b/deploy/helm/sumologic/values.yaml @@ -1111,6 +1111,7 @@ kube-prometheus-stack: ## node_vmstat_pgpgin ## node_vmstat_pgpgout ## node_memory_MemFree_bytes + ## node_memory_MemAvailable_bytes ## node_memory_Cached_bytes ## node_memory_Buffers_bytes ## node_memory_MemTotal_bytes @@ -1122,7 +1123,7 @@ kube-prometheus-stack: ## node_filesystem_size_bytes metricRelabelings: - action: keep - regex: (?:node_load1|node_load5|node_load15|node_cpu_seconds_total|node_disk_io_time_weighted_seconds_total|node_disk_io_time_seconds_total|node_vmstat_pgpgin|node_vmstat_pgpgout|node_memory_MemFree_bytes|node_memory_Cached_bytes|node_memory_Buffers_bytes|node_memory_MemTotal_bytes|node_network_receive_drop_total|node_network_transmit_drop_total|node_network_receive_bytes_total|node_network_transmit_bytes_total|node_filesystem_avail_bytes|node_filesystem_size_bytes) + regex: (?:node_load1|node_load5|node_load15|node_cpu_seconds_total|node_disk_io_time_weighted_seconds_total|node_disk_io_time_seconds_total|node_vmstat_pgpgin|node_vmstat_pgpgout|node_memory_MemFree_bytes|node_memory_MemAvailable_bytes|node_memory_Cached_bytes|node_memory_Buffers_bytes|node_memory_MemTotal_bytes|node_network_receive_drop_total|node_network_transmit_drop_total|node_network_receive_bytes_total|node_network_transmit_bytes_total|node_filesystem_avail_bytes|node_filesystem_size_bytes) sourceLabels: [__name__] prometheus: enabled: false diff --git a/docs/scraped-metrics.md b/docs/scraped-metrics.md index 36283f1cbe..ad1aaa565a 100644 --- a/docs/scraped-metrics.md +++ b/docs/scraped-metrics.md @@ -174,6 +174,7 @@ The following table contains information about metrics scraped by Sumo Logic's P | `node_vmstat_pgpgin` | node-exporter | yes | | `node_vmstat_pgpgout` | node-exporter | yes | | `node_memory_MemFree_bytes` | node-exporter | yes | +| `node_memory_MemAvailable_bytes` | node-exporter | yes | | `node_memory_Cached_bytes` | node-exporter | yes | | `node_memory_Buffers_bytes` | node-exporter | yes | | `node_memory_MemTotal_bytes` | node-exporter | yes | diff --git a/docs/v4-migration-doc.md b/docs/v4-migration-doc.md index 48916969c7..60f2d995c1 100644 --- a/docs/v4-migration-doc.md +++ b/docs/v4-migration-doc.md @@ -238,6 +238,7 @@ require additional action. - node_vmstat_pgpgin - node_vmstat_pgpgout - node_memory_MemFree_bytes + - node_memory_MemAvailable_bytes - node_memory_Cached_bytes - node_memory_Buffers_bytes - node_memory_MemTotal_bytes diff --git a/tests/integration/internal/constants.go b/tests/integration/internal/constants.go index 6943a05726..908c088a08 100644 --- a/tests/integration/internal/constants.go +++ b/tests/integration/internal/constants.go @@ -182,6 +182,7 @@ var ( "node_vmstat_pgpgin", "node_vmstat_pgpgout", "node_memory_MemFree_bytes", + "node_memory_MemAvailable_bytes", "node_memory_Cached_bytes", "node_memory_Buffers_bytes", "node_memory_MemTotal_bytes",