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

Feature/gateway direct stats #1376

Merged
merged 13 commits into from Jun 16, 2022
Merged

Feature/gateway direct stats #1376

merged 13 commits into from Jun 16, 2022

Conversation

neacsu
Copy link
Contributor

@neacsu neacsu commented Jun 16, 2022

Description

Add an opt-in flag for gateways that enables them to report the number of active inboxes they serve

Closes: #2032

Testing

  1. Run a native client and a network requester that has a whitelist on localhost
  2. On the same machine as 1), start the statistics service provider
  3. Init and run a gateway. Use the --enabled-statistics true and --statistics-service-url $URL options, where $URL is a the address and port of the running statistics service from 2)
  4. Watch how inbox statistics are being gathered in the $NYM_DIR/service-providers/network-statistics/db.sqlite. You can also query the data from the statistics machine:
curl -d '{"since":"2022-06-16T00:00:00.000000+00:00", "until":"2022-06-17T00:00:00.000000+00:00"}' -H "Content-Type: application/json" -X POST http://[STATS_MACHINE_ADDR]:8090/v1/all-statistics | json_pp

Checklist:

  • added a changelog entry to CHANGELOG.md

@neacsu neacsu merged commit 4f46e36 into develop Jun 16, 2022
@neacsu neacsu deleted the feature/gateway_direct_stats branch June 16, 2022 13:24
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.

Add opt-in user numbers statistical reporting to gateway binary.
1 participant