7 Commits

Author SHA1 Message Date
Jan Safranek
5cfcb31222 Fix deadlock in recursive metric locks
RecordMetrics() grabs a mutex and calls recordCancelMetric(), which wants to
grab the same mutex. Go mutexes are not recursive, so recordCancelMetric
blocks forever.

recordCancelMetric should not grab the mutex, it can be sure that the
caller did it already.
2021-08-19 18:14:56 +02:00
Grant Griffiths
0476dcedcc Refactor http server and register leaderelection health check
- Needed to start the http server outside of pkg/metric
- We needed this because we want to add other endpoints to the server

Signed-off-by: Grant Griffiths <ggriffiths@purestorage.com>
2021-08-10 11:44:12 -07:00
Saikat Roychowdhury
3c216f78bb Add process start time metric 2021-08-05 05:36:26 +00:00
Grant Griffiths
57987a84c0 Add gauge metric for snapshot controller operations in flight
Signed-off-by: Grant Griffiths <grant@portworx.com>
2021-07-27 14:17:55 -07:00
Grant Griffiths
941821bf99 Add snapshot controller metrics
Signed-off-by: Grant Griffiths <grant@portworx.com>
2020-12-02 22:18:18 -08:00
Christian Huffman
ffaeac1515 Move to klogv2 2020-07-27 14:39:56 -04:00
xiangqian
7bd717198b add basic metrics utility functions
relax latency check to be greater than instead of within threshold
2020-05-21 13:45:44 -07:00