Skip to content

Commit

Permalink
feat: Add Golden and Summary metrics for Media Streaming (#1803)
Browse files Browse the repository at this point in the history
Co-authored-by: nr-cmorenoin <[email protected]>
  • Loading branch information
avinash-newrelic and nr-cmorenoin authored Dec 4, 2024
1 parent c8e0ec3 commit 62dca70
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 0 deletions.
61 changes: 61 additions & 0 deletions entity-types/media_streaming-video/golden_metrics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
rebufferingRatio:
title: Video Rebuffering Ratio (%)
unit: PERCENTAGE
query:
select : sum(timeSinceBufferBegin) / sum(timeSinceLastHeartbeat) - filter(sum(timeSincePaused), where actionName = 'CONTENT_RESUME' - filter(sum(timeSinceSeekBegin), where actionName = 'CONTENT_SEEK_END')) * 100
from: VideoAction
adRebufferingRatio:
title: Ad Rebuffering Ratio (%)
unit: PERCENTAGE
query:
select: sum(timeSinceAdBufferBegin) / sum(timeSinceLastAdHeartbeat) - filter(sum(timeSinceAdPaused), where actionName = 'AD_RESUME' - filter(sum(timeSinceAdSeekBegin), where actionName = 'AD_SEEK_END')) * 100
from: VideoAdAction
averageBitrate:
title: Average Bitrate
unit: BITS_PER_SECOND
query:
select: average(contentBitrate)
from: VideoAction
adAverageBitrate:
title: Ad Average Bitrate
unit: BITS_PER_SECOND
query:
select: average(adBitrate)
from: VideoAdAction
averageStartTimeS:
title: Average Start Time (s)
unit: SECONDS
query:
select: average(timeSinceRequested)
from: VideoAction
where: actionName = 'CONTENT_START'
adAverageStartTimeS:
title: Ad Average Start Time (s)
unit: SECONDS
query:
select: average(timeSinceAdRequested)
from: VideoAdAction
videoStartFailures:
title: Video Start Failures
unit: PERCENTAGE
query:
select: count(*) WHERE actionName = 'CONENT_ERROR' and contentPlayhead = 0 / (FROM VideoAction SELECT count(*) WHERE actionName = 'CONENT_START' and contentPlayhead=0) * 100
from: VideoErrorAction
adStartFailures:
title: Ad Start Failures
unit: PERCENTAGE
query:
select: count(*) WHERE actionName = 'AD_ERROR' and adPlayhead = 0 / (FROM VideoAdAction SELECT count(*) WHERE actionName = 'AD_START' and adPlayhead = 0) * 100
from: VideoErrorAction
videoPlaybackFailures:
title: Video Playback Failures
unit: PERCENTAGE
query:
select: count(*) WHERE actionName = 'CONTENT_ERROR' and contentPlayhead > 0 / (FROM VideoAction SELECT count(*) WHERE actionName = 'CONENT_REQUEST') * 100
from: VideoErrorAction
adPlaybackFailures:
title: Ad Playback Failures
unit: PERCENTAGE
query:
select: count(*) WHERE actionName = 'AD_ERROR' and adPlayhead > 0 / (FROM VideoAdAction SELECT count(*) WHERE actionName = 'AD_REQUEST') * 100
from: VideoErrorAction
40 changes: 40 additions & 0 deletions entity-types/media_streaming-video/summary_metrics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
rebufferingRatio:
goldenMetric: rebufferingRatio
unit: PERCENTAGE
title: Video Rebuffering Ratio (%)
adRebufferingRation:
goldenMetric: adRebufferingRatio
unit: PERCENTAGE
title: Ad Rebuffering Ratio (%)
averageBitrateMbps:
goldenMetric: averageBitrateMbps
unit: BITS_PER_SECOND
title: Average Bitrate (Mbps)
adAverageBitrateMbps:
goldenMetric: adAverageBitrateMbps
unit: BITS_PER_SECOND
title: Ad Average Bitrate (Mbps)
averageStartTimeS:
goldenMetric: averageStartTimeS
unit: SECONDS
title: Average Start Time (s)
adAverageStartTimeS:
goldenMetric: adAverageStartTimeS
unit: SECONDS
title: Ad Average Start Time (s)
videoStartFailures:
goldenMetric: videoStartFailures
unit: PERCENTAGE
title: Video Start Failures
adStartFailures:
goldenMetric: adStartFailures
unit: PERCENTAGE
title: Ad Start Failures
videoPlaybackFailures:
goldenMetric: videoPlaybackFailures
unit: PERCENTAGE
title: Video Playback Failures
adPlaybackFailures:
goldenMetric: adPlaybackFailures
unit: PERCENTAGE
title: Ad Playback Failures

0 comments on commit 62dca70

Please sign in to comment.