-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from newrelic-experimental/feat/job-runs
feat: collect Databricks job run information
- Loading branch information
Showing
6 changed files
with
1,344 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,363 @@ | ||
{ | ||
"name": "Databricks Job Runs", | ||
"description": null, | ||
"permissions": "PUBLIC_READ_WRITE", | ||
"pages": [ | ||
{ | ||
"name": "Databricks Job Runs", | ||
"description": null, | ||
"widgets": [ | ||
{ | ||
"title": "Current job run state", | ||
"layout": { | ||
"column": 1, | ||
"row": 1, | ||
"width": 5, | ||
"height": 3 | ||
}, | ||
"linkedEntityGuids": null, | ||
"visualization": { | ||
"id": "viz.billboard" | ||
}, | ||
"rawConfiguration": { | ||
"facet": { | ||
"showOtherSeries": false | ||
}, | ||
"nrqlQueries": [ | ||
{ | ||
"accountIds": [ | ||
0 | ||
], | ||
"query": "FROM Metric SELECT latest(databricks.job.runs) FACET databricksJobRunState" | ||
} | ||
], | ||
"platformOptions": { | ||
"ignoreTimeRange": false | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "Job runs by state", | ||
"layout": { | ||
"column": 6, | ||
"row": 1, | ||
"width": 7, | ||
"height": 3 | ||
}, | ||
"linkedEntityGuids": null, | ||
"visualization": { | ||
"id": "viz.line" | ||
}, | ||
"rawConfiguration": { | ||
"facet": { | ||
"showOtherSeries": false | ||
}, | ||
"legend": { | ||
"enabled": true | ||
}, | ||
"nrqlQueries": [ | ||
{ | ||
"accountIds": [ | ||
0 | ||
], | ||
"query": "FROM Metric SELECT latest(databricks.job.runs) FACET databricksJobRunState TIMESERIES LIMIT MAX" | ||
} | ||
], | ||
"platformOptions": { | ||
"ignoreTimeRange": false | ||
}, | ||
"thresholds": { | ||
"isLabelVisible": true | ||
}, | ||
"yAxisLeft": { | ||
"zero": true | ||
}, | ||
"yAxisRight": { | ||
"zero": true | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "Current task run state", | ||
"layout": { | ||
"column": 1, | ||
"row": 4, | ||
"width": 5, | ||
"height": 3 | ||
}, | ||
"linkedEntityGuids": null, | ||
"visualization": { | ||
"id": "viz.billboard" | ||
}, | ||
"rawConfiguration": { | ||
"facet": { | ||
"showOtherSeries": false | ||
}, | ||
"nrqlQueries": [ | ||
{ | ||
"accountIds": [ | ||
0 | ||
], | ||
"query": "FROM Metric SELECT latest(databricks.job.tasks) FACET databricksJobRunTaskState" | ||
} | ||
], | ||
"platformOptions": { | ||
"ignoreTimeRange": false | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "Task runs by state", | ||
"layout": { | ||
"column": 6, | ||
"row": 4, | ||
"width": 7, | ||
"height": 3 | ||
}, | ||
"linkedEntityGuids": null, | ||
"visualization": { | ||
"id": "viz.line" | ||
}, | ||
"rawConfiguration": { | ||
"facet": { | ||
"showOtherSeries": false | ||
}, | ||
"legend": { | ||
"enabled": true | ||
}, | ||
"nrqlQueries": [ | ||
{ | ||
"accountIds": [ | ||
0 | ||
], | ||
"query": "FROM Metric SELECT latest(databricks.job.tasks) FACET databricksJobRunTaskState TIMESERIES LIMIT MAX" | ||
} | ||
], | ||
"platformOptions": { | ||
"ignoreTimeRange": false | ||
}, | ||
"thresholds": { | ||
"isLabelVisible": true | ||
}, | ||
"yAxisLeft": { | ||
"zero": true | ||
}, | ||
"yAxisRight": { | ||
"zero": true | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "Average run duration by job", | ||
"layout": { | ||
"column": 1, | ||
"row": 7, | ||
"width": 6, | ||
"height": 4 | ||
}, | ||
"linkedEntityGuids": null, | ||
"visualization": { | ||
"id": "viz.bar" | ||
}, | ||
"rawConfiguration": { | ||
"facet": { | ||
"showOtherSeries": false | ||
}, | ||
"nrqlQueries": [ | ||
{ | ||
"accountIds": [ | ||
0 | ||
], | ||
"query": "FROM Metric SELECT average(databricks.job.run.duration / 1000) WHERE databricksJobRunState = 'TERMINATED' FACET databricksJobRunName" | ||
} | ||
], | ||
"platformOptions": { | ||
"ignoreTimeRange": false | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "Average task run duration by task and job", | ||
"layout": { | ||
"column": 7, | ||
"row": 7, | ||
"width": 6, | ||
"height": 4 | ||
}, | ||
"linkedEntityGuids": null, | ||
"visualization": { | ||
"id": "viz.bar" | ||
}, | ||
"rawConfiguration": { | ||
"facet": { | ||
"showOtherSeries": false | ||
}, | ||
"nrqlQueries": [ | ||
{ | ||
"accountIds": [ | ||
0 | ||
], | ||
"query": "FROM Metric SELECT average(databricks.job.run.task.duration / 1000) WHERE databricksJobRunTaskState = 'TERMINATED' FACET databricksJobRunName, databricksJobRunTaskName" | ||
} | ||
], | ||
"platformOptions": { | ||
"ignoreTimeRange": false | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "Average queue duration by job", | ||
"layout": { | ||
"column": 1, | ||
"row": 11, | ||
"width": 6, | ||
"height": 4 | ||
}, | ||
"linkedEntityGuids": null, | ||
"visualization": { | ||
"id": "viz.bar" | ||
}, | ||
"rawConfiguration": { | ||
"facet": { | ||
"showOtherSeries": false | ||
}, | ||
"nrqlQueries": [ | ||
{ | ||
"accountIds": [ | ||
0 | ||
], | ||
"query": "FROM Metric SELECT average(databricks.job.run.duration.queue / 1000) WHERE databricksJobRunState = 'TERMINATED' FACET databricksJobRunName LIMIT MAX" | ||
} | ||
], | ||
"platformOptions": { | ||
"ignoreTimeRange": false | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "Average queue duration by task", | ||
"layout": { | ||
"column": 7, | ||
"row": 11, | ||
"width": 6, | ||
"height": 4 | ||
}, | ||
"linkedEntityGuids": null, | ||
"visualization": { | ||
"id": "viz.bar" | ||
}, | ||
"rawConfiguration": { | ||
"facet": { | ||
"showOtherSeries": false | ||
}, | ||
"nrqlQueries": [ | ||
{ | ||
"accountIds": [ | ||
0 | ||
], | ||
"query": "FROM Metric SELECT average(databricks.job.run.task.duration.queue / 1000) WHERE databricksJobRunTaskState = 'TERMINATED' FACET databricksJobRunTaskName LIMIT MAX" | ||
} | ||
], | ||
"platformOptions": { | ||
"ignoreTimeRange": false | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "Running Jobs", | ||
"layout": { | ||
"column": 1, | ||
"row": 15, | ||
"width": 6, | ||
"height": 4 | ||
}, | ||
"linkedEntityGuids": null, | ||
"visualization": { | ||
"id": "viz.table" | ||
}, | ||
"rawConfiguration": { | ||
"facet": { | ||
"showOtherSeries": false | ||
}, | ||
"nrqlQueries": [ | ||
{ | ||
"accountIds": [ | ||
0 | ||
], | ||
"query": "SELECT databricksJobRunName, databricksJobRunId FROM (SELECT latest(databricksJobRunState) as state FROM Metric WHERE metricName = 'databricks.job.run.duration' FACET databricksJobRunName, databricksJobRunId LIMIT MAX)\nWHERE state = 'RUNNING' " | ||
} | ||
], | ||
"platformOptions": { | ||
"ignoreTimeRange": false | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "Running Tasks", | ||
"layout": { | ||
"column": 7, | ||
"row": 15, | ||
"width": 6, | ||
"height": 4 | ||
}, | ||
"linkedEntityGuids": null, | ||
"visualization": { | ||
"id": "viz.table" | ||
}, | ||
"rawConfiguration": { | ||
"facet": { | ||
"showOtherSeries": false | ||
}, | ||
"nrqlQueries": [ | ||
{ | ||
"accountIds": [ | ||
0 | ||
], | ||
"query": "SELECT databricksJobRunName, databricksJobRunId, databricksJobRunTaskName FROM (SELECT latest(databricksJobRunTaskState) as state FROM Metric WHERE metricName = 'databricks.job.run.task.duration' FACET databricksJobRunName, databricksJobRunId, databricksJobRunTaskName LIMIT MAX)\nWHERE state = 'RUNNING' " | ||
} | ||
], | ||
"platformOptions": { | ||
"ignoreTimeRange": false | ||
} | ||
} | ||
}, | ||
{ | ||
"title": "Recent job runs", | ||
"layout": { | ||
"column": 1, | ||
"row": 19, | ||
"width": 12, | ||
"height": 5 | ||
}, | ||
"linkedEntityGuids": null, | ||
"visualization": { | ||
"id": "viz.table" | ||
}, | ||
"rawConfiguration": { | ||
"dataFormatters": [ | ||
{ | ||
"name": "Duration", | ||
"type": "decimal" | ||
} | ||
], | ||
"facet": { | ||
"showOtherSeries": false | ||
}, | ||
"nrqlQueries": [ | ||
{ | ||
"accountIds": [ | ||
0 | ||
], | ||
"query": "FROM Metric SELECT databricksJobId, databricksJobRunId, databricksJobRunName, databricksJobRunIsRetry, getField(databricks.job.run.duration, latest) / 1000 AS Duration WHERE metricName = 'databricks.job.run.duration' AND databricksJobRunState = 'TERMINATED' LIMIT MAX" | ||
} | ||
], | ||
"platformOptions": { | ||
"ignoreTimeRange": false | ||
} | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"variables": [] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.