Skip to content

Commit

Permalink
feat(gatsby-build): Added gatsby-build pack
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rudouglas committed May 26, 2021
1 parent afc3003 commit 40b5c11
Show file tree
Hide file tree
Showing 5 changed files with 238 additions and 0 deletions.
29 changes: 29 additions & 0 deletions packs/gatsby-build/config.yml
Original file line number Diff line number Diff line change
@@ -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



209 changes: 209 additions & 0 deletions packs/gatsby-build/dashboards/gatsby-build.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
]
}
Binary file added packs/gatsby-build/dashboards/gatsby-build.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packs/gatsby-build/icon.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packs/gatsby-build/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 40b5c11

Please sign in to comment.