Commit graph

32 commits

Author SHA1 Message Date
Francesco Cogno
2d82a9c06c
Issue/105 (#106)
* fixed tests

* updated lock
2022-11-21 10:28:17 +01:00
Francesco Cogno
56290d6801
Fix semver error from prometheus_exporter_base (#104)
* Fixed semver error

* updated README
2022-11-21 09:46:12 +01:00
Francesco Cogno
9f0eb7f050
Issue/100 (#101)
* Updating clap

* completed clap ugprade

* Upgraded other deps

* removed unused use

* fixed tests

* exported delay

* fixed multiple params

* added actual calculation
2022-11-20 16:13:06 +01:00
Francesco Cogno
eb7455fa85
Clarify option behavior (#93)
* version bump, README fix

* Fixed "important" sign
2022-03-29 10:23:40 +02:00
Francesco Cogno
61de41169b
Dependency refresh (#90) 2022-03-11 17:48:35 +01:00
Francesco Cogno
5b709b19f1
Ability to use env vars (#83)
* clippy

* exported variables

* docs

* updated deps

* typo

* version in docs

* better docs
2021-11-03 11:14:14 +01:00
Quentin McGaw
8f44776745
Linting with Clippy (#69)
* Dockerfile: add test stage with cargo test entrypoint

* Workflows: merge all in docker.yml
- Run cargo test in docker.yml workflow
- Manage PRs, releases, branches and latest altogether with variables

* Workflows: update dockerhub description

* Add clippy linting
2021-07-16 15:11:51 +02:00
Francesco Cogno
9d37840b83
Implemented support for multiple peer files (#64) 2021-07-08 11:06:41 +02:00
Francesco Cogno
a07a3d0170
Support for friendly_json comment (#55)
* upgrading deps

* tst

* fixed tests

* Json exposed as strings

* fixed double quote

* bumped version

* corrected semantic version bump

* updated README
2021-03-25 14:17:41 +01:00
Francesco Cogno
33c5372b41
locked Cargo.lock 2021-01-10 11:11:21 +01:00
Francesco Cogno
fa739c423c
Added optional sudo 2020-10-11 16:40:10 +02:00
Francesco Cogno
ec967e7f9d Parse case insensitive 2020-05-10 15:40:45 +02:00
Francesco Cogno
52740036bf
Multiple interfaces from command line support (#31) 2020-05-09 16:48:52 +02:00
Francesco Cogno
2013f8b5af
Split interface name from peer configuration file (#26)
Split interface name from peer configuration file
2020-04-07 10:20:19 +02:00
Francesco Cogno
f2a11f0c3c updated deps 2020-03-24 11:58:33 +01:00
Francesco Cogno
ff5806571b support for ipv6 addr in command line 2020-03-24 09:36:13 +01:00
Francesco Cogno
923b70c4b7 migrated to std::future 2019-12-01 19:42:47 +01:00
Francesco Cogno
4612afe684 release v3.2.1 2019-11-08 09:34:17 +01:00
Maximilian Bosch
9a54a8f424
Strip link-local zone ids from IPv6 socket addrs
This is a fairly ugly hack to temporarily work around the issue #10.
Until now Rust doesn't support so-called zone-ids[1] in link-local IPv6
socket-addresses and has a pending RFC on this topic. As I'm
encountering this issue on one of my machines I decided to work around
this issue (for now) by removing the zone-id from the IPv6 address.

This won't harm any other cases as `regex.replace_all` simply returns
the input if the regex doesn't match:

```
>> extern crate regex;
>> let re = regex::Regex::new(r"^\[(?P<ip>[A-Fa-f0-9:]+)%(.*)\]:(?P<port>[0-9]+)$");
>> let rs = re.replace_all("fairly unrelated stuff", "[$ip]:$port");
>> rs
"fairly unrelated stuff"
```

Please note that (1) this regex isn't RFC-compliant[2] and is just a
heuristic to remove zone-ids that currently break this exporter and
(2) this is something that probably shouldn't be merged as-is. I mainly
pushed this since I needed a workaround for this issue (and others
probably too), but it may be better to wait for proper support from the
language.

[1] https://tools.ietf.org/html/rfc4007#section-11
2019-11-02 19:48:16 +01:00
Francesco Cogno
09aa62ad40 fixed lock 2019-10-13 19:44:53 +02:00
Francesco Cogno
42ae2f5927 fixed lock 2019-09-27 11:03:38 +02:00
Francesco Cogno
eb03a6f1f2
updated version 2019-09-25 20:34:57 +02:00
Francesco Cogno
5e0f111bd9 Export remote information behind optional flag 2019-07-31 15:24:52 +02:00
Francesco Cogno
1b40335280
Label split option 2019-07-11 15:31:25 +02:00
Francesco Cogno
c987073210
Replaced local_ip + local_port with allowed_ips 2019-07-09 17:55:03 +02:00
Francesco Cogno
ee164d2f73 Exported boilerplate to external crate 2019-06-09 20:09:06 +02:00
Francesco Cogno
70c2eff919
Added Travis integration and fixed failing tests 2019-06-03 11:23:02 +02:00
Francesco Cogno
3680ceb0ec
modified output 2019-05-31 13:20:01 +02:00
Francesco Cogno
1d92df41d6
Changed default port to 9586 2019-05-20 11:23:28 +02:00
Francesco Cogno
13eddbec91
Fixed dependencies 2019-05-20 11:06:26 +02:00
Francesco Cogno
792a821de0
Added sanity checks 2019-05-17 10:17:06 +02:00
Francesco Cogno
143a450778
Initial commit 2019-04-23 23:06:35 +02:00