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

How to record origin of client requests? #2077

Open
8 tasks
jpraynaud opened this issue Nov 4, 2024 · 0 comments
Open
8 tasks

How to record origin of client requests? #2077

jpraynaud opened this issue Nov 4, 2024 · 0 comments
Assignees
Labels
to-investigate 🔎 Need further investigation

Comments

@jpraynaud
Copy link
Member

jpraynaud commented Nov 4, 2024

Why

We would like to have the capability to optionally record the origin of a call being made by a client to the aggregator. This will help us monitor the usage being made by the different type of users (Bridges, wallets, ...).

What

How can we add an origin to calls made to the aggregator and compute metrics breakdown by origin?
We want to make sure that the mechanism can not be used to flood the aggregator.

How

  • How can we implement the origin token:
    • a whitelist of authorized origin tokens
    • is it configurable, maybe on a shared location, hard coded?
    • can we stack multiple tokens
  • How can we record the existing metrics with a breakdown by origin token?
  • How can we compute aggregated metrics with/without the tokens?
    • in Grafana dashboard
    • in event store
@jpraynaud jpraynaud added the to-investigate 🔎 Need further investigation label Nov 4, 2024
@jpraynaud jpraynaud changed the title Record origin of client requests PoC How to record origin of client requests? Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to-investigate 🔎 Need further investigation
Projects
None yet
Development

No branches or pull requests

2 participants