gotm icon indicating copy to clipboard operation
gotm copied to clipboard

Cache .WithLabelValues results?

Open JustinAzoff opened this issue 8 years ago • 0 comments

Instead of

          mReceived.WithLabelValues(intf, workerString).Set(..
          mDropped.WithLabelValues(intf, workerString).Set(..
          mIfDropped.WithLabelValues(intf, workerString).Set(..

cache the result of WithLabelValues at the start of the worker.

JustinAzoff avatar Sep 18 '17 22:09 JustinAzoff