Skip to content

Commit

Permalink
Updated discord_latency metrics in dashboard and readme (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollo-Roboto authored Jun 12, 2024
1 parent 435a01c commit d6594fe
Show file tree
Hide file tree
Showing 4 changed files with 141 additions and 112 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pip install discord-ext-prometheus
| Name | Documentation | Labels |
|--------------------------------|-----------------------------------------------|-----------------------------------|
| `discord_connected` | Determines if the bot is connected to Discord | `shard` |
| `discord_latency` | Latency to Discord | `shard` |
| `discord_latency_seconds` | Latency to Discord | `shard` |
| `discord_event_on_interaction` | Amount of interactions called by users | `shard`, `interaction`, `command` |
| `discord_event_on_command` | Amount of commands called by users | `shard`, `command` |
| `discord_stat_total_guilds` | Amount of guild this bot is a member of | None |
Expand Down
6 changes: 3 additions & 3 deletions discord/ext/prometheus/prometheus_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
["shard"],
)
LATENCY_GAUGE = Gauge(
METRIC_PREFIX + 'latency',
'latency to Discord',
['shard'],
METRIC_PREFIX + "latency",
"latency to Discord",
["shard"],
unit="seconds",
)
ON_INTERACTION_COUNTER = Counter(
Expand Down
Loading

0 comments on commit d6594fe

Please sign in to comment.