Skip to content

Commit

Permalink
fix prometheus targetstatus (#1207)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgagnaire committed Oct 30, 2018
1 parent 3a9c743 commit 29773de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud/prometheus/restapi/mode/targetstatus.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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}}++;
Expand Down

0 comments on commit 29773de

Please sign in to comment.