fix prometheus targetstatus (#1207)

This commit is contained in:
Colin Gagnaire 2018-10-30 16:57:34 +01:00 committed by GitHub
parent 3a9c74391e
commit 29773de93e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ sub manage_selection {
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->{global}->{$active->{health}}++;