Initialize delivery metrics before pushing metrics
What does this MR do?
Initialize delivery metrics before pushing metrics
New buckets added by !1503 (merged) have was no previous value making the rate of change to be '0' as well.
We worked around this by initializing the metrics before pushing them to the delivery pushgateaway. A new class was added to return the hash with all the buckets initialized to '0' unless they had already been set.
Related to gitlab-com/gl-infra/delivery#1898 (closed) and to gitlab-com/gl-infra/delivery#1915 (closed)
Author Check-list
- [-] Has documentation been updated?
Edited by Mayra Cabrera