Skip to content

Commit

Permalink
Merge branch 'main' into lambda-expirationExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
pmillett authored Dec 9, 2024
2 parents 8bb0fa5 + 9994ec0 commit e0bb242
Show file tree
Hide file tree
Showing 16 changed files with 256 additions and 6 deletions.
5 changes: 5 additions & 0 deletions entity-types/ext-onboarding_application/definition.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
domain: EXT
type: ONBOARDING_APPLICATION

configuration:
entityExpirationTime: FOUR_HOURS
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
6 changes: 6 additions & 0 deletions entity-types/ngep-git_hub_integration/definition.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
domain: NGEP
type: GIT_HUB_INTEGRATION

configuration:
entityExpirationTime: MANUAL
alertable: false
6 changes: 6 additions & 0 deletions entity-types/ngep-pipeline_cloud_rule/definition.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
domain: NGEP
type: PIPELINE_CLOUD_RULE

configuration:
entityExpirationTime: MANUAL
alertable: false
6 changes: 6 additions & 0 deletions entity-types/ngep-security_finding/definition.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
domain: NGEP
type: SECURITY_FINDING

configuration:
entityExpirationTime: MANUAL
alertable: false
2 changes: 1 addition & 1 deletion entity-types/ngep-team/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ type: TEAM

configuration:
entityExpirationTime: MANUAL
alertable: true
alertable: false
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ type: TEAMS_ORGANIZATION_SETTINGS

configuration:
entityExpirationTime: MANUAL
alertable: true
alertable: false
16 changes: 16 additions & 0 deletions relationships/candidates/AWSAPPSYNCAPI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
category: AWSAPPSYNCAPI
lookups:
- entityTypes:
- domain: INFRA
type: AWSAPPSYNCAPI
tags:
matchingMode: ALL
predicates:
- tagKeys: ["Http.Url"]
field: httpUrl
onMatch:
onMultipleMatches: RELATE_ALL
onMiss:
action: CREATE_UNINSTRUMENTED
uninstrumented:
type: AWSAPPSYNCAPI
16 changes: 16 additions & 0 deletions relationships/candidates/AWSREDSHIFTCLUSTER.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
category: AWSREDSHIFTCLUSTER
lookups:
- entityTypes:
- domain: INFRA
type: AWSREDSHIFTCLUSTER
tags:
matchingMode: ALL
predicates:
- tagKeys: ["configuration.endpoint.address"]
field: cloudEndpointAddress
onMatch:
onMultipleMatches: RELATE_ALL
onMiss:
action: CREATE_UNINSTRUMENTED
uninstrumented:
type: AWSREDSHIFTCLUSTER
22 changes: 22 additions & 0 deletions relationships/synthesis/APM-APPLICATION-to-INFRA-AWSAPPSYNCAPI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
relationships:
- name: apmCallsInfraAppSyncApi
version: "1"
origins:
- Distributed Tracing
conditions:
- attribute: eventType
anyOf: [ "Span" ]
- attribute: peer.hostname
regex: '[a-z]+\d*[a-z]*\.appsync-api\.[a-z]{2}-[a-z]+-\d+\.amazonaws\.com'
relationship:
expires: P75M
relationshipType: CALLS
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: AWSAPPSYNCAPI
fields:
- field: httpUrl
attribute: Http.Url
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ relationships:
conditions:
- attribute: eventType
anyOf: [ "Span" ]
- attribute: db.system
anyOf: [ "elasticsearch" ]
- attribute: server.address
regex: ^search-[a-zA-Z0-9-]+-[a-zA-Z0-9]+\.([a-zA-Z0-9-]+)\.es\.amazonaws\.com$
relationship:
expires: P75M
relationshipType: CALLS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ relationships:
- attribute: cloud.platform
anyOf: [ "aws_kinesis_data_streams"]
- attribute: cloud.resource_id
regex: "^arn:aws:kinesis:([^:]*):([^:]*):stream\/([^:]*)"
regex: "^arn:aws:kinesis:([^:]*):([^:]*):stream/([^:]*)"
relationship:
expires: P75M
relationshipType: CALLS
Expand All @@ -21,4 +21,4 @@ relationships:
candidateCategory: AWSKINESISSTREAM
fields:
- field: cloudResourceId
attribute: cloud.resource_id
attribute: cloud.resource_id
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
relationships:
- name: apmCallsInfraKinesisDeliveryStream
version: "1"
origins:
- Distributed Tracing
conditions:
- attribute: eventType
anyOf: [ "Span" ]
- attribute: cloud.platform
anyOf: [ "aws_kinesis_delivery_streams" ]
- attribute: cloud.resource_id
regex: "^arn:aws:firehose:([^:]*):([^:]*):deliverystream\/([^:]*)"
relationship:
expires: P75M
relationshipType: CALLS
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: AWSKINESISDELIVERYSTREAM
fields:
- field: cloudResourceId
attribute: cloud.resource_id
24 changes: 24 additions & 0 deletions relationships/synthesis/EXT-SERVICE-to-INFRA-AWSAPPSYNCAPI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
relationships:
- name: extServiceCallsInfraAppSyncApi
version: "1"
origins:
- Distributed Tracing
conditions:
- attribute: eventType
anyOf: [ "Span" ]
- attribute: instrumentation.provider
anyOf: [ "opentelemetry" ]
- attribute: net.peer.name
regex: '[a-z]+\d*[a-z]*\.appsync-api\.[a-z]{2}-[a-z]+-\d+\.amazonaws\.com'
relationship:
expires: P75M
relationshipType: CALLS
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: AWSAPPSYNCAPI
fields:
- field: httpUrl
attribute: Http.Url
24 changes: 24 additions & 0 deletions relationships/synthesis/EXT-SERVICE-to-INFRA-REDSHIFTCLUSTER.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
relationships:
- name: extServiceCallsInfraRedshiftCluster
version: "1"
origins:
- Distributed Tracing
conditions:
- attribute: eventType
anyOf: [ "Span" ]
- attribute: instrumentation.provider
anyOf: [ "opentelemetry" ]
- attribute: rpc.service
anyOf: [ "Redshift" ]
relationship:
expires: P75M
relationshipType: CALLS
source:
extractGuid:
attribute: entity.guid
target:
lookupGuid:
candidateCategory: AWSREDSHIFTCLUSTER
fields:
- field: cloudEndpointAddress
attribute: configuration.endpoint.address

0 comments on commit e0bb242

Please sign in to comment.