Skip to content

Commit

Permalink
Add packet counting metric
Browse files Browse the repository at this point in the history
  • Loading branch information
LVala committed Aug 21, 2023
1 parent eba2252 commit 9dd1898
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/rel_app.ex
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ defmodule Rel.App do
measurement: :inbound,
unit: :byte
),
counter(
"turn.allocations.peer_inbound_traffic.packets.total",
event_name: [:allocations, :peer],
measurement: :inbound
),

# telemetry poller
last_value(
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule Rel.MixProject do
def application do
[
mod: {Rel.App, []},
extra_applications: [:logger, :crypto, :wx, :runtime_tools, :observer]
extra_applications: [:logger, :crypto]
]
end

Expand Down

0 comments on commit 9dd1898

Please sign in to comment.