performance-analyzer-rca icon indicating copy to clipboard operation
performance-analyzer-rca copied to clipboard

Add FaultDetectionStats to collect latency and failure metrics

Open amathur1893 opened this issue 3 years ago • 0 comments

The changes are made in accordance of how we are getting fault detection metrics from ES. Fault Detection metrics in ES will be published in a manner similar to ingest metrics. Hence changing collector and processor accordingly. Fixes #:

  1. Tested using Docker Tmp file
^fault_detection
{"current_time":1615283839364}
{"FollowerCheck_Latency":1.28,"LeaderCheck_Latency":1.8,"FollowerCheck_Failure":3.0,"LeaderCheck_Failure":4.0}$

Table created

sqlite> .tables
FollowerCheck_Latency     
FollowerCheck_Failure
LeaderCheck_Latency     
LeaderCheck_Failure

Contents of the table

sqlite> select * from LeaderCheck_Latency;
1.8|1.8|1.8|1.8
sqlite> select * from FollowerCheck_Latency;
1.28|1.28|1.28|1.28
sqlite> select * from LeaderCheck_Failure;
4.0|4.0|4.0|4.0
sqlite> select * from FollowerCheck_Failure;
3.0|3.0|3.0|3.0

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or

(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or

(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.

(d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.

amathur1893 avatar Mar 09 '21 10:03 amathur1893