fix prometheus targetstatus (#1207)
This commit is contained in:
parent
3a9c74391e
commit
29773de93e
|
@ -212,7 +212,7 @@ sub manage_selection {
|
||||||
last_error => $active->{lastError},
|
last_error => $active->{lastError},
|
||||||
|
|
||||||
};
|
};
|
||||||
foreach my $label (keys $active->{labels}) {
|
foreach my $label (keys %{$active->{labels}}) {
|
||||||
$self->{targets}->{$active->{scrapeUrl}}->{labels} .= "[" . $label . " = " . $active->{labels}->{$label} . "]";
|
$self->{targets}->{$active->{scrapeUrl}}->{labels} .= "[" . $label . " = " . $active->{labels}->{$label} . "]";
|
||||||
}
|
}
|
||||||
$self->{global}->{$active->{health}}++;
|
$self->{global}->{$active->{health}}++;
|
||||||
|
|
Loading…
Reference in New Issue