feat(bot): add stats tracking for dm channel cache hits/misses

This commit is contained in:
spiral
2022-06-10 18:08:56 -04:00
parent 0f47042dd1
commit 1b5a90f612
2 changed files with 33 additions and 1 deletions

View File

@@ -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",