Closed nivasan1 closed 1 year ago
Hey @nivasan1 should we review this? I am asking because you closed it.
Hey @nivasan1 should we review this? I am asking because you closed it.
Hi! Yes, this PR is ready for review, please let me know if you all would like more context on mev-tendermint / why the alerts added are relevant. Thanks!
Have all tests passed?
Have you ran PANIC with docker-compose up --build -d
? Did it run without errors?
Have you ran PANIC with
docker-compose up --build -d
? Did it run without errors?
Is the new alert configurable in the UI? (When setting a cosmos node, in the alerts configuration step, are the new alerts shown in the list, and are you able to be configure it (ex: change severity)?
Great work on this PR! Thank you for abiding by our code standards.
Okay, I just noticed that the data store is not updated to cater for these new metrics. Kindly have a look at the Cosmos Node Store code and amend it to cater for these new metrics being added.
The AlertStore might also need to be amended for the new alerts. Have a look at the codebase, although it might be catered for automatically.
Would be great if you can update the relevant docs
Have all tests passed?
Yes, I have also modified the testing suites to accomodate the newly added alerting logic
Have you ran PANIC with
docker-compose up --build -d
? Did it run without errors?Is the new alert configurable in the UI? (When setting a cosmos node, in the alerts configuration step, are the new alerts shown in the list, and are you able to be configure it (ex: change severity)?
I have been able to run the alerter with both a mev-tendermint
/ non-mev-tendermint
node, both the node_is_peered_with_sentinel
and validator_is_peered_with_sentinel
alerts are configurable in the panic UI. I have also tested that the regular alerts / new alerts were emitted at the expected times. Please let me know if there is anything else I should be looking into further
unless there is anything else from @itsciccio side all there is left for this to be merged is the changes suggested above
Super! We can proceed with the merge. Thank you for resolving all the threads which I opened.
Will need to check something with the team prior to merge. But all okay from your end.
One last thing: Please update the changelog here, in the Unreleased
section: https://github.com/SimplyVC/panic/blob/master/docs/CHANGE_LOG.md
Just so we can keep track of these community contributions.
In this PR
validator_is_peered_with_sentinel
andnode_is_peered_with_sentinel
, these are solvable conditional alerts, raised on the condition that the monitored node is not peered to the sentinelinfo
/warning
respectivelyMajor Changes
_get_tendermint_rpc_direct_data
method to check if amev-info
field of the/status
response existsis_peered_with_sentinel
field of the response will be acknowledged if the alert is enabledtransformer
/alerter
for the cosmos node to read the modifiedmeta-data
/data
fields of thetendermint-rpc
responseRelevant Files
alerter/src/data_transformers/node/cosmos.py
alerter/src/monitor/node/cosmos.py
alerter/src/alerter/alerters/node/cosmos.py
Testing
alerter
,monitor
anddata_transformer
mev-tendermint
and regular tendermint