Yuriy Zhilovets 5 years ago
parent
commit
01bcb3a9b6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      telegram.pl

+ 2 - 2
telegram.pl

@@ -126,8 +126,8 @@ post "/alert" => sub
       $icon = "\x{26A0}";
     }
 
-    my $message .= "$icon ` [" . ($alert->{labels}->{server}||$alert->{labels}->{location}||"") . "] " . $alert->{labels}->{alertname} . " " .$alert->{labels}->{instance} 
-                . " " . $alert->{labels}->{job} . "`\n";
+    my $message .= "$icon ` [" . ($alert->{labels}->{server}||$alert->{labels}->{location}||"") . "] " . $alert->{labels}->{alertname} . " " .$alert->{labels}->{job} 
+                . " " . $alert->{labels}->{instance} . "`\n";
     $message .= $alert->{annotations}->{summary} . "\n" . "_" . $alert->{annotations}->{description} . "_";  
     
     my $rest = {};