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