Skip to content

Commit

Permalink
Merge pull request #25 from massemanet/add-missing-error
Browse files Browse the repository at this point in the history
add clause for error stat
  • Loading branch information
RoadRunnr authored Apr 3, 2024
2 parents 949eb23 + 6a9229e commit e6653f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/prometheus_diameter_collector.erl
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ gather_statistics(SvcName, Peer, S, Apps, Stats) ->
{type, msg_type(Msg)},
{msg, msg_name(Msg, Apps)},
{rc, RC}]], Cnt, S1);
({{_, _, error}, Cnt}, S1) ->
add([errors,[{svc, SvcName}, {peer, Peer},
{error, unknown}]], Cnt, S1);
({{Msg, Direction, Result}, Cnt}, S1) when is_atom(Result) ->
add([messages, [{svc, SvcName}, {peer, Peer},
{direction, Direction},
Expand Down

0 comments on commit e6653f9

Please sign in to comment.