mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-08-23 22:26:27 +00:00
Add disk and memory percent_used
This commit is contained in:
@@ -85,6 +85,7 @@ var _ = ginkgo.Describe("NPD should export Prometheus metrics.", func() {
|
||||
assertMetricExist(gotMetrics, "disk_operation_bytes_count", map[string]string{}, false)
|
||||
assertMetricExist(gotMetrics, "disk_operation_time", map[string]string{}, false)
|
||||
assertMetricExist(gotMetrics, "disk_bytes_used", map[string]string{}, false)
|
||||
assertMetricExist(gotMetrics, "disk_percent_used", map[string]string{}, false)
|
||||
assertMetricExist(gotMetrics, "disk_io_time", map[string]string{}, false)
|
||||
assertMetricExist(gotMetrics, "disk_weighted_io", map[string]string{}, false)
|
||||
assertMetricExist(gotMetrics, "memory_bytes_used", map[string]string{}, false)
|
||||
@@ -92,6 +93,7 @@ var _ = ginkgo.Describe("NPD should export Prometheus metrics.", func() {
|
||||
assertMetricExist(gotMetrics, "memory_page_cache_used", map[string]string{}, false)
|
||||
assertMetricExist(gotMetrics, "memory_unevictable_used", map[string]string{}, true)
|
||||
assertMetricExist(gotMetrics, "memory_dirty_used", map[string]string{}, false)
|
||||
assertMetricExist(gotMetrics, "memory_percent_used", map[string]string{}, false)
|
||||
assertMetricExist(gotMetrics, "host_uptime", map[string]string{}, false)
|
||||
assertMetricExist(gotMetrics, "system_os_feature", map[string]string{}, false)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user