Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dappnode/dappnodepackage-ethical-metrics


https://github.com/dappnode/dappnodepackage-ethical-metrics

Last synced: 27 days ago
JSON representation

Awesome Lists containing this project

README

        

# ETHICAL METRICS

This repository contains the Ethical Metrics package, which is responsible for registering the user in the monitor-proxy and exposing some of it's dappnode metrics to a monitor-service instance. It achieves this through the setup of two dappnode services: _tor-hidden-service_ and _prometheus_.

## tor-hidden-service

The tor-hidden-service attempts to register the user by periodically sending an HTTP POST request (endpoint _/targets_) to the monitor proxy. If the request is successful and returns a status code of 200, it waits 1 day before making the request again. In case of failure, it waits for 1 minute before retrying.

Additionally, when this service restarts or shuts down (in response to signals INT, TERM, HUP, KILL, or QUIT), it sends an HTTP DELETE request (endpoint: _/targets_) to the monitor proxy and propagates the signal to the tor process.

## prometheus

The prometheus service starts a Prometheus federated server. This Prometheus server scrapes a set of filtered metrics from the DMS Prometheus server located at _prometheus.dms.dappnode:9090_. The metrics collected by this server are then ready to be scraped by a monitor-service instance.