dappnode / DAppNodePackage-DMS

This package privately and locally collects and displays metrics related to your dappnode and its packages. Based on Grafana and Prometheus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DMS DAppNode Package

DAppNode Available

DAppNode Monitoring Service

This package privately and locally collects and displays metrics related to your dappnode and its packages. Based on Grafana and Prometheus


avatar


How does it work?

According to the following diagram, the DMS package provides a high level of abstraction, allowing any new DAppNode package developed to easily implement grafana and prometheus.

diagram

Instructions to implement Grafana and Prometheus in your DAppNode package:

  • prometheus-targets.json file: specifying the domain and the port where the data will be published.
  • name-grafana-dashboard.json file: specifying the grafana dashboard to be used.

If you want to learn more about how do Grafana and Prometheus work, visit this link

How to add a custom prometheus endpoint

In order to add a custom path to prometheus you need to overwrite the __metrics_path__ label (by default /metrics), so that you can define diferent and specific metrics paths per target, like this:

[
    {
        "labels": {
            "package": "tg.turbo-geth.dnp.dappnode.eth",
            "service": "tg.turbo-geth.dappnode",
            "__metrics_path__": "/debug/metrics/prometheus"
        },
        "targets": [
            "tg.turbo-geth.dappnode:6060"
        ]
    }
]

Note

This is early stage software and it's just a PoC

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details

About

This package privately and locally collects and displays metrics related to your dappnode and its packages. Based on Grafana and Prometheus


Languages

Language:TypeScript 93.7%Language:Dockerfile 4.6%Language:JavaScript 1.7%