Skip to content

Commit

Permalink
Change tag names to snake_case
Browse files Browse the repository at this point in the history
by request of `promtool check metrics`
  • Loading branch information
miniduikboot committed May 23, 2024
1 parent 63b3607 commit 8999cc8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Boot.Metrics/ClientMetrics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ private IEnumerable<Measurement<int>> CalculateClientCount()
{
var tags = new TagList
{
{ "Language", client.Language.ToString() },
{ "Platform", client.PlatformSpecificData.Platform.ToString() },
{ "GameVersion", client.GameVersion },
{ "ChatMode", client.ChatMode },
{ "language", client.Language.ToString() },
{ "platform", client.PlatformSpecificData.Platform.ToString() },
{ "game_version", client.GameVersion },
{ "chat_mode", client.ChatMode },
};

_state.TryGetValue(tags, out var count);
Expand Down
8 changes: 4 additions & 4 deletions Boot.Metrics/GameMetrics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ private IEnumerable<Measurement<int>> CalculateGameCount()

var tags = new TagList
{
{ "GameMode", game.Options.GameMode.ToString() },
{ "Map", game.Options.Map.ToString() },
{ "PlayerCount", playerCount },
{ "Public", game.IsPublic },
{ "game_mode", game.Options.GameMode.ToString() },
{ "map", game.Options.Map.ToString() },
{ "player_count", playerCount },
{ "public", game.IsPublic },
};

_state.TryGetValue(tags, out var count);
Expand Down

0 comments on commit 8999cc8

Please sign in to comment.