rename prometheus metrics and vars

Make names a little more consistent and align with naming docs at
https://prometheus.io/docs/practices/naming/
This commit is contained in:
Will Norris 2020-02-24 08:16:36 -08:00
parent 4e97a7ea8f
commit 7f91379373
3 changed files with 22 additions and 19 deletions

View file

@ -275,7 +275,7 @@ func exifOrientation(r io.Reader) (opt Options) {
// transformImage modifies the image m based on the transformations specified
// in opt.
func transformImage(m image.Image, opt Options) image.Image {
timer := prometheus.NewTimer(imageTransformationSummary)
timer := prometheus.NewTimer(metricTransformationDuration)
defer timer.ObserveDuration()
// Parse crop and resize parameters before applying any transforms.