From 1d92df41d67f5b7a0e0937674059c4485b42d460 Mon Sep 17 00:00:00 2001 From: Francesco Cogno Date: Mon, 20 May 2019 11:23:28 +0200 Subject: [PATCH] Changed default port to 9586 --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 4 ++-- src/main.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b326960..1d0c2c2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -466,7 +466,7 @@ dependencies = [ [[package]] name = "prometheus_wireguard_exporter" -version = "1.2.0" +version = "1.2.1" dependencies = [ "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index e1f0132..edabf5a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prometheus_wireguard_exporter" -version = "1.2.0" +version = "1.2.1" authors = ["Francesco Cogno "] description = "Prometheus WireGuard Exporter" edition = "2018" diff --git a/README.md b/README.md index 92bc59b..3469ccc 100644 --- a/README.md +++ b/README.md @@ -42,10 +42,10 @@ Start the binary with `-h` to get the complete syntax. The parameters are: | Parameter | Mandatory | Valid values | Default | Description | | -- | -- | -- | -- | -- | | `-v` | no | | | Enable verbose mode. -| `-p` | no | any valid port number | 9576 | Specify the service port. This is the port your Prometheus instance should point to. +| `-p` | no | any valid port number | 9586 | Specify the service port. This is the port your Prometheus instance should point to. | `-n` | no | path to the wireguard configuration file | | This flag adds the *friendly_name* attribute to the exported entries. See [Friendly names](#friendly-names) for more details. -Once started, the tool will listen on the specified port (or the default one, 9576, if not specified) and return a Prometheus valid response at the url `/metrics`. So to check if the tool is working properly simply browse the `http://localhost:9576/metrics` (or whichever port you choose). +Once started, the tool will listen on the specified port (or the default one, 9586, if not specified) and return a Prometheus valid response at the url `/metrics`. So to check if the tool is working properly simply browse the `http://localhost:9586/metrics` (or whichever port you choose). ## Friendly Names diff --git a/src/main.rs b/src/main.rs index 522a5c6..6031f70 100644 --- a/src/main.rs +++ b/src/main.rs @@ -121,7 +121,7 @@ fn main() { Arg::with_name("port") .short("p") .help("exporter port") - .default_value("9576") + .default_value("9586") .takes_value(true), ) .arg(