feat: aggregate cluster statistics and send to influx with scheduled tasks worker

This commit is contained in:
spiral
2022-03-14 23:33:22 -04:00
parent 857e20b601
commit 8909330db2
8 changed files with 106 additions and 69 deletions

View 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
};
}