Use promauto to declare and register Prometheus metrics
This MR addresses Issue: #1777 (closed)
There are few other places where we expose registered metrics along with error like in this file. I'm not sure if we should use promauto
for them also.