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

Services metrics are not reported in the CSV file

Open
#16,129 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
406
Forks
226
Avg merge
3d 4h
Merged PRs (30d)
210

Description

### Description

Services metrics are missing from the header of `data/stats/MainNetStats*.csv`. The problem appears to be due to lack of synchronization between starting the CSV file (`LegacyCsvWriter.init()`) and registering some metrics (f.e. `StoreMetricsServiceImpl()`).

### Steps to reproduce

The problem is reproducible in single-node mode as well as network mode (10-node performance clusters in Latitude).

### Additional context

_No response_

### Hedera network

other

### Version

v0.56.0-SNAPSHOT

### Operating system

Linux

Contributor guide

Open the contributing guide

Research direction

Start by inspecting LegacyCsvWriter.init() and StoreMetricsServiceImpl(), focusing on the order in which the CSV header is created and service metrics are registered. Reproduce the issue in single-node or network mode and verify that data/stats/MainNetStats*.csv includes the service metrics in its header.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.