Farfetch / loadshedding

A .NET library created to assist the applications in applying LoadShedding techniques and making it easy to configure it
https://farfetch.github.io/loadshedding/
MIT License
88 stars 10 forks source link

feat: Inc and Dec gauge metrics #27

Closed tiagodaraujo closed 5 months ago

tiagodaraujo commented 5 months ago

Description

The Prometheus documentation suggests using the Inc and Dec method for a queue problem as we have here.

As I mentioned in #22, it is possible to replicate using only unit tests.

This commit changes the use of gauge.Set to gauge.Inc and gauge.Dec in the queue and concurrency events.

Fixes #22

How Has This Been Tested?

Run the integration tests.

Checklist

Disclaimer

By sending us your contributions, you are agreeing that your contribution is made subject to the terms of our Contributor Ownership Statement