aws / amazon-vpc-cni-k8s

Networking plugin repository for pod networking in Kubernetes using Elastic Network Interfaces on AWS
Apache License 2.0
2.28k stars 743 forks source link

utils prometheusmetrics: convert gauges to counters #3093

Closed dshehbaj closed 3 weeks ago

dshehbaj commented 4 weeks ago

What type of PR is this?

Bug Fix

Which issue does this PR fix?:

3031

What does this PR do / Why do we need it?: Bug fix

Testing done on this change:

Added unit tests confirming the behavior of the counters.

Will this PR introduce any new dependencies?:

No

Will this break upgrades or downgrades? Has updating a running cluster been tested?: No

Does this change require updates to the CNI daemonset config files to work?:

No

Does this PR introduce any user-facing change?:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.