Skip to content

Commit

Permalink
Change tags for messages_sent metric (#1658)
Browse files Browse the repository at this point in the history
  • Loading branch information
varunpuranik authored Aug 31, 2019
1 parent 0301448 commit 6376d92
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ static class Metrics
static readonly IMetricsCounter MessagesMeter = Util.Metrics.Metrics.Instance.CreateCounter(
"messages_sent",
"Messages sent to module",
new List<string> { "protocol", "from", "to" });
new List<string> { "from", "to" });

public static void AddMessage(IIdentity identity, IMessage message)
{
string from = message.GetSenderId();
string to = identity.Id;
MessagesMeter.Increment(1, new[] { "amqp", from, to });
MessagesMeter.Increment(1, new[] { from, to });
}
}
}
Expand Down

0 comments on commit 6376d92

Please sign in to comment.