Skip to content

Commit

Permalink
Merge pull request #9 from wbollock/chore/readme_updates
Browse files Browse the repository at this point in the history
chore: switch default port to 9927
  • Loading branch information
wbollock authored Sep 5, 2022
2 parents dab04ba + c4377dc commit cc1559d
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 cc1559d

Please sign in to comment.