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
13
PluralKit.Core/CoreMetrics.cs
Normal file
13
PluralKit.Core/CoreMetrics.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using App.Metrics;
|
||||
using App.Metrics.Gauge;
|
||||
|
||||
namespace PluralKit.Core
|
||||
{
|
||||
public static class CoreMetrics
|
||||
{
|
||||
public static GaugeOptions SystemCount => new GaugeOptions { Name = "Systems", MeasurementUnit = Unit.Items};
|
||||
public static GaugeOptions MemberCount => new GaugeOptions { Name = "Members", MeasurementUnit = Unit.Items };
|
||||
public static GaugeOptions MessageCount => new GaugeOptions { Name = "Messages", MeasurementUnit = Unit.Items };
|
||||
public static GaugeOptions SwitchCount => new GaugeOptions { Name = "Switches", MeasurementUnit = Unit.Items };
|
||||
}
|
||||
}
|
||||
|
|
@ -5,6 +5,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="App.Metrics" Version="3.1.0" />
|
||||
<PackageReference Include="Dapper" Version="1.60.6" />
|
||||
<PackageReference Include="Dapper.Contrib" Version="1.60.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.2.0" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue