This commit is contained in:
parent
ae6ca5c185
commit
48a7c17448
1 changed files with 3 additions and 3 deletions
|
@ -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{},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue