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 for signature-aggregator #398

Merged
merged 14 commits into from
Aug 9, 2024
Merged

Conversation

feuGeneA
Copy link
Contributor

@feuGeneA feuGeneA commented Aug 1, 2024

Why this should be merged

fixes #384

How this works

uses prometheus to publish an endpoint

How this was tested

Added metric value checks at the end of the existing signature aggregation test

@feuGeneA feuGeneA force-pushed the signature-aggregation-api-metrics branch 3 times, most recently from 0013040 to 40028cc Compare August 1, 2024 15:43
@feuGeneA feuGeneA force-pushed the signature-aggregation-api-metrics branch from 40028cc to f1392e9 Compare August 1, 2024 15:45
@feuGeneA feuGeneA marked this pull request as ready for review August 1, 2024 16:17
@feuGeneA feuGeneA requested a review from a team as a code owner August 1, 2024 16:17
@@ -101,6 +105,7 @@ func (s *SignatureAggregator) AggregateSignaturesAppRequest(
zap.String("warpMessageID", unsignedMessage.ID().String()),
zap.Error(err),
)
s.metrics.ValidatorFailures.Inc()
Copy link
Contributor

Choose a reason for hiding this comment

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

We probably want to distinguish between issues for more specific alerting. I.e. not connecting to validators is a broader issue than not being able to connect to sufficient stake and is very different from an individual validator not returning a valid signature response

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed in eb2e526

Copy link
Collaborator

@cam-schultz cam-schultz left a comment

Choose a reason for hiding this comment

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

Just a handful of minor comments and call outs. Otherwise LGTM

signature-aggregator/api/api.go Outdated Show resolved Hide resolved
signature-aggregator/main/main.go Outdated Show resolved Hide resolved
signature-aggregator/metrics/metrics.go Outdated Show resolved Hide resolved
signature-aggregator/metrics/metrics.go Show resolved Hide resolved
geoff-vball
geoff-vball previously approved these changes Aug 7, 2024
cam-schultz
cam-schultz previously approved these changes Aug 7, 2024
signature-aggregator/config/keys.go Dismissed Show dismissed Hide dismissed
signature-aggregator/config/keys.go Dismissed Show dismissed Hide dismissed
Base automatically changed from signature-aggregation-api to main August 8, 2024 20:04
@iansuvak iansuvak dismissed stale reviews from cam-schultz and geoff-vball August 8, 2024 20:04

The base branch was changed.

@feuGeneA feuGeneA merged commit e6757dc into main Aug 9, 2024
7 checks passed
@feuGeneA feuGeneA deleted the signature-aggregation-api-metrics branch August 9, 2024 15:12
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 /metrics endpoint and collect basic metrics
4 participants