Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
superstes committed Sep 29, 2023
1 parent 73073de commit d16e106
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion config_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ service:
udp: false # not yet implemented
tproxy: false

debug: true
debug: false
timeout:
connect: 2000
process: 1000
Expand All @@ -25,6 +25,10 @@ service:
multi_ip: 'roundrobin' # or failover; not yet implemented
retries: 1 # connection-retries; not yet implemented

metrics:
enabled: false
port: 9512

vars:
- name: 'net_private'
value: ['192.168.0.0/16', '172.16.0.0/12', '10.0.0.0/8']
Expand Down
2 changes: 1 addition & 1 deletion lib/main/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func catchAll(w http.ResponseWriter, r *http.Request) {

func startPrometheusExporter() {
if cnf.Metrics() {
log.Debug("service", "Starting prometheus metrics-exporter")
log.Info("service", "Starting prometheus metrics-exporter")
prometheus.Register(metrics.BytesRcv)
prometheus.Register(metrics.BytesSent)
prometheus.Register(metrics.CurrentConn)
Expand Down

0 comments on commit d16e106

Please sign in to comment.