Skip to content

Commit

Permalink
Added FlushInterval to DogStatd configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gonace committed Nov 6, 2024
1 parent 1e3f38d commit 15dfd41
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion laget.Auditing.Persistor/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Microsoft.Extensions.Hosting;
using StatsdClient;
using StatsdClient.Extensions.Hosting;
using System;

namespace laget.Auditing.Persistor
{
Expand All @@ -19,7 +20,11 @@ internal static void Main(string[] args) =>
.UseDogStatsd(new StatsdConfig
{
Prefix = "auditing",
StatsdServerName = "stats.laget.se"
StatsdServerName = "stats.laget.se",
ClientSideAggregation = new ClientSideAggregationConfig
{
FlushInterval = TimeSpan.FromMinutes(1)
}
});
}
}

0 comments on commit 15dfd41

Please sign in to comment.