Skip to content

Metrics - maru_p2p_network_peer_limit to expose p2p.max-peers config #444

@fluentcrafter

Description

@fluentcrafter

Description

Maru should expose p2p.max-peers config as a metric: maru_p2p_network_peer_limit

Why: to allow setting alerts when maru_p2p_network_peer_count is reaching the limit, especially for edge nodes and let the team take action on it.

Even after discovery is enabled, this may be required to scale horizontally.

Motivation

  • Better monitoring and taking preventive action, rather than being reactive when partners complain they can't connect to the network.

Tasks

  • Implement the metric maru_p2p_network_peer_limit

Acceptance criteria

  • metric is correctly exported and reflects the effective config value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions