Advertisement
Guest User

Untitled

a guest
Sep 28th, 2018
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.23 KB | None | 0 0
  1. #!/usr/bin/env perl
  2.  
  3. use Net::Prometheus;
  4.  
  5. my $client = Net::Prometheus->new;
  6.  
  7. $client->new_gauge(name => "Test3", help => "Test3 help", labels => [qw/color/])->set_function('red', sub { return 123 });
  8.  
  9. print $client->render;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement