Skip to content

Commit

Permalink
Add units to LATENCY_GAUGE (#15)
Browse files Browse the repository at this point in the history
Co-authored-by: Apollo-Roboto <[email protected]>
  • Loading branch information
2br-2b and Apollo-Roboto authored Jun 12, 2024
1 parent 837efcc commit 435a01c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions discord/ext/prometheus/prometheus_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
["shard"],
)
LATENCY_GAUGE = Gauge(
METRIC_PREFIX + "latency",
"latency to Discord",
["shard"],
METRIC_PREFIX + 'latency',
'latency to Discord',
['shard'],
unit="seconds",
)
ON_INTERACTION_COUNTER = Counter(
METRIC_PREFIX + "event_on_interaction",
Expand Down

0 comments on commit 435a01c

Please sign in to comment.