[c-lightning] lnmetrics an open source way to collect data

Vincenzo Palazzo vincenzo.palazzo at protonmail.com
Tue Nov 30 19:08:01 AEDT 2021


Hi all.

Yesterday I released the first beta version of a plugin called go-lnmetrics.reporter available at https://github.com/LNOpenMetrics/go-lnmetrics.reporter. This plugin is able to collect some data in the node about the uptime information of it and all the friends. But a full description of the metrics is described in lnmetrics specification available at https://github.com/LNOpenMetrics/lnmetrics.rfc

So, lnmetrics is designed to be a unique system to collect different type of metrics across lightning implementation, and report these data to an open-source server that gives the possibility to access the full metrics payload and have rating that it is accessible throught API available at https://api.lnmetrics.info, and in the near future has also the possibility to analyze the metrics from a small UI https://lnmetrics.info. But the goal, for now, is to collect data in an open source way and try to understand if under this data it is possible to define some model.

The basic idea is that we don't want a trust system like 1ml or lightning terminal that give some hidden metrics on the goodness of the node, but we want to start to collect data from people that want to share this data and try to understand if it is possible to define some concept of goodness and help tools like clboss in order to do less work in the estimation of the goodness of one node. In addition, having global metrics can help us to have a standard of goodness across implementation, because right now there are tools that managed the various implementation, but the metrics could be different.

In conclusion, having a system able to store the history of the channels, such as failure rating, uptime of the node and the friend of the node gives us the possibility to make the right choice during the selection of one node to open a channel. Also, we could collect data about the feature supported, and the lightning implementation to avoid nodes that have some incompatibility with the protocol and can cause mistakes.

P.S': The lnmetrics specification is not a list of rules that all need to respect, but it is more like a collection of standard metrics description in terms of data collection and result calculated with this data. More important, there is no topic of these metrics, so anyone can push new metrics on any topic. For Example with this system, you can have the possibility to benchmarking the various implementation in a real-world environment and not in a theoretical way in a test env.

P.S'': The plugin is in rc1 release, so for this release, it will not change. However, I'm optimizing the server and starting to implement a rating system on the server, that will be available at the end of December. I think it is a good moment to propose this system and start to collect the data and more important catch bugs :)

Regards.

Vincent.
https://github.com/vincenzopalazzo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/c-lightning/attachments/20211130/439e573c/attachment.htm>


More information about the c-lightning mailing list