Skip to content

Comments

feat: add GET /auth/metrics/efficiency endpoint#19

Closed
mukama wants to merge 3 commits intotetherto:developfrom
mukama:feat/metrics-efficiency
Closed

feat: add GET /auth/metrics/efficiency endpoint#19
mukama wants to merge 3 commits intotetherto:developfrom
mukama:feat/metrics-efficiency

Conversation

@mukama
Copy link
Contributor

@mukama mukama commented Feb 19, 2026

Summary

  • Add GET /auth/metrics/efficiency endpoint that queries daily miner efficiency (W/TH) data via tailLogCustomRangeAggr RPC
  • Returns { log: [{ ts, efficiencyWThs }], summary: { avgEfficiencyWThs } }
  • Adds AGGR_FIELDS.EFFICIENCY (efficiency_w_ths_avg_aggr) constant

Add metrics hashrate endpoint that queries miner hashrate data via
tailLogCustomRangeAggr RPC and returns daily hashrate with summary.
Add metrics consumption endpoint that queries powermeter data via
tailLogCustomRangeAggr RPC and returns daily power/consumption with summary.
Add metrics efficiency endpoint that queries miner efficiency (W/TH) data
via tailLogCustomRangeAggr RPC. Adds AGGR_FIELDS.EFFICIENCY constant.
@mukama
Copy link
Contributor Author

mukama commented Feb 19, 2026

Superseded by #21 (unified metrics branch)

@mukama mukama closed this Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant