Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Product Data] First step in gateway usage data collection #4963

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

simonwicky
Copy link
Contributor

@simonwicky simonwicky commented Oct 11, 2024

Overview

This PR is the first step towards collecting data on gateway usage. It builds up on @neacsu's old code for what was then nym-connect.

What it does

Exposes unique users count and connection time histogram on the metrics/sessions endpoint of the self-described API on entry-gateways. For the time being, data is collected by probing the ActiveClientStore every minute and extracting data from this. Data is stored internally and exposed on the next day, i.e. UTC day $d$ exposes data from day $d-1$.

Future plans

The statistics module will evolve as we add collection for product data and censorship resistance study. The collection will also eventually switch from probing to event-based for more accurate data.


This change is Reviewable

@simonwicky simonwicky added this to the Magura milestone Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant