mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Add basic WIP metrics system
This commit is contained in:
parent
a2040f959d
commit
2d58705e85
6 changed files with 90 additions and 9 deletions
16
PluralKit.Bot/BotMetrics.cs
Normal file
16
PluralKit.Bot/BotMetrics.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using App.Metrics;
|
||||
using App.Metrics.Gauge;
|
||||
using App.Metrics.Meter;
|
||||
|
||||
namespace PluralKit.Bot
|
||||
{
|
||||
public static class BotMetrics
|
||||
{
|
||||
public static MeterOptions MessagesReceived => new MeterOptions {Name = "Messages processed", MeasurementUnit = Unit.Events, RateUnit = TimeUnit.Seconds, Context = "Bot"};
|
||||
public static MeterOptions MessagesProxied => new MeterOptions {Name = "Messages proxied", MeasurementUnit = Unit.Events, RateUnit = TimeUnit.Seconds, Context = "Bot"};
|
||||
public static MeterOptions CommandsRun => new MeterOptions {Name = "Commands run", MeasurementUnit = Unit.Commands, RateUnit = TimeUnit.Seconds, Context = "Bot"};
|
||||
public static GaugeOptions MembersOnline => new GaugeOptions {Name = "Members online", MeasurementUnit = Unit.None, Context = "Bot"};
|
||||
|
||||
public static GaugeOptions DatabasePoolSize => new GaugeOptions { Name = "Database pool size", Context = "Database" };
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue