The Mysterium Metrics Collector is an Express.js application designed to fetch and expose metrics from the Mysterium Network API. It gathers various statistics about Mysterium nodes, including proposals, registration fees, and service pricing, and makes them available for monitoring.
- Fetches all proposals from the Mysterium Network.
- Retrieves public proposals.
- Obtains registration fees in human-readable format.
- Gathers service pricing information.
- Exposes metrics for monitoring Mysterium nodes.
- Node.js (version 14 or higher)
- npm (Node package manager)
-
Clone the repository:
git clone https://github.com/adinetech/mysterium-metrics-collector.git cd mysterium-metrics-collector
-
Install dependencies:
npm install
To start the server, run:
node index.js
The server will run on http://localhost.
Main endpoint to fetch node statistics:
GET http://localhost/
https://mysterium-api.adinetech.com/
Description: Returns a JSON response containing the list of usable API Endpoints.
Description: Exposes Prometheus metrics for monitoring.
Description: Retrieves the current registration / settlement fee in MYST from the Transactor API.
Description: Fetches service pricing details from the Discovery API, including various pricing metrics for residential and other services.
Description: Returns a list of all proposals from the Mysterium network.
Description: Provides the total count of providers available in the network.
Description: Calculates and returns the total bandwidth across all Mysterium nodes in Gbps.
Description: Calculates and returns the total bandwidth specifically for public Mysterium nodes in Gbps.
Description: Computes and returns the average quality of all Mysterium nodes.
Description: Computes and returns the average quality specifically for public Mysterium nodes.
Description: Computes and returns the average latency of all Mysterium nodes.
Description: Computes and returns the average latency specifically for public Mysterium nodes.
Description: Returns a count of public providers currently available in the network.
The application uses prom-client
to expose various metrics related to Mysterium nodes.
Metrics can be accessed at http://localhost/metrics.
This project is licensed under the MIT License.