mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat: Add Prometheus metrics for requests
Adds gauge for requests by type and status Signed-off-by: moson <moson@archlinux.org>
This commit is contained in:
parent
e45878a058
commit
375895f080
3 changed files with 31 additions and 3 deletions
|
@ -24,6 +24,12 @@ PACKAGES = Gauge(
|
|||
["state"],
|
||||
multiprocess_mode="livemax",
|
||||
)
|
||||
REQUESTS = Gauge(
|
||||
"aur_requests",
|
||||
"Number of AUR requests by type and status",
|
||||
["type", "status"],
|
||||
multiprocess_mode="livemax",
|
||||
)
|
||||
|
||||
|
||||
def instrumentator():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue