Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dappnode/dappnodepackage-ethical-metrics
https://github.com/dappnode/dappnodepackage-ethical-metrics
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dappnode/dappnodepackage-ethical-metrics
- Owner: dappnode
- Created: 2022-12-01T21:58:11.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-02T20:06:13.000Z (8 months ago)
- Last Synced: 2024-05-03T05:51:21.337Z (8 months ago)
- Language: TypeScript
- Size: 613 KB
- Stars: 2
- Watchers: 6
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
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.