Skip to content

Commit

Permalink
Gatsby build dashboard fixes (#335)
Browse files Browse the repository at this point in the history
* chore: update dashboard

* Update dashboard.json

* chore: changed account to 0
  • Loading branch information
rudouglas authored and srvaroa committed Sep 27, 2021
1 parent 6c6e1aa commit 4aac422
Showing 1 changed file with 129 additions and 32 deletions.
161 changes: 129 additions & 32 deletions definitions/ext-gatsby_build/dashboard.json
Original file line number Diff line number Diff line change
@@ -1,95 +1,192 @@
{
"name": "Gatsby v2",
"name": "Gatsby v3",
"description": null,
"pages": [
{
"name": "Gatsby v2",
"name": "Gatsby v3",
"description": null,
"widgets": [
{
"visualization": {
"id": "viz.pie"
"id": "viz.markdown"
},
"layout": {
"column": 1,
"row": 1,
"height": 4,
"width": 8
"height": 3,
"width": 2
},
"title": "Plugins",
"title": "",
"rawConfiguration": {
"text": "![image](https://codingthesmartway.com/wp-content/uploads/2019/02/gatsby-logo.png)"
}
},
{
"visualization": {
"id": "viz.bar"
},
"layout": {
"column": 3,
"row": 1,
"height": 3,
"width": 6
},
"title": "Latest Build Times (in s)",
"rawConfiguration": {
"facet": {
"showOtherSeries": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT average(duration.ms) FROM Span FACET plugin"
"query": "FROM Span SELECT latest(duration.ms)/1000 FACET buildId "
}
]
}
},
{
"visualization": {
"id": "viz.billboard"
"id": "logger.log-table-widget"
},
"layout": {
"column": 9,
"row": 1,
"height": 8,
"height": 7,
"width": 4
},
"title": "Build Time Steps",
"title": "",
"rawConfiguration": {
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT `log_severity``timestamp``message` FROM Log WHERE message LIKE '%success%'"
}
]
}
},
{
"visualization": {
"id": "viz.billboard"
},
"layout": {
"column": 1,
"row": 4,
"height": 3,
"width": 2
},
"title": "",
"rawConfiguration": {
"dataFormatters": [],
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Span SELECT latest(duration.ms) FACET cases(WHERE name = 'open and validate gatsby-configs, load plugins' , WHERE name = 'onpreinit', WHERE name = 'initialize cache', WHERE name = 'copy gatsby files', WHERE name = 'onprebootstrap', WHERE name='source and transform nodes', WHERE name='add explicit types', WHERE name='add inferred types', WHERE name='Processing Types') COMPARE WITH 1 day ago"
"query": "SELECT latest(capture(message, r'info Total nodes: (?P<nodes>\\d+).*')), latest(capture(message, r'info Total nodes:.*SitePage nodes: (?P<pages>\\d+).*')) FROM Log"
}
],
"thresholds": []
}
},
{
"visualization": {
"id": "viz.stacked-bar"
"id": "viz.pie"
},
"layout": {
"column": 1,
"row": 5,
"column": 3,
"row": 4,
"height": 4,
"width": 8
"width": 6
},
"title": "",
"title": "BundleSize",
"rawConfiguration": {
"facet": {
"showOtherSeries": false
"showOtherSeries": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT latest(gzipSize) FROM bundleSize FACET path "
}
]
}
},
{
"visualization": {
"id": "viz.billboard"
},
"layout": {
"column": 1,
"row": 7,
"height": 7,
"width": 2
},
"title": "Latest Build Metrics",
"rawConfiguration": {
"dataFormatters": [],
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT latest(`bootstrapTime`)/1000, latest(`instantiationTime`)/1000, latest(`benchmarkStart`)/1000, latest(`preInit`)/1000, latest(`preBootstrap`)/1000, latest(`preBuild`)/1000, latest(`postBuild`)/1000 FROM Metric SINCE 12 hours AGO COMPARE WITH 30 minutes ago"
}
],
"thresholds": []
}
},
{
"visualization": {
"id": "viz.stacked-bar"
},
"layout": {
"column": 3,
"row": 8,
"height": 3,
"width": 6
},
"title": "",
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Span SELECT latest(duration.ms) FACET cases(WHERE name = 'open and validate gatsby-configs, load plugins' , WHERE name = 'onpreinit', WHERE name = 'initialize cache', WHERE name = 'copy gatsby files', WHERE name = 'onprebootstrap', WHERE name='source and transform nodes', WHERE name='add explicit types', WHERE name='add inferred types', WHERE name='Processing Types') TIMESERIES AUTO "
"query": "SELECT latest(`bootstrapTime`), latest(`instantiationTime`), latest(`benchmarkStart`), latest(`preInit`), latest(`preBootstrap`), latest(`preBuild`), latest(`postBuild`) FROM Metric TIMESERIES 15 minutes"
}
],
"yAxisLeft": {
"zero": false
}
]
}
},
{
"visualization": {
"id": "viz.area"
"id": "viz.pie"
},
"layout": {
"column": 9,
"row": 5,
"row": 8,
"height": 3,
"width": 4
},
"title": "Plugins",
"rawConfiguration": {
"facet": {
"showOtherSeries": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT average(duration.ms) FROM Span FACET plugin WHERE plugin != 'gatsby-build-newrelic'"
}
]
}
},
{
"visualization": {
"id": "viz.area"
},
"layout": {
"column": 3,
"row": 11,
"height": 3,
"width": 6
},
"title": "images by type",
"rawConfiguration": {
"legend": {
Expand All @@ -98,30 +195,30 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT latest(otherImages), latest(gifs), latest(pngs), latest(jpgs) FROM Metric SINCE 1 day AGO TIMESERIES 1 hour"
"query": "SELECT latest(otherImages), latest(gifs), latest(pngs), latest(jpgs) FROM Metric TIMESERIES AUTO"
}
]
}
},
{
"visualization": {
"id": "viz.stacked-bar"
"id": "viz.pie"
},
"layout": {
"column": 1,
"row": 8,
"column": 9,
"row": 11,
"height": 3,
"width": 4
},
"title": "",
"title": "Internal APIs sorted by Build Time Contribution (in s)",
"rawConfiguration": {
"legend": {
"enabled": true
"facet": {
"showOtherSeries": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT latest(`bootstrapTime`), latest(`instantiationTime`), latest(`benchmarkStart`), latest(`preInit`), latest(`preBootstrap`), latest(`preBuild`), latest(`postBuild`) FROM Metric SINCE 12 hours AGO TIMESERIES 15 minutes"
"query": "SELECT average(`duration.ms`)/1000 FROM Span FACET api LIMIT 1000"
}
]
}
Expand Down

0 comments on commit 4aac422

Please sign in to comment.