commit
3ab9dd0610
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "prometheus_wireguard_exporter"
|
name = "prometheus_wireguard_exporter"
|
||||||
version = "3.0.1"
|
version = "3.1.0"
|
||||||
authors = ["Francesco Cogno <francesco.cogno@outlook.com>"]
|
authors = ["Francesco Cogno <francesco.cogno@outlook.com>"]
|
||||||
description = "Prometheus WireGuard Exporter"
|
description = "Prometheus WireGuard Exporter"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
@ -92,8 +92,8 @@ impl TryFrom<&str> for WireGuard {
|
|||||||
remote_port,
|
remote_port,
|
||||||
allowed_ips,
|
allowed_ips,
|
||||||
latest_handshake: v[5].parse::<u64>()?,
|
latest_handshake: v[5].parse::<u64>()?,
|
||||||
sent_bytes: v[6].parse::<u128>().unwrap(),
|
received_bytes: v[6].parse::<u128>().unwrap(),
|
||||||
received_bytes: v[7].parse::<u128>().unwrap(),
|
sent_bytes: v[7].parse::<u128>().unwrap(),
|
||||||
persistent_keepalive: to_bool(v[8]),
|
persistent_keepalive: to_bool(v[8]),
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user