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

Update entity Roku System to Connected Device System #1936

Merged
merged 3 commits into from
Feb 21, 2025
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT uniqueCount(uuid) from RokuSystem TIMESERIES auto facet deviceModel"
"query": "SELECT uniqueCount(uuid) from ConnectedDeviceSystem TIMESERIES auto facet deviceModel"
}
]
}
Expand All @@ -49,7 +49,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT filter(count(*), WHERE actionName = 'HTTP_ERROR' OR httpCode >= 400) / filter(count(*), where actionName in ('HTTP_CONNECT', 'HTTP_REQUEST')) * 100 as '%'"
"query": "FROM ConnectedDeviceSystem SELECT filter(count(*), WHERE actionName = 'HTTP_ERROR' OR httpCode >= 400) / filter(count(*), where actionName in ('HTTP_CONNECT', 'HTTP_REQUEST')) * 100 as '%'"
}
],
"thresholds": []
Expand All @@ -70,7 +70,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT count(*) where actionName like 'HTTP%' facet origUrl "
"query": "FROM ConnectedDeviceSystem SELECT count(*) where actionName like 'HTTP%' facet origUrl "
}
]
}
Expand All @@ -96,7 +96,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT filter(count(*), WHERE actionName = 'HTTP_ERROR' OR httpCode >= 400) / filter(count(*), where actionName in ('HTTP_CONNECT', 'HTTP_REQUEST')) * 100 as 'HTTP Error Ratio' facet deviceModel timeseries auto"
"query": "FROM ConnectedDeviceSystem SELECT filter(count(*), WHERE actionName = 'HTTP_ERROR' OR httpCode >= 400) / filter(count(*), where actionName in ('HTTP_CONNECT', 'HTTP_REQUEST')) * 100 as 'HTTP Error Ratio' facet deviceModel timeseries auto"
}
]
}
Expand All @@ -122,7 +122,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT count(*) FROM RokuSystem WHERE actionName='HTTP_ERROR' or httpCode >=400 FACET httpCode SINCE 1 month ago TIMESERIES"
"query": "SELECT count(*) FROM ConnectedDeviceSystem WHERE actionName='HTTP_ERROR' or httpCode >=400 FACET httpCode SINCE 1 month ago TIMESERIES"
}
],
"yAxisLeft": {
Expand All @@ -145,7 +145,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT percentile(firstByteTime, 50), percentile(transferTime, 50) timeseries auto"
"query": "FROM ConnectedDeviceSystem SELECT percentile(firstByteTime, 50), percentile(transferTime, 50) timeseries auto"
}
]
}
Expand All @@ -165,7 +165,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT filter(count(*), WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY')) / filter(count(*), WHERE actionName = 'APP_STARTED') * 100 as '%'"
"query": "FROM ConnectedDeviceSystem SELECT filter(count(*), WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY')) / filter(count(*), WHERE actionName = 'APP_STARTED') * 100 as '%'"
}
]
}
Expand All @@ -185,7 +185,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT (filter(count(*), WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY')) / filter(count(*), WHERE actionName = 'APP_STARTED')) as '%' facet deviceModel timeseries auto"
"query": "FROM ConnectedDeviceSystem SELECT (filter(count(*), WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY')) / filter(count(*), WHERE actionName = 'APP_STARTED')) as '%' facet deviceModel timeseries auto"
}
]
}
Expand All @@ -205,7 +205,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT count(*) as 'Crashes' WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY') FACET deviceModel"
"query": "FROM ConnectedDeviceSystem SELECT count(*) as 'Crashes' WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY') FACET deviceModel"
}
]
}
Expand All @@ -225,7 +225,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT count(*) as 'Crashes' WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY') FACET lastExitOrTerminationReason"
"query": "FROM ConnectedDeviceSystem SELECT count(*) as 'Crashes' WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY') FACET lastExitOrTerminationReason"
}
]
}
Expand All @@ -245,7 +245,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT count(*) as 'Crashes' WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY') FACET appVersion, appBuild"
"query": "FROM ConnectedDeviceSystem SELECT count(*) as 'Crashes' WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY') FACET appVersion, appBuild"
}
]
}
Expand All @@ -265,12 +265,12 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM RokuSystem SELECT count(*) as 'Crashes' WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY') FACET appVersion, appBuild TIMESERIES auto"
"query": "FROM ConnectedDeviceSystem SELECT count(*) as 'Crashes' WHERE actionName = 'APP_STARTED' and lastExitOrTerminationReason IN ('EXIT_BRIGHTSCRIPT_TIMEOUT', 'EXIT_BRIGHTSCRIPT_CRASH', 'EXIT_OUT_OF_MEMORY') FACET appVersion, appBuild TIMESERIES auto"
}
]
}
}
]
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
domain: VIDEO
# Represents all instances of a customer's Roku App monitored with New Relic's Roku agent.
type: ROKU_SYSTEM
type: CONNECTED_DEVICE_SYSTEM

synthesis:
identifier: appId
Expand All @@ -10,7 +10,7 @@ synthesis:

conditions:
- attribute: eventType
value: RokuSystem
value: ConnectedDeviceSystem

dashboardTemplates:
newRelic:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ appLaunches:
title: App launches (count)
unit: COUNT
query:
select: count(*)
from: RokuSystem
select: count(*)
from: ConnectedDeviceSystem
where: actionName = 'APP_STARTED'

httpErrors:
title: HTTP errors (count)
unit: COUNT
query:
select: count(*)
from: RokuSystem
where: actionName = 'HTTP_ERROR' or httpCode > 400
from: ConnectedDeviceSystem
where: actionName = 'HTTP_ERROR' or httpCode > 400