lightninglabs / lndmon

🔎lndmon: A drop-in monitoring solution for your lnd node using Prometheus+Grafana
MIT License
149 stars 47 forks source link

help command starts the prometheus exporter #37

Closed xsb closed 4 years ago

xsb commented 4 years ago

I realized that the --help flag does not avoid the daemon from starting.

./lndmon --help
Usage:
  lndmon [OPTIONS]

prometheus:
      --prometheus.listenaddr=                       the interface we should listen on for prometheus (default: localhost:9092)
      --prometheus.logdir=                           Directory to log output (default: /Users/xavi/Library/Application Support/Lndmon/logs)
      --prometheus.maxlogfiles=                      Maximum log files to keep (0 for no rotation) (default: 3)
      --prometheus.maxlogfilesize=                   Maximum log file size in MB (default: 10)

lnd:
      --lnd.host=                                    lnd instance rpc address (default: localhost:10009)
      --lnd.network=[regtest|testnet|mainnet|simnet] network to run on (default: mainnet)
      --lnd.macaroondir=                             Path to lnd macaroons
      --lnd.tlspath=                                 Path to lnd tls certificate

Help Options:
  -h, --help                                         Show this help message

2019-08-06 11:23:38.387 [INF] LNDMON: Starting Prometheus exporter...