when removing a nonexistent image , should not be recorded on the metric 'imageActionCounter'.
Ⅱ. Describe what happened
when removing a nonexistent image , the metric 'imageActionCounter' with label 'delete' will add one, but the metric 'ImageSuccessActionsCounter' will not add. This makes it noisy to monitor the success rate of deleting image , which means that the success rate is reduced by deleting the non-existing image, but this is not a real problem.
Ⅲ. Describe what you expected to happen
when removing a nonexistent image, the metric 'imageActionCounter' will not add. The metric is recorded only when it actually performs a delete operation.
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Ⅰ. Issue Description
when removing a nonexistent image , should not be recorded on the metric 'imageActionCounter'.
Ⅱ. Describe what happened
when removing a nonexistent image , the metric 'imageActionCounter' with label 'delete' will add one, but the metric 'ImageSuccessActionsCounter' will not add. This makes it noisy to monitor the success rate of deleting image , which means that the success rate is reduced by deleting the non-existing image, but this is not a real problem.
Ⅲ. Describe what you expected to happen
when removing a nonexistent image, the metric 'imageActionCounter' will not add. The metric is recorded only when it actually performs a delete operation.
Ⅳ. How to reproduce it (as minimally and precisely as possible)
1. 2. 3.
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
pouch version
):uname -a
):