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

get a count on how many beacons we process. #4

Open
kaisbaccour opened this issue Apr 12, 2023 · 2 comments
Open

get a count on how many beacons we process. #4

kaisbaccour opened this issue Apr 12, 2023 · 2 comments

Comments

@kaisbaccour
Copy link
Contributor

Ugly solution : by following sink ash (probably not accurate).
Better solution : following the gateway and extract foreach customer. Then on grafana we can aggregate the data and figure out how much we have total.

@webmaster128
Copy link
Contributor

webmaster128 commented Apr 13, 2023

With the 0.12 gateway, the client can loop over the Customers { ... } query and get

  1. The number of customers
  2. The sum of requested_beacons

Both data can be prepared in TypeScript and we only export two gauge values to prometheus

@kaisbaccour
Copy link
Contributor Author

This is the kind of metric that could be nice to have.
We don't need the sum aggregation in the metrics because we better aggregate that at the visualisation level

HELP beacons Requested beacons per customer

TYPE beacons gauge

beacons{customer="nois1re6jdd097wtc0nz9g63amxh2hejfzuqc49ukz8yslaq2pkkr32dqcmk0pn",rpcEndpoint="https://nois-testnet-rpc.itrocket.net:443",chainId="nois-testnet-005"} 2
beacons{customer="nois1k7a00gmhj450qa83xq2v3rlmfcp8nj8t2wc653maq9p5csv4q5jq5pwfm0",rpcEndpoint="https://nois-testnet-rpc.itrocket.net:443",chainId="nois-testnet-005"} 1

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

No branches or pull requests

2 participants