Skip to content

Commit

Permalink
Change default port.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krivak committed Sep 3, 2023
1 parent 4406790 commit 6896ce6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ RUN apk add --no-cache ca-certificates && \
chown -R connectbox-exporter:connectbox-exporter .

USER connectbox-exporter
EXPOSE 9119

ENTRYPOINT ["/app/connectbox-exporter"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ make build run

Get exporter internal metrics
```sh
curl 'http://localhost:8080/metrics'
curl 'http://localhost:9119/metrics'
```

Get ConnectBox metrics
```sh
curl 'http://localhost:8080/probe?target=192.168.178.1'
curl 'http://localhost:9119/probe?target=192.168.178.1'
```
2 changes: 1 addition & 1 deletion config.example.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
listen_addr: "0.0.0.0:8080"
listen_addr: "0.0.0.0:9119"
targets:
- addr: "192.168.178.1"
username: "NULL" # actual default value used by ConnectBox
Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func ReadConfig(file string) (Config, error) {

// Set defaults
if conf.ListenAddr == "" {
conf.ListenAddr = "0.0.0.0:8080"
conf.ListenAddr = "0.0.0.0:9119"
}
for i := range conf.Targets {
if conf.Targets[i].Addr == "" {
Expand Down

0 comments on commit 6896ce6

Please sign in to comment.