From 2da14f9da4e46039859ce17481ad6f9b8e91aade Mon Sep 17 00:00:00 2001 From: Ilya Mashchenko Date: Thu, 11 Apr 2024 10:30:30 +0300 Subject: go.d zfspool minor schema and meta fixes (#17372) --- src/go/collectors/go.d.plugin/modules/intelgpu/intelgpu_test.go | 6 ++++++ src/go/collectors/go.d.plugin/modules/zfspool/config_schema.json | 4 ++-- src/go/collectors/go.d.plugin/modules/zfspool/metadata.yaml | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/go/collectors/go.d.plugin/modules/intelgpu/intelgpu_test.go b/src/go/collectors/go.d.plugin/modules/intelgpu/intelgpu_test.go index 99ca604da0..8d897e2055 100644 --- a/src/go/collectors/go.d.plugin/modules/intelgpu/intelgpu_test.go +++ b/src/go/collectors/go.d.plugin/modules/intelgpu/intelgpu_test.go @@ -7,6 +7,8 @@ import ( "os" "testing" + "github.com/netdata/netdata/go/go.d.plugin/agent/module" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -28,6 +30,10 @@ func Test_testDataIsValid(t *testing.T) { } } +func TestIntelGPU_ConfigurationSerialize(t *testing.T) { + module.TestConfigurationSerialize(t, &IntelGPU{}, dataConfigJSON, dataConfigYAML) +} + func TestIntelGPU_Init(t *testing.T) { tests := map[string]struct { prepare func(igt *IntelGPU) diff --git a/src/go/collectors/go.d.plugin/modules/zfspool/config_schema.json b/src/go/collectors/go.d.plugin/modules/zfspool/config_schema.json index dc11055f00..fcfcff1d4c 100644 --- a/src/go/collectors/go.d.plugin/modules/zfspool/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/zfspool/config_schema.json @@ -15,14 +15,14 @@ "title": "Binary path", "description": "Path to the `zpool` binary.", "type": "string", - "default": "nvme" + "default": "/usr/bin/zpool" }, "timeout": { "title": "Timeout", "description": "Timeout for executing the binary, specified in seconds.", "type": "number", "minimum": 0.5, - "default": 10 + "default": 2 } }, "required": [ diff --git a/src/go/collectors/go.d.plugin/modules/zfspool/metadata.yaml b/src/go/collectors/go.d.plugin/modules/zfspool/metadata.yaml index e82611be4f..847ee483e4 100644 --- a/src/go/collectors/go.d.plugin/modules/zfspool/metadata.yaml +++ b/src/go/collectors/go.d.plugin/modules/zfspool/metadata.yaml @@ -82,7 +82,7 @@ modules: alerts: - name: zfs_pool_space_utilization metric: zfspool.pool_space_utilization - info: "ZFS pool **${label:pool}** is nearing capacity. Current space usage is above the threshold." + info: "ZFS pool ${label:pool} is nearing capacity. Current space usage is above the threshold." link: https://github.com/netdata/netdata/blob/master/src/health/health.d/zfs.conf - name: zfs_pool_health_state_warn metric: zfspool.pool_health_state -- cgit v1.2.3