Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chain-prometheus-exporter: Expand to monitor timeouts #232

Open
Thahara opened this issue Nov 5, 2024 — with Linear · 0 comments
Open

Chain-prometheus-exporter: Expand to monitor timeouts #232

Thahara opened this issue Nov 5, 2024 — with Linear · 0 comments
Labels
[Type] Change Request Some visible functionality should be change.

Comments

Copy link
Contributor

Thahara commented Nov 5, 2024

We would like to monitor the amount of timeouts per validator in each epoch, this data is available from chain via concordium-client:

concordium-client --grpc-ip grpc.mainnet.concordium.software --secure raw GetWinningValidatorsEpoch --epoch 9265 --genesis-index 5 | jq '[.[] | select(.present == false)] | group_by(.winner) | map({winner: .[0].winner, count: length})'

[
  {
    "winner": 507,
    "count": 1
  },
  {
    "winner": 1484,
    "count": 4
  },
  .
  .
  .
  {
    "winner": 95363,
    "count": 10
  },
  {
    "winner": 95364,
    "count": 6
  }
]

Where "winner" is the validator id, and "count" is the number of times that validator timed out on baking a block in the epoch. So "winner" should be a label on the metric, and "count" should be the metric.
For the sake of convenience, it could also be nice to add a second metric of the epoch, with a label of the protocolVersion, that is available from the concordium-client:

concordium-client --grpc-ip grpc.mainnet.concordium.software --secure raw GetConsensusInfo
@Thahara Thahara added the [Type] Change Request Some visible functionality should be change. label Nov 5, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Change Request Some visible functionality should be change.
Projects
None yet
Development

No branches or pull requests

1 participant