Skip to content

Commit

Permalink
Merge pull request #122 from MalloZup/default-port
Browse files Browse the repository at this point in the history
Change default port from 9002 to 9964
  • Loading branch information
stefanotorresi authored Feb 4, 2020
2 parents 8142776 + 960e4df commit b57378e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ You can run the exporter in any of the cluster nodes.

```
$ ./ha_cluster_exporter
INFO[0000] Serving metrics on 0.0.0.0:9002
INFO[0000] Serving metrics on 0.0.0.0:9964
```

Though not strictly required, it is _strongly_ advised to run it in all the nodes.

It will export the metrics under the `/metrics` path, on port `9002` by default.
It will export the metrics under the `/metrics` path, on port `9964` by default.

While the exporter can run outside a HA cluster node, it won't export any metric it can't collect; e.g. it won't export DRBD metrics if it can't be locally inspected with `drbdsetup`.
A warning message will inform the user of such cases.
Expand Down
2 changes: 1 addition & 1 deletion ha_cluster_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func init() {
config.AddConfigPath("/etc/")
config.AddConfigPath("/usr/etc/")

flag.String("port", "9002", "The port number to listen on for HTTP requests")
flag.String("port", "9964", "The port number to listen on for HTTP requests")
flag.String("address", "0.0.0.0", "The address to listen on for HTTP requests")
flag.String("log-level", "info", "The minimum logging level; levels are, in ascending order: debug, info, warn, error")
flag.String("crm-mon-path", "/usr/sbin/crm_mon", "path to crm_mon executable")
Expand Down
2 changes: 1 addition & 1 deletion ha_cluster_exporter.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# sample config
port: "9002"
port: "9964"
addres: "0.0.0.0"
log-level: "info"
crm-mon-path: "/usr/sbin/crm_mon"
Expand Down

0 comments on commit b57378e

Please sign in to comment.