feat: aggregate cluster statistics and send to influx with scheduled tasks worker
This commit is contained in:
@@ -40,46 +40,6 @@ public static class BotMetrics
|
||||
Context = "Bot"
|
||||
};
|
||||
|
||||
public static GaugeOptions MembersTotal => new()
|
||||
{
|
||||
Name = "Members total",
|
||||
MeasurementUnit = Unit.None,
|
||||
Context = "Bot"
|
||||
};
|
||||
|
||||
public static GaugeOptions MembersOnline => new()
|
||||
{
|
||||
Name = "Members online",
|
||||
MeasurementUnit = Unit.None,
|
||||
Context = "Bot"
|
||||
};
|
||||
|
||||
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 ShardLatency => new()
|
||||
{
|
||||
Name = "Shard Latency",
|
||||
Context = "Bot"
|
||||
};
|
||||
|
||||
public static GaugeOptions ShardsConnected => new()
|
||||
{
|
||||
Name = "Shards Connected",
|
||||
Context = "Bot",
|
||||
MeasurementUnit = Unit.Connections
|
||||
};
|
||||
|
||||
public static MeterOptions WebhookCacheMisses => new()
|
||||
{
|
||||
Name = "Webhook cache misses",
|
||||
@@ -87,13 +47,6 @@ public static class BotMetrics
|
||||
MeasurementUnit = Unit.Calls
|
||||
};
|
||||
|
||||
public static GaugeOptions WebhookCacheSize => new()
|
||||
{
|
||||
Name = "Webhook Cache Size",
|
||||
Context = "Bot",
|
||||
MeasurementUnit = Unit.Items
|
||||
};
|
||||
|
||||
public static TimerOptions WebhookResponseTime => new()
|
||||
{
|
||||
Name = "Webhook Response Time",
|
||||
|
||||
Reference in New Issue
Block a user