projects
/
influxdb-pipes
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3c89aba
)
added domain as separate tag
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 11 Dec 2016 15:16:52 +0000
(16:16 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 11 Dec 2016 15:16:52 +0000
(16:16 +0100)
ifstat.pl
patch
|
blob
|
history
diff --git
a/ifstat.pl
b/ifstat.pl
index
4fe0f4f
..
6af1577
100755
(executable)
--- a/
ifstat.pl
+++ b/
ifstat.pl
@@
-43,6
+43,8
@@
my @if;
my @direction;
my $lines;
+my $host_tags = $host;
+$host_tags =~ s/\./,domain=/;
while(<$ifstat>) {
chomp;
@@
-65,7
+67,7
@@
while(<$ifstat>) {
foreach my $i ( 0 .. $#if ) {
- my @tags = ( "host=$host", $ENV{TAGS} || 'no_tags=true' );
+ my @tags = ( "host=$host
_tags
", $ENV{TAGS} || 'no_tags=true' );
my $port = $if[$i];
if ( $port =~ m/if(\d\d)(\d\d\d\d)/ ) {