cacti icon indicating copy to clipboard operation
cacti copied to clipboard

Integrate Prometheus endpoints with Grafana for better monitoring

Open RafaelAPB opened this issue 1 year ago • 2 comments

Currently some Cacti plugins support some metric management on Prometheus. Example: Ethereum connector, Fabric connector and many more. See an example on how to instantiate prometheus here, define metrics, and to update metrics. We should also explore using OpenTelemetry to replace or complement Prometheus.

Requirements: 1- Explore OpenTelemetry as a technical solution for the list of metrics below. 1 - In order to monitor SATP-Hermes effectively, we need to add support for Prometheus, by defining the following metrics (and tracking them in the corresponding code): -number of supported assets -total number of successful transactions -total number of failed transactions -successful transactions per SATP phase -failed transactions per SATP phase -total peer gateways -total number of sessions -number of sessions with each gateway -total value transferred -value transferred per gateway -number of blockchain transactions done successfully -number of failed blockchain transactions -amount of blockchain transaction fees paid -track transaction IDs (hashes) for every blockchain transaction for later inspection

-number of crashes -number of recoveries -average time to recovery -average time to crash -number of rollbacks

2- SATP-Hermes should define an endpoint that exposes these metrics

3- Use this endpoint to instantiate Grafana to visualize relevant metrics. See this example.

RafaelAPB avatar Mar 15 '24 15:03 RafaelAPB

hi

LordKubaya avatar Mar 18 '24 19:03 LordKubaya

TBD later

RafaelAPB avatar Jul 05 '24 13:07 RafaelAPB

included by #3124

RafaelAPB avatar Aug 09 '24 11:08 RafaelAPB