feat: aggregate cluster statistics and send to influx with scheduled tasks worker
This commit is contained in:
26
PluralKit.ScheduledTasks/Metrics.cs
Normal file
26
PluralKit.ScheduledTasks/Metrics.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using App.Metrics;
|
||||
using App.Metrics.Gauge;
|
||||
|
||||
public static class Metrics
|
||||
{
|
||||
public static GaugeOptions Guilds => new()
|
||||
{
|
||||
Name = "Guilds",
|
||||
MeasurementUnit = Unit.None,
|
||||
Context = "Bot"
|
||||
};
|
||||
public static GaugeOptions Channels => new()
|
||||
{
|
||||
Name = "Channels",
|
||||
MeasurementUnit = Unit.None,
|
||||
Context = "Bot"
|
||||
};
|
||||
|
||||
public static GaugeOptions WebhookCacheSize => new()
|
||||
{
|
||||
Name = "Webhook Cache Size",
|
||||
Context = "Bot",
|
||||
MeasurementUnit = Unit.Items
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user