Skip to content

Commit d6594fe

Browse files
Updated discord_latency metrics in dashboard and readme (#17)
1 parent 435a01c commit d6594fe

File tree

4 files changed

+141
-112
lines changed

4 files changed

+141
-112
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pip install discord-ext-prometheus
2020
| Name | Documentation | Labels |
2121
|--------------------------------|-----------------------------------------------|-----------------------------------|
2222
| `discord_connected` | Determines if the bot is connected to Discord | `shard` |
23-
| `discord_latency` | Latency to Discord | `shard` |
23+
| `discord_latency_seconds` | Latency to Discord | `shard` |
2424
| `discord_event_on_interaction` | Amount of interactions called by users | `shard`, `interaction`, `command` |
2525
| `discord_event_on_command` | Amount of commands called by users | `shard`, `command` |
2626
| `discord_stat_total_guilds` | Amount of guild this bot is a member of | None |

discord/ext/prometheus/prometheus_cog.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
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"],
1919
unit="seconds",
2020
)
2121
ON_INTERACTION_COUNTER = Counter(

0 commit comments

Comments
 (0)