mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(bot): add stats tracking for dm channel cache hits/misses
This commit is contained in:
parent
0f47042dd1
commit
1b5a90f612
2 changed files with 33 additions and 1 deletions
|
|
@ -22,6 +22,27 @@ public static class BotMetrics
|
|||
Context = "Bot"
|
||||
};
|
||||
|
||||
public static MeterOptions LocalDMCacheHits => new()
|
||||
{
|
||||
Name = "Cluster local DM Cache Hits",
|
||||
MeasurementUnit = Unit.Calls,
|
||||
Context = "Bot"
|
||||
};
|
||||
|
||||
public static MeterOptions DatabaseDMCacheHits => new()
|
||||
{
|
||||
Name = "Database DM Cache Hits",
|
||||
MeasurementUnit = Unit.Calls,
|
||||
Context = "Bot"
|
||||
};
|
||||
|
||||
public static MeterOptions DMCacheMisses => new()
|
||||
{
|
||||
Name = "DM Cache Misses",
|
||||
MeasurementUnit = Unit.Calls,
|
||||
Context = "Bot"
|
||||
};
|
||||
|
||||
public static MeterOptions CommandsRun => new()
|
||||
{
|
||||
Name = "Commands run",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue