Fix labels
All checks were successful
Tests / test (push) Successful in 12s

This commit is contained in:
Adam Štrauch 2024-12-22 13:43:31 +01:00
parent ae6ca5c185
commit 48a7c17448
Signed by: cx
GPG key ID: 7262DAFE292BCE20

View file

@ -6,7 +6,7 @@ import (
) )
type prometheusDiscovery struct { type prometheusDiscovery struct {
Labels Labels `json:"Labels"` Labels map[string]string `json:"Labels"`
Targets []string `json:"Targets"` Targets []string `json:"Targets"`
} }
@ -15,7 +15,7 @@ func GetPrometheusSD(p *NodesProcessor, ss string) []prometheusDiscovery {
pds := []prometheusDiscovery{ pds := []prometheusDiscovery{
{ {
Labels: Labels{}, Labels: make(map[string]string),
Targets: []string{}, Targets: []string{},
}, },
} }