diff --git a/packs/gatsby-build/config.yml b/packs/gatsby-build/config.yml new file mode 100644 index 0000000000..5148fb7fde --- /dev/null +++ b/packs/gatsby-build/config.yml @@ -0,0 +1,29 @@ + +# Name of the pack +name: Gatsby Build + +# Description of the pack +description: |+ + The template pack allows you to get visibilility into the build time of your Gatsby Site, + using Open Telemetry to collect each step as Trace Data + +# Support level: New Relic | Verified | Community +level: New Relic + +# Design +icon: icon.jpeg +logo: logo.png + +# Authors of the pack +authors: + - New Relic + - Ruairi Douglas + +references: + - type: operating-system + name: + - linux + - windows + + + diff --git a/packs/gatsby-build/dashboards/gatsby-build.json b/packs/gatsby-build/dashboards/gatsby-build.json new file mode 100644 index 0000000000..34a2cdf6ae --- /dev/null +++ b/packs/gatsby-build/dashboards/gatsby-build.json @@ -0,0 +1,209 @@ +{ + "name": "Gatsby Build", + "description": "Monitor Telemetry traces from your Gatsby Build steps in production and develop", + "permissions": "PUBLIC_READ_WRITE", + "pages": [ + { + "name": "Gatsby Build", + "description": null, + "widgets": [ + { + "visualization": { + "id": "viz.markdown" + }, + "layout": { + "column": 1, + "row": 1, + "height": 5, + "width": 4 + }, + "title": "", + "rawConfiguration": { + "text": "![](https://www.gatsbyjs.com/Gatsby-Monogram.svg)\n\n# Gatsby Build\n\nMonitor Telemetry traces from your Gatsby Build steps in production and develop" + }, + "linkedEntityGuids": null + }, + { + "visualization": { + "id": "viz.area" + }, + "layout": { + "column": 5, + "row": 1, + "height": 4, + "width": 4 + }, + "title": "Average Duration by API (ms)", + "rawConfiguration": { + "facet": { + "showOtherSeries": false + }, + "legend": { + "enabled": true + }, + "nrqlQueries": [ + { + "accountId": 0, + "query": "SELECT average(`duration.ms`) FROM Span SINCE 24 hours ago FACET api TIMESERIES" + } + ] + }, + "linkedEntityGuids": null + }, + { + "visualization": { + "id": "viz.area" + }, + "layout": { + "column": 9, + "row": 1, + "height": 3, + "width": 4 + }, + "title": "Average Total Build time (ms)", + "rawConfiguration": { + "legend": { + "enabled": true + }, + "nrqlQueries": [ + { + "accountId": 0, + "query": "SELECT average(`duration.ms`) FROM Span SINCE 1 week ago TIMESERIES MAX " + } + ] + }, + "linkedEntityGuids": null + }, + { + "visualization": { + "id": "viz.line" + }, + "layout": { + "column": 9, + "row": 4, + "height": 3, + "width": 4 + }, + "title": "Average Total Build Time by Site (ms)", + "rawConfiguration": { + "facet": { + "showOtherSeries": false + }, + "legend": { + "enabled": true + }, + "nrqlQueries": [ + { + "accountId": 0, + "query": "SELECT average(`duration.ms`) FROM Span SINCE 1 Week Ago COMPARE WITH 1 week ago TIMESERIES MAX FACET entity.name" + } + ], + "yAxisLeft": { + "zero": true + } + }, + "linkedEntityGuids": null + }, + { + "visualization": { + "id": "viz.area" + }, + "layout": { + "column": 5, + "row": 5, + "height": 4, + "width": 4 + }, + "title": "Average Duration by Step (ms)", + "rawConfiguration": { + "facet": { + "showOtherSeries": false + }, + "legend": { + "enabled": true + }, + "nrqlQueries": [ + { + "accountId": 0, + "query": "SELECT average(`duration.ms`) FROM Span SINCE 1 day ago FACET name TIMESERIES" + } + ] + }, + "linkedEntityGuids": null + }, + { + "visualization": { + "id": "viz.table" + }, + "layout": { + "column": 1, + "row": 6, + "height": 1, + "width": 4 + }, + "title": "Exporters", + "rawConfiguration": { + "dataFormatters": [], + "facet": { + "showOtherSeries": false + }, + "nrqlQueries": [ + { + "accountId": 0, + "query": "FROM Span SELECT uniques(`opencensus.exporterversion`) AS 'Exporters' SINCE 1 day ago" + } + ] + }, + "linkedEntityGuids": null + }, + { + "visualization": { + "id": "viz.billboard" + }, + "layout": { + "column": 1, + "row": 7, + "height": 2, + "width": 4 + }, + "title": "Sites Monitored", + "rawConfiguration": { + "dataFormatters": [], + "nrqlQueries": [ + { + "accountId": 0, + "query": "SELECT uniqueCount(entity.name) AS 'This Week' FROM Span SINCE 1 week ago" + } + ], + "thresholds": [] + }, + "linkedEntityGuids": null + }, + { + "visualization": { + "id": "viz.pie" + }, + "layout": { + "column": 9, + "row": 7, + "height": 2, + "width": 4 + }, + "title": "Average Duration by Plugin", + "rawConfiguration": { + "facet": { + "showOtherSeries": true + }, + "nrqlQueries": [ + { + "accountId": 0, + "query": "FROM Span SELECT average(duration.ms) SINCE 1 day ago FACET plugin" + } + ] + }, + "linkedEntityGuids": null + } + ] + } + ] + } \ No newline at end of file diff --git a/packs/gatsby-build/dashboards/gatsby-build.png b/packs/gatsby-build/dashboards/gatsby-build.png new file mode 100644 index 0000000000..385fd935b0 Binary files /dev/null and b/packs/gatsby-build/dashboards/gatsby-build.png differ diff --git a/packs/gatsby-build/icon.jpeg b/packs/gatsby-build/icon.jpeg new file mode 100644 index 0000000000..167b62838a Binary files /dev/null and b/packs/gatsby-build/icon.jpeg differ diff --git a/packs/gatsby-build/logo.png b/packs/gatsby-build/logo.png new file mode 100644 index 0000000000..697a289c27 Binary files /dev/null and b/packs/gatsby-build/logo.png differ