consensus-shipyard / ipc

🌳 Spawn multi-level trees of customized, scalable, EVM-compatible networks with IPC. L2++ powered by FVM, Wasm, libp2p, IPFS/IPLD, and CometBFT.
https://ipc.space
Apache License 2.0
41 stars 35 forks source link

Add the current chain id as a label to the metrics #1153

Open 3benbox opened 3 days ago

3benbox commented 3 days ago

Issue type

Feature Request

Have you reproduced the bug with the latest dev version?

Yes

Version

main

Custom code

Yes

OS platform and distribution

No response

Describe the issue

When a host participates on multiple subnets, or changes to a different subnet, it would be really useful to know the chain the metrics are associated with.

Cometbft already does this, so reusing their label and value creation would be preferred.

image

Repro steps

Observe the output generated from the metrics endpoint.

Relevant log output

No response