Prometheus exporter for telemetry monitoring cosmos metrics.
This project follows the Prometheus community exporter pattern.
git clone https://github.com/stakefish/cosmos-watcher.git
cd cosmos-watcher
make build
./bin/cosmos-watcher <flags>
To build the Docker image:
docker build -t cosmos-watcher .
# for macOS docker desktop
docker build --platform=linux/amd64 -t cosmos-watcher .
helpShow context-sensitive help (also try --help-long and --help-man).cosmos.rest-rpcCosmos REST RPC URL. Default ishttp://localhost:1317.cosmos.rpc-timeoutCosmos RPC connect timeout. Default is5s.web.listen-addressAddress to listen on for web interface and telemetry. Default is:5577.web.telemetry-pathPath under which to expose metrics. Default is/metrics.versionShow application version.log.levelSet logging level: one ofdebug,info,warn,error.log.formatSet the log format: one oflogfmt,json.web.config.fileConfiguration file to use TLS and/or basic authentication. The format of the file is described in the exporter-toolkit repository.
COSMOS_REST_RPCCosmos REST RPC URL. Default ishttp://localhost:1317.COSMOS_RPC_TIMEOUTCosmos RPC connect timeout. Default is5s.EXPORTER_WEB_LISTEN_ADDRESSAddress to listen on for web interface and telemetry. Default is:5577.EXPORTER_WEB_TELEMETRY_PATHPath under which to expose metrics. Default is/metrics.