Skip to content

Commit 4af99e5

Browse files
authored
fix: 🐛 add field binding for YAML unmarshal (#332)
1 parent 8327fde commit 4af99e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ type Metric struct {
9090

9191
// Metrics is a container structure for prometheus metrics
9292
type Metrics struct {
93-
Metric []*Metric
93+
Metric []*Metric `yaml:"metrics"`
9494
}
9595

9696
type ScrapeContext struct {

0 commit comments

Comments
 (0)