Skip to content

Commit 320186b

Browse files
author
Stefano Torresi
authored
Merge pull request #124 from MalloZup/port-new
change port to 9664 (filling the gap)
2 parents b57378e + e199bac commit 320186b

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:9964
65+
INFO[0000] Serving metrics on 0.0.0.0:9664
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 `9964` by default.
70+
It will export the metrics under the `/metrics` path, on port `9664` 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", "9964", "The port number to listen on for HTTP requests")
129+
flag.String("port", "9664", "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: "9964"
2+
port: "9664"
33
addres: "0.0.0.0"
44
log-level: "info"
55
crm-mon-path: "/usr/sbin/crm_mon"

0 commit comments

Comments
 (0)