From 435a01c01cca6a73aa29514f11a8a22d580303a5 Mon Sep 17 00:00:00 2001 From: John Wuller <847785bd-d466-47cd-a536-eae4096d241d@anonaddy.me> Date: Tue, 11 Jun 2024 21:25:18 -0500 Subject: [PATCH] Add units to LATENCY_GAUGE (#15) Co-authored-by: Apollo-Roboto <41392253+Apollo-Roboto@users.noreply.github.com> --- discord/ext/prometheus/prometheus_cog.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/discord/ext/prometheus/prometheus_cog.py b/discord/ext/prometheus/prometheus_cog.py index e7eb91b..b33d0c7 100644 --- a/discord/ext/prometheus/prometheus_cog.py +++ b/discord/ext/prometheus/prometheus_cog.py @@ -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",