Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compact: add metric thanos_compactor_iterations_total (#1733)
* compact: add metric thanos_compactor_iterations_total Add a metric called thanos_compactor_iterations_total that is a counter and will get increased by 1 every time an iteration gets executed successfully. This is needed in case --wait is specified and then our Compactor could die. We need to alert on such a case. One thing would be to alert on a restart of the container however that is not the most flexible thing - it might still be OK as long as it successfully finishes its job in time. However, it is impossible to know that exact part ATM. Add this metric so that users could add alerts like: ``` rate(thanos_compactor_iterations_total[1d]) == 0 FOR 3d ``` Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com> * CHANGELOG: add entry Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com> * compact: simplify wait check Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com> * cmd: thanos: compact: remove wait check Let's register the metric no matter what since if it is run as a batch job then this metric does not matter either way. Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com> * CHANGELOG: add period Add a period at the end of an item in the CHANGELOG to keep it uniform. Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>
- Loading branch information