Skip to content

Commit

Permalink
Merge pull request #43 from rudouglas/ruairi/gatsby-build
Browse files Browse the repository at this point in the history
feat(gatsby-build): Added gatsby-build pack
  • Loading branch information
polfliet authored Jun 2, 2021
2 parents fd31b7c + eb0215d commit 7acb69b
Show file tree
Hide file tree
Showing 5 changed files with 233 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packs/gatsby-build/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

# Name of the pack
name: Gatsby Build

# Description of the pack
description: |+
The Gatsby observability pack allows you to get visibility into the build time of your Gatsby Sites,
using [Open Telemetry](https://docs.newrelic.com/docs/integrations/open-source-telemetry-integrations/opentelemetry/introduction-opentelemetry-new-relic/)
to collect each step as a span in a Distributed Trace. This Dashboard lets you monitor your build in real-time to highlight which steps are affecting performance,
so you can improve them faster.
# Support level: New Relic | Verified | Community
level: New Relic

# Design
icon: icon.png
logo: logo.png

# Authors of the pack
authors:
- New Relic
- Ruairi Douglas
210 changes: 210 additions & 0 deletions packs/gatsby-build/dashboards/gatsby-build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@
{
"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.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/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 7acb69b

Please sign in to comment.