Pre-initialized labels for slash command metrics for immediate visibility.
This commit is contained in:
@@ -57,11 +57,19 @@ PINGME = Counter(
|
|||||||
"/pingme command outcomes",
|
"/pingme command outcomes",
|
||||||
["outcome"],
|
["outcome"],
|
||||||
)
|
)
|
||||||
|
PINGME.labels(outcome="opted_in")
|
||||||
|
PINGME.labels(outcome="opted_out")
|
||||||
|
|
||||||
FORGETME = Counter(
|
FORGETME = Counter(
|
||||||
"crabstero_forgetme_total",
|
"crabstero_forgetme_total",
|
||||||
"/forgetme command outcomes",
|
"/forgetme command outcomes",
|
||||||
["outcome"],
|
["outcome"],
|
||||||
)
|
)
|
||||||
|
FORGETME.labels(outcome="completed")
|
||||||
|
FORGETME.labels(outcome="cancelled")
|
||||||
|
FORGETME.labels(outcome="timeout")
|
||||||
|
FORGETME.labels(outcome="already_forgotten")
|
||||||
|
|
||||||
ERRORS = Counter(
|
ERRORS = Counter(
|
||||||
"crabstero_errors_total",
|
"crabstero_errors_total",
|
||||||
"Unhandled exceptions by source",
|
"Unhandled exceptions by source",
|
||||||
|
|||||||
Reference in New Issue
Block a user