Home

Awesome

<div align="center"> <h1> :chart_with_upwards_trend: go-lnmetrics-reporter :bar_chart: </h1> <img src="https://github.com/OpenLNMetrics/lnmetrics.icons/blob/main/current/res/mipmap-xxxhdpi/ic_launcher.png" /> <p> <strong> Reference implementation written in Go lang to collect and report of the lightning node metrics </strong> </p> <p> <a href="https://github.com/LNOpenMetrics/go-lnmetrics.reporter/actions"> <img alt="GitHub Workflow Status" src="https://img.shields.io/github/workflow/status/LNOpenMetrics/go-lnmetrics.reporter/Build%20and%20test%20Go?style=flat-square"/> </a> <a href="https://discord.gg/vFX989za"> <img alt="Discord" src="https://img.shields.io/discord/913794833498394634?style=flat-square"> </a> <a href="https://github.com/LNOpenMetrics/go-lnmetrics.reporter/releases"> <img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/LNOpenMetrics/go-lnmetrics.reporter?style=flat-square"/> </a> </p> </div>

Table of Content

Introduction

go-lnmetrics.reporter is the reference implementation of a lnmetrics client (see definition of lnmetrics client here). It is written in Go lang to use the power of the statically compiled binary that a user can easily run on the target machine. This help to speedup the data collection process very easily.

In addition, this plugin support the following metrics, and you can also see the in the spec what data of your ln node are shared with the server.

Install Procedure

It is suggested to work with the tagged version that you can find in the release page.

The installation process required just to download the right binary from your host machine, and configure c-lightning (that it is the only implementation supported right now) to run the plugin and pass the server link to lightnind.

The configuration suggested is to use the config file, with the following content

... other stuff...
 
plugin=/path/binary/go-lnmetrics-{archirecture}
lnmetrics-urls=https://api.lnmetrics.info/query

Where the lnmetrics-urls give the possibility to specify the server where the plugin need to report the data if any. You can specify more that one server with just append another url divided by a comma.

In addition, there are the following optional parameters:

How to Use

After running the plugin you will have the possibility to run the following rpc command from lightning-cli, and they are described below:

How to Contribute

You can contribute in three different way, and them are described below:

In addition, if you want build the project or you can start to play with it, you need the golang compiler (suggested the last one) and the golangci (see Build With section) to compile the code with the make command.

Build With

License

TODO