Skip to content

Instantly share code, notes, and snippets.

@danifitz
Last active February 15, 2021 17:40
Show Gist options
  • Save danifitz/5fc348e5303d836bb7905d6867d880b1 to your computer and use it in GitHub Desktop.
Save danifitz/5fc348e5303d836bb7905d6867d880b1 to your computer and use it in GitHub Desktop.
JSON definition for New Relic dashboard visualising Google Lighthouse Metrics
{
"title": "Lighthouse Metrics",
"icon": "line-chart",
"grid_column_count": 12,
"filter": null,
"owner": {
"email": "[email protected]",
"id": 2334598
},
"widgets": [{
"title": "Lighthouse Metrics",
"nrql": "FROM SyntheticCheck SELECT average(custom.firstContentfulPaint) as 'FCP', average(custom.largestContentfulPaint) as 'LCP', average(custom.interactive) as 'TTI', average(custom.totalBlockingTime) as 'TBT', average(custom.cumulativeLayoutShift) as 'CLS', average(custom.speedIndex) as 'Speed Index'",
"process_as": "billboard",
"width": 4,
"height": 3,
"row": 1,
"column": 1,
"event_types": null,
"facet": null,
"customizations": {
"thresholds": {}
},
"notes": null
}, {
"title": "Lighthouse Metrics - trending",
"nrql": null,
"width": 8,
"height": 3,
"row": 1,
"column": 5,
"notes": null,
"event_types": null,
"facet": null,
"agent_ids": [],
"duration": null,
"metrics": null,
"raw_metric_name": null,
"end_time": null,
"cds_params_payload": null,
"renderer": null,
"renderer_props": null,
"extension_type": "CUSTOMIZED_WIDGET",
"customizations": {
"drilldown": {}
}
}, {
"title": "First Contentful Paint",
"nrql": null,
"width": 4,
"height": 3,
"row": 4,
"column": 1,
"notes": null,
"event_types": null,
"facet": null,
"agent_ids": [],
"duration": null,
"metrics": null,
"raw_metric_name": null,
"end_time": null,
"cds_params_payload": null,
"renderer": null,
"renderer_props": null,
"extension_type": "CUSTOMIZED_WIDGET",
"customizations": {
"drilldown": {}
}
}, {
"title": "First Contentful Paint",
"nrql": null,
"width": 8,
"height": 3,
"row": 4,
"column": 5,
"notes": null,
"event_types": null,
"facet": null,
"agent_ids": [],
"duration": null,
"metrics": null,
"raw_metric_name": null,
"end_time": null,
"cds_params_payload": null,
"renderer": null,
"renderer_props": null,
"extension_type": "CUSTOMIZED_WIDGET",
"customizations": {
"drilldown": {}
}
}, {
"title": "Largest Contentful Paint",
"nrql": null,
"width": 4,
"height": 3,
"row": 7,
"column": 1,
"notes": null,
"event_types": null,
"facet": null,
"agent_ids": [],
"duration": null,
"metrics": null,
"raw_metric_name": null,
"end_time": null,
"cds_params_payload": null,
"renderer": null,
"renderer_props": null,
"extension_type": "CUSTOMIZED_WIDGET",
"customizations": {
"drilldown": {}
}
}, {
"title": "Largest Contentful Paint",
"nrql": null,
"width": 8,
"height": 3,
"row": 7,
"column": 5,
"notes": null,
"event_types": null,
"facet": null,
"agent_ids": [],
"duration": null,
"metrics": null,
"raw_metric_name": null,
"end_time": null,
"cds_params_payload": null,
"renderer": null,
"renderer_props": null,
"extension_type": "CUSTOMIZED_WIDGET",
"customizations": {
"drilldown": {}
}
}, {
"title": "TTI",
"nrql": null,
"width": 4,
"height": 3,
"row": 10,
"column": 1,
"notes": null,
"event_types": null,
"facet": null,
"agent_ids": [],
"duration": null,
"metrics": null,
"raw_metric_name": null,
"end_time": null,
"cds_params_payload": null,
"renderer": null,
"renderer_props": null,
"extension_type": "CUSTOMIZED_WIDGET",
"customizations": {
"drilldown": {}
}
}, {
"title": "TTI - trending",
"nrql": null,
"width": 8,
"height": 3,
"row": 10,
"column": 5,
"notes": null,
"event_types": null,
"facet": null,
"agent_ids": [],
"duration": null,
"metrics": null,
"raw_metric_name": null,
"end_time": null,
"cds_params_payload": null,
"renderer": null,
"renderer_props": null,
"extension_type": "CUSTOMIZED_WIDGET",
"customizations": {
"drilldown": {}
}
}, {
"title": "Total Blocking Time (TBT)",
"nrql": null,
"width": 4,
"height": 3,
"row": 13,
"column": 1,
"notes": null,
"event_types": null,
"facet": null,
"agent_ids": [],
"duration": null,
"metrics": null,
"raw_metric_name": null,
"end_time": null,
"cds_params_payload": null,
"renderer": null,
"renderer_props": null,
"extension_type": "CUSTOMIZED_WIDGET",
"customizations": {
"drilldown": {}
}
}, {
"title": "Total Blocking Time (TBT) - trending",
"nrql": null,
"width": 8,
"height": 3,
"row": 13,
"column": 5,
"notes": null,
"event_types": null,
"facet": null,
"agent_ids": [],
"duration": null,
"metrics": null,
"raw_metric_name": null,
"end_time": null,
"cds_params_payload": null,
"renderer": null,
"renderer_props": null,
"extension_type": "CUSTOMIZED_WIDGET",
"customizations": {
"drilldown": {}
}
}, {
"title": "Cumulative Layout Shift (CLS)",
"nrql": null,
"width": 4,
"height": 3,
"row": 16,
"column": 1,
"notes": null,
"event_types": null,
"facet": null,
"agent_ids": [],
"duration": null,
"metrics": null,
"raw_metric_name": null,
"end_time": null,
"cds_params_payload": null,
"renderer": null,
"renderer_props": null,
"extension_type": "CUSTOMIZED_WIDGET",
"customizations": {
"drilldown": {}
}
}, {
"title": "Cumulative Layout Shift (CLS)",
"nrql": null,
"width": 8,
"height": 3,
"row": 16,
"column": 5,
"notes": null,
"event_types": null,
"facet": null,
"agent_ids": [],
"duration": null,
"metrics": null,
"raw_metric_name": null,
"end_time": null,
"cds_params_payload": null,
"renderer": null,
"renderer_props": null,
"extension_type": "CUSTOMIZED_WIDGET",
"customizations": {
"drilldown": {}
}
}, {
"title": "Speed Index",
"nrql": null,
"width": 4,
"height": 3,
"row": 19,
"column": 1,
"notes": null,
"event_types": null,
"facet": null,
"agent_ids": [],
"duration": null,
"metrics": null,
"raw_metric_name": null,
"end_time": null,
"cds_params_payload": null,
"renderer": null,
"renderer_props": null,
"extension_type": "CUSTOMIZED_WIDGET",
"customizations": {
"drilldown": {}
}
}, {
"title": "Speed Index - trending",
"nrql": null,
"width": 8,
"height": 3,
"row": 19,
"column": 5,
"notes": null,
"event_types": null,
"facet": null,
"agent_ids": [],
"duration": null,
"metrics": null,
"raw_metric_name": null,
"end_time": null,
"cds_params_payload": null,
"renderer": null,
"renderer_props": null,
"extension_type": "CUSTOMIZED_WIDGET",
"customizations": {
"drilldown": {}
}
}],
"dashboard_account_id": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment