Skip to content

Commit

Permalink
Update exporter to listen on port 9177; update the README
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoWK authored and frittentheke committed Sep 13, 2023
1 parent 3f7f24b commit f1bf6ec
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
[![Lint Go Code](https://github.com/inovex/prometheus-libvirt-exporter/actions/workflows/lint.yml/badge.svg)](https://github.com/inovex/prometheus-libvirt-exporter/actions/workflows/lint.yml)

A prometheus-[libvirt](https://libvirt.org/)-exporter for host and vm metrics exposed for prometheus, written in Go with pluggable metric collectors.
By default, this exporter listens on TCP port 9000, Path '/metrics', to expose metrics.
By default, this exporter listens on TCP port 9177, path '/metrics', to expose metrics.

This exporter is built upon the [go-libvirt](https://github.com/digitalocean/go-libvirt) package developed by DigitalOcean. It offers a pure Go interface for interacting with Libvirt, leveraging the RPC interface provided by Libvirt. For detailed information about the Go bindings used, you can refer to the [Libvirt API reference](https://libvirt.org/html/index.html).



# Building and running

Expand Down
2 changes: 1 addition & 1 deletion debian/prometheus-libvirt-exporter.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Requires=network-online.target
After=network-online.target

[Service]
ExecStart=/usr/bin/prometheus-libvirt-exporter --web.listen-address ":9180"
ExecStart=/usr/bin/prometheus-libvirt-exporter --web.listen-address ":9177"
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
KillSignal=SIGINT
Expand Down
2 changes: 1 addition & 1 deletion debian/prometheus-libvirt-exporter.upstart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ respawn

script
echo $$ > /var/run/prometheus-libvirt-exporter.pid
exec prometheus-libvirt-exporter --web.listen-address ":9180"
exec prometheus-libvirt-exporter --web.listen-address ":9177"
end script

post-stop script
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func main() {
metricsPath := kingpin.Flag(
"web.telemetry-path", "Path under which to expose metrics",
).Default("/metrics").String()
toolkitFlags := webflag.AddFlags(kingpin.CommandLine, ":9000")
toolkitFlags := webflag.AddFlags(kingpin.CommandLine, ":9177")

promlogConfig := &promlog.Config{}
flag.AddFlags(kingpin.CommandLine, promlogConfig)
Expand Down

0 comments on commit f1bf6ec

Please sign in to comment.