I originally went with “table” because that’s what I thought I needed.
I’ve been poking at it more and this is almost what I wanted:
{
"columns": [
{
"text": "Avg",
"value": "avg"
}
],
"datasource": "Fastnetmon",
"fontSize": "100%",
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 0
},
"hideTimeOverride": false,
"id": 4,
"links": [],
"pageSize": 10,
"scroll": true,
"showHeader": true,
"sort": {
"col": 1,
"desc": true
},
"styles": [
{
"alias": "Time",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "date"
},
{
"alias": "Data in",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"link": false,
"pattern": "Avg",
"thresholds": [],
"type": "number",
"unit": "decbits"
},
{
"alias": "Host",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"pattern": "Metric",
"thresholds": [],
"type": "string",
"unit": "short"
},
{
"alias": "",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"decimals": 2,
"pattern": "/.*/",
"thresholds": [],
"type": "number",
"unit": "short"
}
],
"targets": [
{
"alias": "[[tag_host]]",
"groupBy": [
{
"params": [
"host"
],
"type": "tag"
}
],
"hide": false,
"limit": "",
"measurement": "hosts_traffic",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT \"bits_incoming\" FROM \"hosts_traffic\" WHERE $timeFilter GROUP BY \"host\" LIMIT 10",
"rawQuery": false,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"bits_incoming"
],
"type": "field"
},
{
"params": [
"10"
],
"type": "top"
}
]
],
"tags": []
}
],
"timeFrom": "5m",
"timeShift": null,
"title": "Top 10 data in",
"transform": "timeseries_aggregations",
"type": "table"
}
Unfortunately no matter what I try it seems hell bent on giving me every host in the list that had any activity in the defined timespan – which could be hundreds or potentially thousands.
Aside from the fact that I’m only interested in the top ten, having that many entries auto-refreshing every five seconds with the other panels would likely kill my browser.