Skip to content

Commit b57378e

Browse files
author
Stefano Torresi
authored
Merge pull request #122 from MalloZup/default-port
Change default port from 9002 to 9964
2 parents 8142776 + 960e4df commit b57378e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ You can run the exporter in any of the cluster nodes.
6262

6363
```
6464
$ ./ha_cluster_exporter
65-
INFO[0000] Serving metrics on 0.0.0.0:9002
65+
INFO[0000] Serving metrics on 0.0.0.0:9964
6666
```
6767

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

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

7272
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`.
7373
A warning message will inform the user of such cases.

ha_cluster_exporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func init() {
126126
config.AddConfigPath("/etc/")
127127
config.AddConfigPath("/usr/etc/")
128128

129-
flag.String("port", "9002", "The port number to listen on for HTTP requests")
129+
flag.String("port", "9964", "The port number to listen on for HTTP requests")
130130
flag.String("address", "0.0.0.0", "The address to listen on for HTTP requests")
131131
flag.String("log-level", "info", "The minimum logging level; levels are, in ascending order: debug, info, warn, error")
132132
flag.String("crm-mon-path", "/usr/sbin/crm_mon", "path to crm_mon executable")

ha_cluster_exporter.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# sample config
2-
port: "9002"
2+
port: "9964"
33
addres: "0.0.0.0"
44
log-level: "info"
55
crm-mon-path: "/usr/sbin/crm_mon"

0 commit comments

Comments
 (0)