From 5a19f53e22cad8b8fa4224f82f67d060c4624e78 Mon Sep 17 00:00:00 2001 From: Lars Date: Thu, 4 Sep 2025 13:48:56 +0200 Subject: [PATCH] fix: :bug: add field binding for YAML unmarshal --- collector/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/types.go b/collector/types.go index 4a106fe..12f2a85 100644 --- a/collector/types.go +++ b/collector/types.go @@ -90,7 +90,7 @@ type Metric struct { // Metrics is a container structure for prometheus metrics type Metrics struct { - Metric []*Metric + Metric []*Metric `yaml:"metrics"` } type ScrapeContext struct {