-
Notifications
You must be signed in to change notification settings - Fork 540
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(proto): add Pass field to PushPullEvent message for tracking rat…
…elimit decision chore(proto): update proto file with new fields and messages feat(proto): add pass field to PushPullEvent message for ratelimit tracking feat(metrics): add ratelimitAccuracy metric to track ratelimit accuracy feat(pushpull): update ratelimitAccuracy metric based on ratelimit pass result
- Loading branch information
Showing
4 changed files
with
76 additions
and
42 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package ratelimit | ||
|
||
import ( | ||
"github.com/prometheus/client_golang/prometheus" | ||
"github.com/prometheus/client_golang/prometheus/promauto" | ||
) | ||
|
||
var ratelimitAccuracy = promauto.NewCounterVec(prometheus.CounterOpts{ | ||
Namespace: "agent", | ||
Subsystem: "ratelimit", | ||
Name: "ratelimit_accuracy", | ||
}, []string{"correct"}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters