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

Add metrics gauges for lifetime usage #20

Open
jshufro opened this issue May 9, 2024 · 0 comments
Open

Add metrics gauges for lifetime usage #20

jshufro opened this issue May 9, 2024 · 0 comments

Comments

@jshufro
Copy link
Contributor

jshufro commented May 9, 2024

Add some prometheus gauges to the metrics collection that track lifetime usage.

This can be done by querying the sqlite db in a guagefunc:

select count(*) from credential_events where operator_type = 0; -> times access granted to RP NOs
select count(*) from credential_events where operator_type = 1; -> times access granted to solo stakers
we can sum these in grafana for a third (total), so no need to independently add it as a metric.

We should also count distinct node ids for each type for a "total lifetime users" gauge.

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

1 participant