-
Notifications
You must be signed in to change notification settings - Fork 364
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
feat: aggregator total gas paid metric #1592
Conversation
Ran it locally and it observed the expected behavior |
"type": "prometheus", | ||
"uid": "prometheus" | ||
}, | ||
"description": "Accumulated gas cost the aggregator paid for the batcher when the tx cost was higher than the respondToTaskFeeLimit.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"description": "Accumulated gas cost the aggregator paid for the batcher when the tx cost was higher than the respondToTaskFeeLimit.", | |
"description": "Accumulated gas cost in ETH the Aggregator paid when sending RespondToTask transactions.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected.
metrics/metrics.go
Outdated
@@ -21,6 +21,7 @@ type Metrics struct { | |||
aggregatorGasCostPaidForBatcherTotal prometheus.Gauge | |||
aggregatorNumTimesPaidForBatcher prometheus.Counter | |||
numBumpedGasPriceForAggregatedResponse prometheus.Counter | |||
aggregatorGasCostPaidTotal prometheus.Gauge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be a counter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Edit: removed comment
Aggregator total gas paid metric
Description
This PR adds aggregator total gas paid while responding to tasks metric to the grafana dashboard.
How to test
Type of change
Please delete options that are not relevant.
Checklist
testnet
, everything else tostaging