-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Emit event with RTP packet bitrate * Change bitrate measurements to bytes received * Remove unused alias * Set :use before :require * Move :alias before :require * Emit event on sending FIR * Add keyframe detector to event * Add frame and keyframe detecting in telemetry * Modify emitted telemetry events * Define metrics * Fix handle_pad_removed bug * Start registering events * Adjust to latest membrane_telemetry_metrics change * Update pad options specs * Stop passing frame and keyframe detector via pad options * Split [:packet_arrival, :rtp] event into two separate events * Change events names * Add docs to Membrane.RTP.Metrics module * Fix typo in event name * Change telemetry events names * Changes due to credo issues * Update spec for functions in PayloadFormatResolver * Changes due to dyalizer errors * Update deps branches
- Loading branch information
1 parent
d303b99
commit 600bf5e
Showing
8 changed files
with
173 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
defmodule Membrane.RTP.Metrics do | ||
@moduledoc """ | ||
Defines list of metrics, that can be aggregated based on events from membrane_rtp_plugin. | ||
""" | ||
|
||
@doc """ | ||
Returns list of metrics, that can be aggregated based on events from membrane_rtp_plugin. | ||
""" | ||
@spec metrics() :: [Telemetry.Metrics.t()] | ||
def metrics() do | ||
[ | ||
Telemetry.Metrics.counter( | ||
"inbound-rtp.keyframe_request_sent", | ||
event_name: [Membrane.RTP, :rtcp, :fir, :sent] | ||
), | ||
Telemetry.Metrics.counter( | ||
"inbound-rtp.packets", | ||
event_name: [Membrane.RTP, :packet, :arrival] | ||
), | ||
Telemetry.Metrics.sum( | ||
"inbound-rtp.bytes_received", | ||
event_name: [Membrane.RTP, :packet, :arrival], | ||
measurement: :bytes | ||
), | ||
Telemetry.Metrics.last_value( | ||
"inbound-rtp.encoding", | ||
event_name: [Membrane.RTP, :inbound_track, :new], | ||
measurement: :encoding | ||
), | ||
Telemetry.Metrics.last_value( | ||
"inbound-rtp.ssrc", | ||
event_name: [Membrane.RTP, :inbound_track, :new], | ||
measurement: :ssrc | ||
) | ||
] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters