Skip to content

Commit 435a01c

Browse files
Add units to LATENCY_GAUGE (#15)
Co-authored-by: Apollo-Roboto <[email protected]>
1 parent 837efcc commit 435a01c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

discord/ext/prometheus/prometheus_cog.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
["shard"],
1414
)
1515
LATENCY_GAUGE = Gauge(
16-
METRIC_PREFIX + "latency",
17-
"latency to Discord",
18-
["shard"],
16+
METRIC_PREFIX + 'latency',
17+
'latency to Discord',
18+
['shard'],
19+
unit="seconds",
1920
)
2021
ON_INTERACTION_COUNTER = Counter(
2122
METRIC_PREFIX + "event_on_interaction",

0 commit comments

Comments
 (0)