input-output-hk / mithril

Stake-based threshold multi-signatures protocol
https://mithril.network
Apache License 2.0
130 stars 41 forks source link

Record aggregator metrics in event store #2059

Closed sfauvel closed 3 weeks ago

sfauvel commented 3 weeks ago

Content

Store usage metrics in the event store of the aggregator in order to produce statistics reports.

The new service usage_report sending events at regular intervals to the ̀event store. The frequency of measurement taking can be configured by settingPERSIST_USAGE_REPORT_INTERVAL_IN_SECONDS` environment variable.

The view metrics_per_day calculate the value of each metric over a day.

This feature is described in the runbook aggregator-metrics.

Pre-submit checklist

Issue(s)

Closes #2023

github-actions[bot] commented 3 weeks ago

Test Results

    4 files  ± 0     51 suites  ±0   10m 27s ⏱️ -3s 1 415 tests +15  1 415 ✅ +15  0 💤 ±0  0 ❌ ±0  1 626 runs  +15  1 626 ✅ +15  0 💤 ±0  0 ❌ ±0 

Results for commit 10703b45. ± Comparison against base commit bd9b7be4.

:recycle: This comment has been updated with latest results.