Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Golden and Summary metrics for Media Streaming #1842

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)*100) / (sum(timeSinceLastHeartbeat) - filter(sum(timeSincePaused), where actionName = 'CONTENT_RESUME') - filter(sum(timeSinceSeekBegin), where actionName = 'CONTENT_SEEK_END'))
from: VideoAction
adRebufferingRatio:
title: Ad Rebuffering Ratio (%)
unit: PERCENTAGE
query:
select: (sum(timeSinceAdBufferBegin)*100) / (sum(timeSinceLastAdHeartbeat) - filter(sum(timeSinceAdPaused), where actionName = 'AD_RESUME') - filter(sum(timeSinceAdSeekBegin), where actionName = 'AD_SEEK_END'))
from: VideoAdAction
averageBitrate:
title: Average Bitrate (B/s)
unit: BYTES_PER_SECOND
query:
select: average(contentBitrate / 16) + average(contentRenditionBitrate / 16)
from: VideoAction
adAverageBitrate:
title: Ad Average Bitrate (B/s)
unit: BYTES_PER_SECOND
query:
select: average(adBitrate / 16)
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: (filter(count(*), WHERE actionName = 'CONENT_ERROR' and contentPlayhead = 0) * 100) / (FROM VideoAction SELECT count(*) WHERE actionName = 'CONENT_START' and contentPlayhead=0)
from: VideoErrorAction
adStartFailures:
title: Ad Start Failures
unit: PERCENTAGE
query:
select: (filter(count(*), WHERE actionName = 'AD_ERROR' and adPlayhead = 0 ) * 100) / (FROM VideoAdAction SELECT count(*) WHERE actionName = 'AD_START' and adPlayhead = 0)
from: VideoErrorAction
videoPlaybackFailures:
title: Video Playback Failures
unit: PERCENTAGE
query:
select: count(*) * 100 / (FROM VideoAction SELECT count(*) WHERE actionName = 'CONENT_REQUEST') WHERE actionName = 'CONTENT_ERROR' and contentPlayhead > 0
from: VideoErrorAction
adPlaybackFailures:
title: Ad Playback Failures
unit: PERCENTAGE
query:
select: count(*) * 100 / (FROM VideoAdAction SELECT count(*) WHERE actionName = 'AD_REQUEST') WHERE actionName = 'AD_ERROR' and adPlayhead > 0
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 (%)
averageBitrate:
goldenMetric: averageBitrate
unit: BYTES_PER_SECOND
title: Average Bitrate (B/s)
adAverageBitrate:
goldenMetric: adAverageBitrate
unit: BYTES_PER_SECOND
title: Ad Average Bitrate (B/s)
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
Loading