Skip to content

Instantly share code, notes, and snippets.

@lbajsarowicz
Last active April 28, 2026 20:37
Show Gist options
  • Select an option

  • Save lbajsarowicz/14b01bc7ed4de39bd942b77480cf6233 to your computer and use it in GitHub Desktop.

Select an option

Save lbajsarowicz/14b01bc7ed4de39bd942b77480cf6233 to your computer and use it in GitHub Desktop.
NewRelic dashboard for Fastly on Magento Cloud
{
"name": "Fastly",
"description": null,
"permissions": "PUBLIC_READ_WRITE",
"pages": [
{
"name": "Overview",
"description": null,
"widgets": [
{
"title": "Total Requests",
"layout": {
"column": 1,
"row": 1,
"width": 4,
"height": 2
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.billboard"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) as 'Total Requests' WHERE geo_datacenter IS NOT NULL "
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "",
"layout": {
"column": 5,
"row": 1,
"width": 2,
"height": 2
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.billboard"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT percentage(count (*), WHERE cache_status='HIT') AS 'Cache Hit Ratio' WHERE (cache_status='HIT' OR cache_status='MISS') AND geo_datacenter IS NOT NULL since 1 hour ago COMPARE with 1 hour ago\n"
}
],
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": [
{
"alertSeverity": "WARNING",
"value": 0.9
},
{
"alertSeverity": "CRITICAL",
"value": 0.8
}
]
}
},
{
"title": "",
"layout": {
"column": 7,
"row": 1,
"width": 2,
"height": 2
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.billboard"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT percentage(count (*), WHERE numeric(status) >= 200 and numeric(status) < 400) AS 'Success Rate (2xx,3xx)' WHERE geo_datacenter IS NOT NULL compare with 1 hour ago\n"
}
],
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": [
{
"alertSeverity": "WARNING",
"value": 0.9
},
{
"alertSeverity": "CRITICAL",
"value": 0.8
}
]
}
},
{
"title": "",
"layout": {
"column": 9,
"row": 1,
"width": 2,
"height": 2
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.billboard"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT percentage(count (*), WHERE numeric(status) >= 400 and numeric(status) <= 499) AS 'Error Rate (4xx)' WHERE geo_datacenter IS NOT NULL compare with 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": [
{
"alertSeverity": "CRITICAL",
"value": 0.1
},
{
"alertSeverity": "WARNING",
"value": 0.05
}
]
}
},
{
"title": "",
"layout": {
"column": 11,
"row": 1,
"width": 2,
"height": 2
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.billboard"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT percentage(count (*), WHERE numeric(status) >= 500 and numeric(status) <= 599) AS 'Error Rate (5xx)' WHERE geo_datacenter IS NOT NULL since 1 hour ago compare with 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": [
{
"alertSeverity": "CRITICAL",
"value": 0.1
},
{
"alertSeverity": "WARNING",
"value": 0.05
}
]
}
},
{
"title": "Total Requests (over time)",
"layout": {
"column": 1,
"row": 3,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.area"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) as 'Total Requests' WHERE geo_datacenter IS NOT NULL AND cache_status is NOT NULL TIMESERIES "
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "Cache Hit/Miss (over time)",
"layout": {
"column": 5,
"row": 3,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL AND cache_status='HIT' OR cache_status='MISS' FACET cache_status TIMESERIES since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": {
"isLabelVisible": true
},
"yAxisLeft": {
"zero": true
},
"yAxisRight": {
"zero": true
}
}
},
{
"title": "HTTP Status Code Distribution",
"layout": {
"column": 9,
"row": 3,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.pie"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": true
},
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL SINCE 1 hour AGO FACET status "
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "Total Bandwidth (over time)",
"layout": {
"column": 1,
"row": 6,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.area"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT sum(NUMERIC(resp_header_size) + NUMERIC(resp_body_size))/1000/1000 AS 'Total GB' WHERE geo_datacenter IS NOT NULL timeseries SINCE 1 hour ago "
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "Edge Response Result Type NOT Hit OR Miss",
"layout": {
"column": 5,
"row": 6,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL AND (cache_status!='HIT' AND cache_status!='MISS') FACET cache_status TIMESERIES since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": {
"isLabelVisible": true
},
"yAxisLeft": {
"zero": true
},
"yAxisRight": {
"zero": true
}
}
},
{
"title": "Requests by Status Code (over time)",
"layout": {
"column": 9,
"row": 6,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL FACET status TIMESERIES since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": {
"isLabelVisible": true
},
"yAxisLeft": {
"zero": true
},
"yAxisRight": {
"zero": true
}
}
},
{
"title": "Edge Response Result Type",
"layout": {
"column": 5,
"row": 9,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.pie"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": true
},
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL and cache_status IS NOT NULL FACET cache_status "
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "HTTP Status Code Distribution (range)",
"layout": {
"column": 9,
"row": 9,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.pie"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL AND status IS NOT NULL FACET cases(WHERE numeric(status) >= 200 AND numeric(status) < 300 as '2xx', WHERE numeric(status) >= 300 AND numeric(status) < 400 as '3xx', WHERE numeric(status) >= 400 AND numeric(status)<500 as '4xx', WHERE numeric(status)>499 AND numeric(status)<600 as '5xx') SINCE 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "Latest Logs",
"layout": {
"column": 1,
"row": 12,
"width": 12,
"height": 6
},
"linkedEntityGuids": null,
"visualization": {
"id": "logger.log-table-widget"
},
"rawConfiguration": {
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT client_ip AS 'Client IP', client_device_type AS 'Device', client_browser_name AS 'Browser', request AS 'Method', status AS 'Status', url AS 'URL', content_type AS 'Content Type', cache_status AS 'Cache Status', time_elapsed AS 'Time Elapsed', resp_ttfb AS 'Time to First Byte', geo_datacenter AS 'Data Center', user_country_code AS 'Country' WHERE geo_datacenter IS NOT NULL"
}
]
}
}
]
},
{
"name": "Client Information",
"description": null,
"widgets": [
{
"title": "",
"layout": {
"column": 1,
"row": 1,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.markdown"
},
"rawConfiguration": {
"text": "# [Fastly CDN Logs Client Information](https://docs.fastly.com/en/guides/log-streaming-newrelic-logs)\n\n\n![Add Images](https://www.fastly.com/cimages/6pk8mg3yh2ee/1KOvYgrOJeCUndOpjcDOwJ/17832ecfed4f651168232c263cf6bcfd/og-image.jpg?canvas=1200:630&width=1200&height=630&fit=bounds&bg-color=FFFFFF)"
}
},
{
"title": "Requests by Edge Location",
"layout": {
"column": 5,
"row": 1,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.pie"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": true
},
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL FACET geo_datacenter since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "Requests By Client IP",
"layout": {
"column": 9,
"row": 1,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.table"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": " SELECT count(*) FROM Log WHERE geo_datacenter IS NOT NULL FACET client_ip as 'Client IP' since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "Requests by Client Country Code",
"layout": {
"column": 1,
"row": 4,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.pie"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": true
},
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL FACET geo_country_code"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "Requests by Edge Location (over time)",
"layout": {
"column": 5,
"row": 4,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL FACET geo_datacenter TIMESERIES since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": {
"isLabelVisible": true
},
"yAxisLeft": {
"zero": true
},
"yAxisRight": {
"zero": true
}
}
},
{
"title": "Requests By Client IP (over time)",
"layout": {
"column": 9,
"row": 4,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": " SELECT count(*) FROM Log WHERE geo_datacenter IS NOT NULL FACET client_ip as 'Client IP' TIMESERIES since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": {
"isLabelVisible": true
},
"yAxisLeft": {
"zero": true
},
"yAxisRight": {
"zero": true
}
}
},
{
"title": "Top 10 URI by Status Code (2xx,3xx)",
"layout": {
"column": 1,
"row": 7,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.table"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL AND numeric(status)>199 AND numeric(status)<400 FACET status AS 'Status', url AS 'URI' LIMIT 10 since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "Top 10 URI by Status Code (4xx,5xx)",
"layout": {
"column": 5,
"row": 7,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.table"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL AND numeric(status)>399 AND numeric(status)<600 FACET status AS 'Status', url AS 'URI' LIMIT 10 since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "Top 10 URI by Cache Miss",
"layout": {
"column": 9,
"row": 7,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.table"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL AND status='MISS' FACET status AS 'Result Type', url AS 'URI'"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "URI by Status Code (2xx,3xx) (over time)",
"layout": {
"column": 1,
"row": 10,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": {YOUR_ACCOUNT_ID},
"query": "FROM Log SELECT count(*) WHERE fastly_datacenter IS NOT NULL AND numeric(resp_status)>199 AND numeric(resp_status)<400 FACET resp_status AS 'Status', url AS 'URI' TIMESERIES since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
},
"yAxisLeft": {
"zero": true
}
}
},
{
"title": "URI by Status Code (4xx,5xx) (over time)",
"layout": {
"column": 5,
"row": 10,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": {YOUR_ACCOUNT_ID},
"query": "FROM Log SELECT count(*) WHERE fastly_datacenter IS NOT NULL AND numeric(resp_status)>399 AND numeric(resp_status)<600 FACET resp_status AS 'Status', url AS 'URI' TIMESERIES LIMIT 10 since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
},
"yAxisLeft": {
"zero": true
}
}
},
{
"title": "URI by Cache Miss (over time)",
"layout": {
"column": 9,
"row": 10,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL AND status='MISS' FACET url AS 'URI' TIMESERIES since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": {
"isLabelVisible": true
},
"yAxisLeft": {
"zero": true
},
"yAxisRight": {
"zero": true
}
}
},
{
"title": "Total Requests by Client Port",
"layout": {
"column": 1,
"row": 13,
"width": 3,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.pie"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": true
},
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL FACET client_port AS 'Client Port' since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "Total Requests by Device Type",
"layout": {
"column": 4,
"row": 13,
"width": 3,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.pie"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": true
},
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL FACET client_device_type since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "Total Requests by HTTP Method",
"layout": {
"column": 7,
"row": 13,
"width": 3,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.pie"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": true
},
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL FACET request_method since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "Total Requests by Content Type",
"layout": {
"column": 10,
"row": 13,
"width": 3,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.bar"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL FACET content_type since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "Total Requests by Referer",
"layout": {
"column": 1,
"row": 16,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.bar"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL FACET request_referer AS 'Referer'"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "Total Requests by User Agent",
"layout": {
"column": 5,
"row": 16,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.table"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL FACET request_user_agent AS 'User Agent'"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
}
]
},
{
"name": "Performance",
"description": null,
"widgets": [
{
"title": "",
"layout": {
"column": 1,
"row": 1,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.markdown"
},
"rawConfiguration": {
"text": "# [Fastly CDN Logs Performance](https://docs.fastly.com/en/guides/log-streaming-newrelic-logs)\n\n\n![Add Images](https://www.fastly.com/cimages/6pk8mg3yh2ee/1KOvYgrOJeCUndOpjcDOwJ/17832ecfed4f651168232c263cf6bcfd/og-image.jpg?canvas=1200:630&width=1200&height=630&fit=bounds&bg-color=FFFFFF)"
}
},
{
"title": "time_elapsed (Range)",
"layout": {
"column": 5,
"row": 1,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.stacked-bar"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL FACET cases(WHERE numeric(time_elapsed) <= 10 as '<10ms',WHERE numeric(time_elapsed) > 10 and numeric(time_elapsed) <= 50 as '10-50ms',WHERE numeric(time_elapsed) >50 as '>50ms') TIMESERIES since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "time_elapsed (Avg/90th)",
"layout": {
"column": 9,
"row": 1,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT average(numeric(time_elapsed)) AS 'Average', percentile(numeric(time_elapsed),90) AS 'Percentile' WHERE geo_datacenter IS NOT NULL TIMESERIES since 1 hour ago"
}
],
"nullValues": {
"nullValue": "preserve"
},
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": {
"isLabelVisible": true
},
"yAxisLeft": {
"zero": true
},
"yAxisRight": {
"zero": true
}
}
},
{
"title": "Total Bandwidth (All POPs)",
"layout": {
"column": 1,
"row": 4,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.billboard"
},
"rawConfiguration": {
"dataFormatters": [],
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT sum(numeric(resp_header_size)+numeric(resp_body_size))/1000/1000 AS 'Total GB', rate(sum(numeric(resp_header_size)+numeric(resp_body_size))/1000*8, 1 minute) AS 'Total MBps' WHERE geo_datacenter IS NOT NULL SINCE 1 hour ago COMPARE WITH 1 hour AGO"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "client_resp_ttfb (Range)",
"layout": {
"column": 5,
"row": 4,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.stacked-bar"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT count(*) WHERE geo_datacenter IS NOT NULL FACET cases(WHERE numeric(resp_ttfb) <= 10 as '<10ms',WHERE numeric(resp_ttfb) > 10 and numeric(resp_ttfb) <= 50 as '10-50ms',WHERE numeric(resp_ttfb) >50 as '>50ms') TIMESERIES since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
}
}
},
{
"title": "client_resp_ttfb (Avg/90th)",
"layout": {
"column": 9,
"row": 4,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT average(numeric(resp_ttfb)) AS 'Average', percentile(numeric(resp_ttfb),90) AS 'Percentile' WHERE geo_datacenter IS NOT NULL TIMESERIES since 1 hour ago"
}
],
"nullValues": {
"nullValue": "preserve"
},
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": {
"isLabelVisible": true
},
"yAxisLeft": {
"zero": true
},
"yAxisRight": {
"zero": true
}
}
},
{
"title": "Bandwidth by Datacenter",
"layout": {
"column": 1,
"row": 7,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT sum(numeric(resp_header_size)+numeric(resp_body_size))/1000 AS 'Total MB', rate(sum(numeric(resp_header_size)+numeric(resp_body_size))/1000*8, 1 minute) AS 'Total MBps' WHERE geo_datacenter IS NOT NULL FACET geo_datacenter TIMESERIES SINCE 1 hour ago LIMIT MAX ORDER BY 'Total MB'"
}
],
"nullValues": {
"nullValue": "preserve"
},
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": {
"isLabelVisible": true
},
"yAxisLeft": {
"zero": true
},
"yAxisRight": {
"zero": true
}
}
},
{
"title": "time_elapsed (ms) by Response Status (Avg/90th)",
"layout": {
"column": 5,
"row": 7,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT average(numeric(time_elapsed))/1000 AS 'Average', percentile(numeric(time_elapsed),90)/1000 AS 'Percentile' WHERE geo_datacenter IS NOT NULL FACET status TIMESERIES LIMIT MAX since 1 hour ago"
}
],
"nullValues": {
"nullValue": "preserve"
},
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": {
"isLabelVisible": true
},
"yAxisLeft": {
"zero": true
},
"yAxisRight": {
"zero": true
}
}
},
{
"title": "client_resp_ttfb by Response Status (Avg/90th)",
"layout": {
"column": 9,
"row": 7,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT average(numeric(resp_ttfb)) AS 'Average', percentile(numeric(resp_ttfb),90) AS 'Percentile' WHERE geo_datacenter IS NOT NULL FACET status TIMESERIES since 1 hour ago"
}
],
"nullValues": {
"nullValue": "preserve"
},
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": {
"isLabelVisible": true
},
"yAxisLeft": {
"zero": true
},
"yAxisRight": {
"zero": true
}
}
},
{
"title": "time_elapsed (ms) by Data Center (Avg/90th)",
"layout": {
"column": 1,
"row": 10,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT average(numeric(time_elapsed))/1000 AS 'Average', percentile(numeric(time_elapsed),90)/1000 AS 'Percentile' WHERE geo_datacenter IS NOT NULL FACET geo_datacenter TIMESERIES LIMIT MAX since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": {
"isLabelVisible": true
},
"yAxisLeft": {
"zero": true
},
"yAxisRight": {
"zero": true
}
}
},
{
"title": "time_elapsed (ms) by URL (Avg/90th)",
"layout": {
"column": 5,
"row": 10,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT average(numeric(time_elapsed))/1000 AS 'Average)', percentile(numeric(time_elapsed),90)/1000 AS 'Percentile' WHERE geo_datacenter IS NOT NULL FACET url TIMESERIES LIMIT MAX since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": {
"isLabelVisible": true
},
"yAxisLeft": {
"zero": true
},
"yAxisRight": {
"zero": true
}
}
},
{
"title": "time_elapsed (ms) by TLS Version (Avg/90th)",
"layout": {
"column": 9,
"row": 10,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"markers": {
"displayedTypes": {
"criticalViolations": false,
"deployments": true,
"relatedDeployments": true,
"warningViolations": false
}
},
"nrqlQueries": [
{
"accountIds": [
{YOUR_ACCOUNT_ID}
],
"query": "FROM Log SELECT average(numeric(time_elapsed))/1000 AS 'Average)', percentile(numeric(time_elapsed),90)/1000 AS 'Percentile' WHERE geo_datacenter IS NOT NULL FACET tls_client_protocol TIMESERIES LIMIT MAX since 1 hour ago"
}
],
"platformOptions": {
"ignoreTimeRange": false
},
"thresholds": {
"isLabelVisible": true
},
"yAxisLeft": {
"zero": true
},
"yAxisRight": {
"zero": true
}
}
}
]
}
],
"variables": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment