Skip to content

Commit

Permalink
Revert "chore: update dashboard (#333)" (#334)
Browse files Browse the repository at this point in the history
This reverts commit 6b650c5.
  • Loading branch information
srvaroa authored Sep 27, 2021
1 parent 6b650c5 commit 0902b71
Showing 1 changed file with 32 additions and 129 deletions.
161 changes: 32 additions & 129 deletions definitions/ext-gatsby_build/dashboard.json
Original file line number Diff line number Diff line change
@@ -1,192 +1,95 @@
{
"name": "Gatsby v3",
"name": "Gatsby v2",
"description": null,
"pages": [
{
"name": "Gatsby v3",
"name": "Gatsby v2",
"description": null,
"widgets": [
{
"visualization": {
"id": "viz.markdown"
"id": "viz.pie"
},
"layout": {
"column": 1,
"row": 1,
"height": 3,
"width": 2
},
"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
"height": 4,
"width": 8
},
"title": "Latest Build Times (in s)",
"title": "Plugins",
"rawConfiguration": {
"facet": {
"showOtherSeries": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Span SELECT latest(duration.ms)/1000 FACET gatsbySite, buildId WHERE `nr.entity.guid` = 'MzI4MzgxOXxFWFR8R0FUU0JZX0JVSUxEfC04MTE2MjQwOTMzNjMwOTE2NDYw' OR `entity.guid` = 'MzI4MzgxOXxFWFR8R0FUU0JZX0JVSUxEfC04MTE2MjQwOTMzNjMwOTE2NDYw' "
"query": "SELECT average(duration.ms) FROM Span FACET plugin"
}
]
}
},
{
"visualization": {
"id": "logger.log-table-widget"
"id": "viz.billboard"
},
"layout": {
"column": 9,
"row": 1,
"height": 7,
"height": 8,
"width": 4
},
"title": "",
"rawConfiguration": {
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT `log_severity``timestamp``message` FROM Log WHERE `entity.type` = 'GATSBY_BUILD' AND message LIKE '%success%'"
}
]
}
},
{
"visualization": {
"id": "viz.billboard"
},
"layout": {
"column": 1,
"row": 4,
"height": 3,
"width": 2
},
"title": "",
"title": "Build Time Steps",
"rawConfiguration": {
"dataFormatters": [],
"nrqlQueries": [
{
"accountId": 0,
"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 WHERE gatsbySite='jankstack' "
"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"
}
],
"thresholds": []
}
},
{
"visualization": {
"id": "viz.pie"
"id": "viz.stacked-bar"
},
"layout": {
"column": 3,
"row": 4,
"column": 1,
"row": 5,
"height": 4,
"width": 6
"width": 8
},
"title": "BundleSize",
"title": "",
"rawConfiguration": {
"facet": {
"showOtherSeries": true
"showOtherSeries": false
},
"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 WHERE `nr.entity.guid` = 'MzI4MzgxOXxFWFR8R0FUU0JZX0JVSUxEfC04MTE2MjQwOTMzNjMwOTE2NDYw' OR `entity.guid` = 'MzI4MzgxOXxFWFR8R0FUU0JZX0JVSUxEfC04MTE2MjQwOTMzNjMwOTE2NDYw'"
}
],
"thresholds": []
}
},
{
"visualization": {
"id": "viz.stacked-bar"
},
"layout": {
"column": 3,
"row": 8,
"height": 3,
"width": 6
},
"title": "",
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT latest(`bootstrapTime`), latest(`instantiationTime`), latest(`benchmarkStart`), latest(`preInit`), latest(`preBootstrap`), latest(`preBuild`), latest(`postBuild`) FROM Metric TIMESERIES 15 minutes WHERE `nr.entity.guid` = 'MzI4MzgxOXxFWFR8R0FUU0JZX0JVSUxEfC04MTE2MjQwOTMzNjMwOTE2NDYw' OR `entity.guid` = 'MzI4MzgxOXxFWFR8R0FUU0JZX0JVSUxEfC04MTE2MjQwOTMzNjMwOTE2NDYw'"
"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 "
}
]
],
"yAxisLeft": {
"zero": false
}
}
},
{
"visualization": {
"id": "viz.pie"
"id": "viz.area"
},
"layout": {
"column": 9,
"row": 8,
"row": 5,
"height": 3,
"width": 4
},
"title": "Plugins",
"rawConfiguration": {
"facet": {
"showOtherSeries": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT average(duration.ms) FROM Span FACET plugin WHERE `nr.entity.guid` = 'MzI4MzgxOXxFWFR8R0FUU0JZX0JVSUxEfC04MTE2MjQwOTMzNjMwOTE2NDYw' OR `entity.guid` = 'MzI4MzgxOXxFWFR8R0FUU0JZX0JVSUxEfC04MTE2MjQwOTMzNjMwOTE2NDYw' AND 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 @@ -195,30 +98,30 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT latest(otherImages), latest(gifs), latest(pngs), latest(jpgs) FROM Metric TIMESERIES AUTO WHERE `nr.entity.guid` = 'MzI4MzgxOXxFWFR8R0FUU0JZX0JVSUxEfC04MTE2MjQwOTMzNjMwOTE2NDYw' OR `entity.guid` = 'MzI4MzgxOXxFWFR8R0FUU0JZX0JVSUxEfC04MTE2MjQwOTMzNjMwOTE2NDYw'"
"query": "SELECT latest(otherImages), latest(gifs), latest(pngs), latest(jpgs) FROM Metric SINCE 1 day AGO TIMESERIES 1 hour"
}
]
}
},
{
"visualization": {
"id": "viz.pie"
"id": "viz.stacked-bar"
},
"layout": {
"column": 9,
"row": 11,
"column": 1,
"row": 8,
"height": 3,
"width": 4
},
"title": "Internal APIs sorted by Build Time Contribution (in s)",
"title": "",
"rawConfiguration": {
"facet": {
"showOtherSeries": true
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT average(`duration.ms`)/1000 FROM Span FACET api LIMIT 1000"
"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"
}
]
}
Expand Down

0 comments on commit 0902b71

Please sign in to comment.