This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TLS and basic authentication in web interface
1) TLS and basic authentication are in flag `--web.config.file`: https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md#web-configuration 2) All command-line arguments are with two dashes now. Example: ./ovs-exporter --web.listen-address 10.224.141.48:9134 --database.vswitch.file.pid.path /run/openvswitch/ovsdb-server.pid --database.vswitch.socket.remote unix:/run/openvswitch/db.sock --service.vswitchd.file.pid.path /run/openvswitch/ovs-vswitchd.pid --system.run.dir /run/openvswitch --database.vswitch.file.log.path /var/log/kolla/openvswitch/ovsdb-server.log --service.vswitchd.file.log.path /var/log/kolla/openvswitch/ovs-vswitchd.log --log.level=debug --web.config.file web_config.yml Prometheus Exporter Toolkit provides TLS and basic authentication in exporters. The Toolkit requires newer command-line and log packages. So packages "flag" and "go-kit/log" were replaced. https://github.com/greenpau/ovs_exporter/issues
- Loading branch information
1 parent
2ceae24
commit bd6d720
Showing
5 changed files
with
235 additions
and
379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,37 @@ | ||
module github.com/greenpau/ovs_exporter | ||
|
||
go 1.20 | ||
go 1.22 | ||
|
||
toolchain go1.22.8 | ||
|
||
require ( | ||
github.com/go-kit/log v0.2.1 | ||
github.com/alecthomas/kingpin/v2 v2.4.0 | ||
github.com/prometheus/client_golang v1.20.4 | ||
github.com/prometheus/common v0.60.1 | ||
github.com/prometheus/exporter-toolkit v0.13.1 | ||
github.com/greenpau/ovsdb v1.0.4 | ||
github.com/prometheus/client_golang v1.16.0 | ||
github.com/prometheus/common v0.44.0 | ||
) | ||
|
||
require ( | ||
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect | ||
github.com/beorn7/perks v1.0.1 // indirect | ||
github.com/cespare/xxhash/v2 v2.2.0 // indirect | ||
github.com/go-logfmt/logfmt v0.5.1 // indirect | ||
github.com/golang/protobuf v1.5.3 // indirect | ||
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect | ||
github.com/prometheus/client_model v0.4.0 // indirect | ||
github.com/prometheus/procfs v0.10.1 // indirect | ||
golang.org/x/sys v0.8.0 // indirect | ||
google.golang.org/protobuf v1.30.0 // indirect | ||
github.com/cespare/xxhash/v2 v2.3.0 // indirect | ||
github.com/coreos/go-systemd/v22 v22.5.0 // indirect | ||
github.com/jpillora/backoff v1.0.0 // indirect | ||
github.com/klauspost/compress v1.17.9 // indirect | ||
github.com/mdlayher/socket v0.4.1 // indirect | ||
github.com/mdlayher/vsock v1.2.1 // indirect | ||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect | ||
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect | ||
github.com/prometheus/client_model v0.6.1 // indirect | ||
github.com/prometheus/procfs v0.15.1 // indirect | ||
github.com/xhit/go-str2duration/v2 v2.1.0 // indirect | ||
golang.org/x/crypto v0.28.0 // indirect | ||
golang.org/x/net v0.29.0 // indirect | ||
golang.org/x/oauth2 v0.23.0 // indirect | ||
golang.org/x/sync v0.8.0 // indirect | ||
golang.org/x/sys v0.26.0 // indirect | ||
golang.org/x/text v0.19.0 // indirect | ||
google.golang.org/protobuf v1.34.2 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
) |
Oops, something went wrong.