hiero-ledger / hiero-ledger/hiero-consensus-node

Export in statistics information about whether the node is UP

Open
#8,631 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
406
Forks
226
Avg merge
3d 4h
Merged PRs (30d)
210

Description

### Problem

The platform has PlatformStatus, and exports through metrics the status of the platform. For example, there is a platform status of ACTIVE. But ACTIVE is not really meaningful to node operators -- what they really need to know is whether the node is UP or DOWN -- that is, whether the grpc endpoints are UP *and* the platform is ACTIVE. And it should be that the endpoints are DOWN when the platform is *not* ACTIVE.

This should all be made available through stats, so we can keep track of UP/DOWN time, and also so local queries of the prometheus endpoint will report the UP/DOWN status of the node.

### Solution

Keep track of UP/DOWN in `Hedera.java` and update a metric with this information.

### Alternatives

We could have a more generic status, which combines PlatformStatus with UP/DOWN.

Contributor guide

Open the contributing guide

Research direction

Start in Hedera.java, where the issue says node UP/DOWN should be tracked, and inspect the existing PlatformStatus statistics and metrics. Define the metric from whether the gRPC endpoints are up and the platform is ACTIVE, with non-ACTIVE meaning DOWN. Verify that the resulting statistics expose usable UP/DOWN time and local metric queries report the node status.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.