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

metrics: add failure counter for triple/presig/signature #804

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

ppca
Copy link
Contributor

@ppca ppca commented Aug 7, 2024

failure counters

@ppca ppca changed the title metrics: add failures for triple/presig/signature metrics: add failure counter for triple/presig/signature Aug 7, 2024
@@ -335,6 +335,51 @@ pub(crate) static FAILED_SEND_ENCRYPTED_LATENCY: Lazy<HistogramVec> = Lazy::new(
.unwrap()
});

pub(crate) static NUM_TOTAL_HISTORICAL_SIGNATURE_GENERATORS: Lazy<IntGaugeVec> = Lazy::new(|| {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we rename this to SIGNATURE_GENERATOR, NEW_SIGNATURE_GENERATOR, or something similar?
We should not expose how it is represented on Grafana in code. It can be reused, it can be per hour, not historical. It can be combined with other data and not be TOTAL.

I would rename all new and existing metrics so they represent what they are, and not how they are shown on in Grafana.

@ppca ppca merged commit 568fb11 into develop Aug 12, 2024
3 checks passed
@ppca ppca deleted the xiangyi/failure_metrics branch August 12, 2024 04:52
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.

3 participants