Skip to content

Instantly share code, notes, and snippets.

@gspncr
Created August 11, 2020 10:25
Show Gist options
  • Save gspncr/e1c3dbb6553f507a31947531076476c6 to your computer and use it in GitHub Desktop.
Save gspncr/e1c3dbb6553f507a31947531076476c6 to your computer and use it in GitHub Desktop.
{
"dashboard": {
"metadata": { "version": 1 },
"title": "k6 Sample Dashboard",
"icon": "line-chart",
"visibility": "all",
"editable": "editable_by_all",
"filter": null,
"widgets": [
{
"visualization": "markdown",
"layout": {
"width": 1,
"height": 3,
"row": 1,
"column": 1
},
"widget_id": 20240002,
"account_id": 1147177,
"data": [
{
"source": "![](https://upload.wikimedia.org/wikipedia/commons/thumb/e/ef/K6-logo.svg/1200px-K6-logo.svg.png)"
}
],
"presentation": {
"title": "",
"notes": null
}
},
{
"visualization": "faceted_area_chart",
"layout": {
"width": 4,
"height": 3,
"row": 1,
"column": 2
},
"widget_id": 20240081,
"account_id": 1147177,
"data": [
{
"nrql": "SELECT latest(k6.vus) FROM Metric TIMESERIES SINCE 1800 seconds ago"
}
],
"presentation": {
"title": "Virtual Users",
"notes": null
}
},
{
"visualization": "generic",
"layout": {
"width": 4,
"height": 3,
"row": 1,
"column": 6
},
"widget_id": 20240121,
"account_id": 1147177,
"data": [
{
"renderer": null,
"renderer_props": null,
"extension_type": "MULTIQUERY"
}
],
"presentation": {
"title": "Response time: max, 90th, avg, median",
"notes": null,
"drilldown_dashboard_id": null
}
},
{
"visualization": "uniques_list",
"layout": {
"width": 3,
"height": 12,
"row": 1,
"column": 10
},
"widget_id": 20243735,
"account_id": 1147177,
"data": [
{
"nrql": "FROM Metric select uniques(metricName) where metricName like 'k6%' limit max"
}
],
"presentation": {
"title": "All k6 metrics",
"notes": null
}
},
{
"visualization": "faceted_area_chart",
"layout": {
"width": 4,
"height": 3,
"row": 4,
"column": 2
},
"widget_id": 20240208,
"account_id": 1147177,
"data": [
{
"nrql": "select rate(max(k6.http_reqs.per_second), 1 seconds) from Metric timeseries 10 second since 30 minutes ago"
}
],
"presentation": {
"title": "Requests per second",
"notes": null
}
},
{
"visualization": "line_chart",
"layout": {
"width": 4,
"height": 3,
"row": 4,
"column": 6
},
"widget_id": 20240327,
"account_id": 1147177,
"data": [
{
"nrql": "SELECT sum(k6.http_req_duration.sum.percentiles) as '90th' FROM Metric WHERE percentile = 90 TIMESERIES 10 seconds SINCE 1800 seconds ago"
}
],
"presentation": {
"title": "Response timings - 90th",
"notes": null
}
},
{
"visualization": "line_chart",
"layout": {
"width": 4,
"height": 3,
"row": 7,
"column": 2
},
"widget_id": 20241978,
"account_id": 1147177,
"data": [
{
"nrql": "SELECT sum(k6.data_received) as 'Data Received', max(k6.data_sent) as 'Data Sent' FROM Metric TIMESERIES 10 seconds since 30 minutes ago"
}
],
"presentation": {
"title": "Data Sent/Received (B)",
"notes": null
}
},
{
"visualization": "histogram",
"layout": {
"width": 4,
"height": 3,
"row": 7,
"column": 6
},
"widget_id": 20243726,
"account_id": 1147177,
"data": [
{
"nrql": "SELECT histogram(`k6.http_reqs`, 80, 20) FROM Metric SINCE 30 minutes AGO UNTIL NOW "
}
],
"presentation": {
"title": "Requests Histogram",
"notes": null
}
},
{
"visualization": "faceted_area_chart",
"layout": {
"width": 4,
"height": 3,
"row": 10,
"column": 2
},
"widget_id": 20241858,
"account_id": 1147177,
"data": [
{
"nrql": "select derivative(k6.http_reqs, 30 seconds) as 'Request Rate' from Metric timeseries since 30 minutes ago"
}
],
"presentation": {
"title": "Request Rate",
"notes": null
}
},
{
"visualization": "faceted_area_chart",
"layout": {
"width": 4,
"height": 3,
"row": 10,
"column": 6
},
"widget_id": 20243764,
"account_id": 1147177,
"data": [
{
"nrql": "FROM Metric SELECT sum(k6.http_req_blocked.per_second) as 'Blocked Requests' timeseries 10 seconds since 30 minutes ago"
}
],
"presentation": {
"title": "Blocked Requests",
"notes": null
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment