XRPLF / rippled

Decentralized cryptocurrency blockchain daemon implementing the XRP Ledger protocol in C++
https://xrpl.org
ISC License
4.5k stars 1.45k forks source link

Extend metric types and insight into rippled operation/state #2962

Open MarkusTeufelberger opened 5 years ago

MarkusTeufelberger commented 5 years ago

Currently rippled exposes metrics and/or information about its current operation via:

I'd like to suggest to add 2 more methods of exposing information to this, maybe eventually replacing some of them (statsd + maybe the perf log + maybe the /crawl endpoint):

jerryzhou196 commented 1 month ago

@intelliot @kennyzlei @shawnxie999 Would be really interested in taking this feature up for fun. I'm actually an intern at Ripple working on the data platform team and just finishing up my last two weeks.

I was working on a feature with Databricks that involved aggregating Apache Spark's Prometheus metrics with an OTEL collector and pushing to Grafana across our data platform for cost observability. It's real-time, nearly seamless to integrate with Grafana, and has helped A TON with our observability.

Would be really interested in doing something similar to what Spark does but for rippled's metrics . I think we could do it by simply converting all the existing metrics into a prometheus time-series format and exposing it on some endpoint, providing an easy adaptor for anyone interested in visualizing the metric data in time series form.

Having this feature would be really useful to integrate with modern observability stacks involving things like OTEL collector and Grafana.

Is there anyone I can work with to implement this? Also, would this qualify for a grant?

kennyzlei commented 1 month ago

@jerryzhou196 thank you for your interest! For the Clio project, native prometheus support was added recently by @kuznetsss https://github.com/XRPLF/clio/blob/develop/docs/metrics-and-static-analysis.md I think he may be a good person to reach out to for insights on how this could be applied to rippled.

In terms of grants, I believe this typically applies to individuals and organizations outside Ripple