Skip to content

Commit

Permalink
chore: switch default port to 9927
Browse files Browse the repository at this point in the history
  • Loading branch information
wbollock committed Sep 5, 2022
1 parent 4f004af commit c4377dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Create a simple `config.toml` in `/etc/prometheus-nagios-exporter` with your Nag
APIKey = ""
```

By default this will point to `http://localhost`, but a remote address can be specified with `--nagios.scrape-uri`. The default port is `9111`, but can be changed with `--web.listen-address`.
By default this will point to `http://localhost`, but a remote address can be specified with `--nagios.scrape-uri`. The default port is `9927`, but can be changed with `--web.listen-address`.

SSL support is included for scraping remote Nagios endpoints, and SSL verification can be enabled/disabled with `--nagios.ssl-verify`. A scrape timeout value is also available with `--nagios.timeout`.

Expand Down
2 changes: 1 addition & 1 deletion nagios_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ func (e *Exporter) QueryAPIsAndUpdateMetrics(ch chan<- prometheus.Metric, sslVer
func main() {

var (
listenAddress = flag.String("web.listen-address", ":9111",
listenAddress = flag.String("web.listen-address", ":9927",
"Address to listen on for telemetry")
metricsPath = flag.String("web.telemetry-path", "/metrics",
"Path under which to expose metrics")
Expand Down

0 comments on commit c4377dc

Please sign in to comment.