2 Commits 4331afda70 ... 8ab4d9bc8f

Author SHA1 Message Date
  Tom McKenzie 8ab4d9bc8f initial commit 2 years ago
  Tom McKenzie 4331afda70 initial commit 2 years ago
2 changed files with 5 additions and 1 deletions
  1. 4 0
      README.md
  2. 1 1
      metrics.pl

+ 4 - 0
README.md

@@ -1,3 +1,7 @@
 # vnstat-metrics
 
 perl script based on `vnstat-metrics.cgi` which listens on `5599` and returns metrics for prometheus from vnstat
+
+## requirements
+
+`cpan install HTTP::Daemon`

+ 1 - 1
metrics.pl

@@ -16,7 +16,7 @@ my @data_resolutions = ('fiveminute', 'hour', 'day', 'month', 'year');
 
 # Create an HTTP::Daemon instance listening on port 9955
 my $d = HTTP::Daemon->new(
-    LocalAddr => 'localhost',
+    # LocalAddr => 'localhost',
     LocalPort => 9955,
 ) || die "Cannot create HTTP::Daemon instance: $!";