mantlenetworkio / mantle

Mantle | Mass adoption of decentralized & token-governed technologies. With Mantle Network, Mantle Treasury, and token holder-governed products initiatives.
https://www.mantle.xyz
MIT License
226 stars 101 forks source link

[l2geth]: How to expose prometheus metrics? #1365

Open qezz opened 1 year ago

qezz commented 1 year ago

Describe the issue

I run an RPC node on mainnet, and I want to monitor it with prometheus. But it's not really clear how to do this.

I can see from the code, and from the --help output that --metrics flag exists, but there are no --metrics.port or --metrics.addr.

There's also METRICS_ENABLE=true env var, but I'm not sure if it does anything. And I also couldn't find any configuration for the listen address and port.

To Reproduce n/a

Expected behavior

CLI options and env vars exist to listen on the certain addr:port

Screenshots n/a

Additional context n/a