Skip to content

Commit

Permalink
Dashboard sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
prateeksainilambdatest committed Oct 30, 2023
1 parent 63ee2c9 commit e83de14
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 52 deletions.
69 changes: 17 additions & 52 deletions dashboards/lambdatest/lambdatest-logs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "LambdaTest Dashboard",
"description": null,
"permissions": "PUBLIC_READ_WRITE",
"pages": [
{
"name": "LambdaTest - Test Overview",
Expand All @@ -25,9 +24,7 @@
},
"nrqlQueries": [
{
"accountIds": [
4183939
],
"accountIds": [],
"query": "SELECT count(*) AS 'Tests' FROM Log WHERE `service-name`='lambdatest' AND `newrelic.source` = 'api.logs' SINCE 1 week ago\n"
}
],
Expand All @@ -54,9 +51,7 @@
},
"nrqlQueries": [
{
"accountIds": [
4183939
],
"accountIds": [],
"query": "SELECT count(*) AS 'Tests' FROM Log WHERE `service-name`='lambdatest' AND `newrelic.source` = 'api.logs' AND `status`='Completed' SINCE 1 week ago\n"
}
],
Expand All @@ -83,9 +78,7 @@
},
"nrqlQueries": [
{
"accountIds": [
4183939
],
"accountIds": [],
"query": "SELECT count(*) AS 'Tests' FROM Log WHERE `service-name`='lambdatest' AND `newrelic.source` = 'api.logs' AND `status`='Passed' SINCE 1 week ago\n"
}
],
Expand All @@ -112,9 +105,7 @@
},
"nrqlQueries": [
{
"accountIds": [
4183939
],
"accountIds": [],
"query": "SELECT count(*) AS 'Tests' FROM Log WHERE `service-name`='lambdatest' AND `newrelic.source` = 'api.logs' AND `status`='Failed' SINCE 1 week ago"
}
],
Expand All @@ -141,9 +132,7 @@
},
"nrqlQueries": [
{
"accountIds": [
4183939
],
"accountIds": [],
"query": "SELECT count(*) AS 'Errored Tests' \nFROM Log \nWHERE `service-name`='lambdatest' \nAND `newrelic.source` = 'api.logs' \nAND (status = 'Queue_Timeout' OR status = 'Idle_Timeout') \nSINCE 1 week ago\n"
}
],
Expand Down Expand Up @@ -173,9 +162,7 @@
},
"nrqlQueries": [
{
"accountIds": [
4183939
],
"accountIds": [],
"query": "SELECT count(*) FROM Log \nWHERE `service-name`='lambdatest' \nAND `newrelic.source` = 'api.logs' \nAND test_env_os != '' \nAND test_env_os != '--'\nAND test_env_os != '-'\nFACET test_env_os \nLIMIT 10\nSINCE 1 week ago"
}
],
Expand Down Expand Up @@ -205,9 +192,7 @@
},
"nrqlQueries": [
{
"accountIds": [
4183939
],
"accountIds": [],
"query": "SELECT count(*) FROM Log \nWHERE `service-name`='lambdatest' \nAND `newrelic.source` = 'api.logs' \nAND test_env_browser != '' \nAND test_env_browser != '--'\nAND test_env_browser != '-'\nFACET test_env_browser \nLIMIT 10\nSINCE 1 week ago\n"
}
],
Expand Down Expand Up @@ -237,9 +222,7 @@
},
"nrqlQueries": [
{
"accountIds": [
4183939
],
"accountIds": [],
"query": "SELECT count(*) AS 'Test_Execution_Count' \nFROM Log \nWHERE `service-name` = 'lambdatest' \nAND `newrelic.source` = 'api.logs' \nSINCE 7 day ago\nTIMESERIES 1 hour\nCOMPARE WITH 1 day ago"
}
],
Expand Down Expand Up @@ -272,9 +255,7 @@
},
"nrqlQueries": [
{
"accountIds": [
4183939
],
"accountIds": [],
"query": "SELECT count(*) AS 'Queued_Tests_Count'\nFROM Log\nWHERE `service-name`='lambdatest' \nAND `newrelic.source` = 'api.logs' \nAND test_id IS NOT NULL \nAND test_created_at IS NOT NULL \nAND test_started_at IS NOT NULL\nAND `test_created_at` != `test_started_at`\nSINCE 7 days ago\nTIMESERIES 1 hour\nCOMPARE WITH 1 day ago"
}
],
Expand Down Expand Up @@ -310,9 +291,7 @@
},
"nrqlQueries": [
{
"accountIds": [
4183939
],
"accountIds": [],
"query": "SELECT count(*) AS Tests\nFROM Log\nWHERE `service-name`='lambdatest' \nAND `newrelic.source` = 'api.logs' \nAND status IN ('Lambda Error', 'Queue_Timeout', 'Idle_Timeout')\nAND test_id IS NOT NULL\nSINCE 1 week ago\n"
}
],
Expand All @@ -339,9 +318,7 @@
},
"nrqlQueries": [
{
"accountIds": [
4183939
],
"accountIds": [],
"query": "SELECT count(*) AS Tests\nFROM Log\nWHERE `service-name`='lambdatest' \nAND `newrelic.source` = 'api.logs' \nAND `status` = 'Idle_Timeout'\nAND test_id IS NOT NULL\nSINCE 1 week ago"
}
],
Expand All @@ -368,9 +345,7 @@
},
"nrqlQueries": [
{
"accountIds": [
4183939
],
"accountIds": [],
"query": "SELECT count(*) AS Tests\nFROM Log\nWHERE `service-name`='lambdatest' \nAND `newrelic.source` = 'api.logs' \nAND `status` = 'Queue_Timeout'\nAND test_id IS NOT NULL\nSINCE 1 week ago"
}
],
Expand All @@ -397,9 +372,7 @@
},
"nrqlQueries": [
{
"accountIds": [
4183939
],
"accountIds": [],
"query": "SELECT count(*) AS Tests\nFROM Log\nWHERE `service-name`='lambdatest' \nAND `newrelic.source` = 'api.logs' \nAND `status` = 'Lambda Error'\nAND test_id IS NOT NULL\nSINCE 1 week ago"
}
],
Expand Down Expand Up @@ -429,9 +402,7 @@
},
"nrqlQueries": [
{
"accountIds": [
4183939
],
"accountIds": [],
"query": "SELECT count(*) as Tests\nFROM Log\nWHERE status NOT IN ('Passed', 'Failed', 'Completed')\nFACET status\nSINCE 1 week ago TIMESERIES"
}
],
Expand Down Expand Up @@ -461,9 +432,7 @@
},
"nrqlQueries": [
{
"accountIds": [
4183939
],
"accountIds": [],
"query": "SELECT count(*) FROM Log\nWHERE `service-name`='lambdatest' \nAND `newrelic.source` = 'api.logs' \nAND error_message IS NOT NULL\nAND `error_message` != '-'\nFACET error_message\nLIMIT 10\nSINCE 1 week ago"
}
],
Expand Down Expand Up @@ -493,9 +462,7 @@
},
"nrqlQueries": [
{
"accountIds": [
4183939
],
"accountIds": [],
"query": "SELECT \n FILTER(count(*), WHERE status IN ('Lambda Error', 'Queue_Timeout', 'Idle_Timeout', 'Failed')) AS 'Failed',\n FILTER(count(*), WHERE status NOT IN ('Lambda Error', 'Queue_Timeout', 'Idle_Timeout', 'Failed')) AS 'Success'\nFROM Log\nWHERE `service-name`='lambdatest' \nAND `newrelic.source` = 'api.logs' \nAND test_id IS NOT NULL \nAND status IS NOT NULL \nSINCE 1 week ago TIMESERIES 1 hour"
}
],
Expand Down Expand Up @@ -525,9 +492,7 @@
},
"nrqlQueries": [
{
"accountIds": [
4183939
],
"accountIds": [],
"query": "SELECT count(*) \nFROM Log \nWHERE `service-name`='lambdatest' \nAND `newrelic.source` = 'api.logs' \nAND status IN ('Idle_Timeout', 'Queue_Timeout', 'Lambda Error')\nFACET test_name, hourOf(timestamp)\nSINCE 1 week ago TIMESERIES 1 hour\n"
}
],
Expand Down
1 change: 1 addition & 0 deletions quickstarts/lambdatest/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ keywords:
- testing
- cross-browser
- featured
- NR1_addData

# Reference to install plans located under /install directory
# Allows us to construct reusable "install plans" and just use their ID in the quickstart config
Expand Down

0 comments on commit e83de14

Please sign in to comment.