Skip to content

Commit

Permalink
update meter
Browse files Browse the repository at this point in the history
  • Loading branch information
area363 committed Sep 6, 2023
1 parent a2da691 commit e9a9a10
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions NineChronicles.Headless/ActionEvaluationPublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,17 @@ public ActionEvaluationPublisher(
},
description: "Number of RPC clients connected by device.");
meter.CreateObservableGauge(
"ninechronicles_clients_count_by_ip",
"ninechronicles_clients_count_by_ips",
() => new[]
{
new Measurement<int>(
GetClientsCountByIp(10),
new KeyValuePair<string, object?>("account-type", "multi-account")),
new KeyValuePair<string, object?>("account-type", "multi")),
new Measurement<int>(
GetClientsCountByIp(0) - GetClientsCountByIp(10),
new KeyValuePair<string, object?>("account-type", "organic-account")),
GetClientsCountByIp(0),
new KeyValuePair<string, object?>("account-type", "all")),
},
description: "Number of RPC clients connected by device.");
description: "Number of RPC clients connected grouped by ips.");

ActionEvaluationHub.OnClientDisconnected += RemoveClient;
}
Expand Down

0 comments on commit e9a9a10

Please sign in to comment.