* Table: Footer support for multiple reducers * fix migrator test output due to required default value * fix go migration test * more go test fixes * fix go tests for footer * Merge #110062 * update migration dashboard * Small docs fixes * Small docs fix * remove migration method in Go, update js unit test * add migration dashboard for footer and clean up some issues with countAll * Footer should always use og rows for calcs * update footer to be unaffected by filtering and sorting * more e2es * add more complex footer to kitchen sink, migrate panel all the way up * update codeowners for e2e * relocate footer migration panels and e2es to main 12.2 migration dashboard * go further with the migration; kill unused fields, rename reducer to reducers * get the go code up to date, move enablePagination to its own option as well * add a unit to one of the numeric columns with a footer in kitchen sink * fix reducers override in kitchen sink migration table --------- Co-authored-by: Paul Marbach <paul.marbach@grafana.com> Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com> Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com> Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2148 lines
54 KiB
JSON
2148 lines
54 KiB
JSON
{
|
|
"annotations": {
|
|
"list": [
|
|
{
|
|
"builtIn": 1,
|
|
"datasource": {
|
|
"type": "grafana",
|
|
"uid": "-- Grafana --"
|
|
},
|
|
"enable": true,
|
|
"hide": true,
|
|
"iconColor": "rgba(0, 211, 255, 1)",
|
|
"name": "Annotations & Alerts",
|
|
"type": "dashboard"
|
|
}
|
|
]
|
|
},
|
|
"editable": true,
|
|
"fiscalYearStartMonth": 0,
|
|
"graphTooltip": 0,
|
|
"id": 21409,
|
|
"links": [],
|
|
"panels": [
|
|
{
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"custom": {
|
|
"align": "auto",
|
|
"cellOptions": {
|
|
"type": "auto",
|
|
"wrapText": false
|
|
},
|
|
"filterable": true,
|
|
"inspect": false
|
|
},
|
|
"fieldMinMax": true,
|
|
"links": [],
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 80
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "A"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"mode": "lcd",
|
|
"type": "gauge"
|
|
}
|
|
},
|
|
{
|
|
"id": "min",
|
|
"value": 0
|
|
},
|
|
{
|
|
"id": "max",
|
|
"value": 100
|
|
},
|
|
{
|
|
"id": "custom.inspect",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Info"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "links",
|
|
"value": [
|
|
{
|
|
"targetBlank": true,
|
|
"title": "Google this term",
|
|
"url": "https://google.com/search?q=${__value:percentencode}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "actions",
|
|
"value": [
|
|
{
|
|
"fetch": {
|
|
"body": "{}",
|
|
"headers": [["Content-Type", "application/json"]],
|
|
"method": "GET",
|
|
"queryParams": [],
|
|
"url": "https://grafana.com"
|
|
},
|
|
"title": "My action",
|
|
"type": "fetch"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Min"
|
|
},
|
|
"properties": []
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Max"
|
|
},
|
|
"properties": []
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "State"
|
|
},
|
|
"properties": []
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Time"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"type": "auto"
|
|
}
|
|
},
|
|
{
|
|
"id": "unit",
|
|
"value": "dateTimeFromNow"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byRegexp",
|
|
"options": "/Image/"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"alt": "Grafana icon",
|
|
"type": "image"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byRegexp",
|
|
"options": "/(Time|Min|Max|Info|State|Image)/"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 110
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Info"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"type": "color-text"
|
|
}
|
|
},
|
|
{
|
|
"id": "mappings",
|
|
"value": [
|
|
{
|
|
"options": {
|
|
"pattern": "up",
|
|
"result": {
|
|
"color": "green",
|
|
"index": 0
|
|
}
|
|
},
|
|
"type": "regex"
|
|
},
|
|
{
|
|
"options": {
|
|
"pattern": "down",
|
|
"result": {
|
|
"color": "red",
|
|
"index": 1
|
|
}
|
|
},
|
|
"type": "regex"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Min"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"mode": "basic",
|
|
"type": "color-background"
|
|
}
|
|
},
|
|
{
|
|
"id": "color",
|
|
"value": {
|
|
"fixedColor": "blue",
|
|
"mode": "continuous-YlRd"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Max"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"mode": "gradient",
|
|
"type": "color-background"
|
|
}
|
|
},
|
|
{
|
|
"id": "color",
|
|
"value": {
|
|
"mode": "continuous-purples"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "State"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "displayName",
|
|
"value": "State"
|
|
},
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Long Text"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"type": "auto",
|
|
"wrapText": true
|
|
}
|
|
},
|
|
{
|
|
"id": "custom.width",
|
|
"value": 255
|
|
},
|
|
{
|
|
"id": "custom.tooltip.field",
|
|
"value": "State"
|
|
},
|
|
{
|
|
"id": "custom.tooltip.placement",
|
|
"value": "left"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Pills"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"type": "pill",
|
|
"wrapText": true
|
|
}
|
|
},
|
|
{
|
|
"id": "custom.width",
|
|
"value": 120
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Data Link"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"type": "data-links",
|
|
"wrapText": true
|
|
}
|
|
},
|
|
{
|
|
"id": "links",
|
|
"value": [
|
|
{
|
|
"targetBlank": true,
|
|
"title": "Product",
|
|
"url": "${__value.text}"
|
|
},
|
|
{
|
|
"targetBlank": true,
|
|
"title": "Grafana",
|
|
"url": "https://grafana.com"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "custom.width",
|
|
"value": 139
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Gauge"
|
|
},
|
|
"properties": []
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Action"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"type": "actions"
|
|
}
|
|
},
|
|
{
|
|
"id": "actions",
|
|
"value": [
|
|
{
|
|
"confirmation": "",
|
|
"fetch": {
|
|
"body": "{}",
|
|
"headers": [["Content-Type", "application/json"]],
|
|
"method": "GET",
|
|
"queryParams": [],
|
|
"url": "/api/health"
|
|
},
|
|
"title": "Get instance health",
|
|
"type": "fetch"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "custom.width",
|
|
"value": 142
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Image w/ Link"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "links",
|
|
"value": [
|
|
{
|
|
"targetBlank": true,
|
|
"title": "Grafana Cloud Products",
|
|
"url": "https://grafana.com/products/cloud/"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {
|
|
"h": 18,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"id": 1,
|
|
"options": {
|
|
"cellHeight": "sm",
|
|
"footer": {
|
|
"countRows": false,
|
|
"enablePagination": false,
|
|
"fields": ["Min", "Max"],
|
|
"reducer": ["max"],
|
|
"show": true
|
|
},
|
|
"frameIndex": 0,
|
|
"frozenColumns": {
|
|
"left": 1
|
|
},
|
|
"showHeader": true,
|
|
"sortBy": [
|
|
{
|
|
"desc": false,
|
|
"displayName": "Long Text"
|
|
}
|
|
]
|
|
},
|
|
"pluginVersion": "12.1.0",
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"refId": "A",
|
|
"scenarioId": "random_walk_table"
|
|
},
|
|
{
|
|
"csvContent": "Info,Image,Image w/ Link,Pills,Data Link,Long Text\ndown,https://grafana.com/media/menus/products/grafana-menu-icon.svg,https://grafana.com/media/menus/products/grafana-menu-icon.svg,hello,https://grafana.com,\"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse tempus et augue et lacinia. Interdum et malesuada fames ac ante ipsum primis in faucibus.\"\nup,https://grafana.com/media/menus/products/grafana-menu-icon-logs.svg,https://grafana.com/media/menus/products/grafana-menu-icon-logs.svg,\"[1,2,3,\"\"foo\"\",\"\"bar\"\"]\",https://grafana.com/solutions/kubernetes/,\"Sed imperdiet eget diam sit amet fringilla. Curabitur quis lacus blandit, mollis diam non, accumsan tortor.\"\nup fast,https://grafana.com/media/menus/products/grafana-menu-icon-traces.svg,https://grafana.com/media/menus/products/grafana-menu-icon-traces.svg,\"foo,1,4,beep\",https://k6.io/,\"Proin ac libero vulputate ex vulputate pharetra ut vel lacus. Phasellus quis dolor sed leo finibus scelerisque. Ut vel finibus leo, sed viverra ipsum.\"\ndown fast,https://grafana.com/media/menus/products/grafana-menu-icon-metrics.svg,https://grafana.com/media/menus/products/grafana-menu-icon-metrics.svg,\"foo,bar,baz,a longer one,bim\",https://grafana.com/products/cloud/,\"Nullam in pulvinar justo. Nunc dictum arcu ac pellentesque bibendum. Sed in erat turpis. Vestibulum eu orci ac ligula lobortis tempus.\"",
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"refId": "B",
|
|
"scenarioId": "csv_content"
|
|
}
|
|
],
|
|
"title": "Kitchen sink - v12.1 schema",
|
|
"transformations": [
|
|
{
|
|
"id": "joinByField",
|
|
"options": {
|
|
"byField": "Info",
|
|
"mode": "outerTabular"
|
|
}
|
|
},
|
|
{
|
|
"id": "calculateField",
|
|
"options": {
|
|
"alias": "Action",
|
|
"binary": {
|
|
"left": {
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Image"
|
|
}
|
|
},
|
|
"right": {
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "$Filters"
|
|
}
|
|
}
|
|
},
|
|
"mode": "index",
|
|
"reduce": {
|
|
"reducer": "sum"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "organize",
|
|
"options": {
|
|
"excludeByName": {
|
|
"A": false
|
|
},
|
|
"includeByName": {},
|
|
"indexByName": {
|
|
"A": 11,
|
|
"Action": 7,
|
|
"Data Link": 10,
|
|
"Image": 5,
|
|
"Image w/ Link": 6,
|
|
"Info": 1,
|
|
"Long Text": 9,
|
|
"Max A": 3,
|
|
"Min A": 2,
|
|
"Pills": 8,
|
|
"State A": 4,
|
|
"Time A": 0
|
|
},
|
|
"orderBy": [],
|
|
"orderByMode": "manual",
|
|
"renameByName": {
|
|
"A": "Gauge",
|
|
"Info": "",
|
|
"Max A": "Max",
|
|
"Min A": "Min",
|
|
"State A": "State",
|
|
"Time": "Some really long title that requires wrapping",
|
|
"Time A": "Time",
|
|
"img_url": "Cat"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"type": "table"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"custom": {
|
|
"align": "auto",
|
|
"cellOptions": {
|
|
"type": "auto",
|
|
"wrapText": false
|
|
},
|
|
"filterable": true,
|
|
"inspect": false
|
|
},
|
|
"fieldMinMax": true,
|
|
"links": [],
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 80
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "A"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"mode": "lcd",
|
|
"type": "gauge"
|
|
}
|
|
},
|
|
{
|
|
"id": "min",
|
|
"value": 0
|
|
},
|
|
{
|
|
"id": "max",
|
|
"value": 100
|
|
},
|
|
{
|
|
"id": "custom.inspect",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Info"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "links",
|
|
"value": [
|
|
{
|
|
"targetBlank": true,
|
|
"title": "Google this term",
|
|
"url": "https://google.com/search?q=${__value:percentencode}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "actions",
|
|
"value": [
|
|
{
|
|
"fetch": {
|
|
"body": "{}",
|
|
"headers": [["Content-Type", "application/json"]],
|
|
"method": "GET",
|
|
"queryParams": [],
|
|
"url": "https://grafana.com"
|
|
},
|
|
"title": "My action",
|
|
"type": "fetch"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Min"
|
|
},
|
|
"properties": []
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Max"
|
|
},
|
|
"properties": []
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "State"
|
|
},
|
|
"properties": []
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Time"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"type": "auto"
|
|
}
|
|
},
|
|
{
|
|
"id": "unit",
|
|
"value": "dateTimeFromNow"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byRegexp",
|
|
"options": "/Image/"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"alt": "Grafana icon",
|
|
"type": "image"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byRegexp",
|
|
"options": "/(Time|Min|Max|Info|State|Image)/"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 110
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Info"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"type": "color-text"
|
|
}
|
|
},
|
|
{
|
|
"id": "mappings",
|
|
"value": [
|
|
{
|
|
"options": {
|
|
"pattern": "up",
|
|
"result": {
|
|
"color": "green",
|
|
"index": 0
|
|
}
|
|
},
|
|
"type": "regex"
|
|
},
|
|
{
|
|
"options": {
|
|
"pattern": "down",
|
|
"result": {
|
|
"color": "red",
|
|
"index": 1
|
|
}
|
|
},
|
|
"type": "regex"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Min"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"mode": "basic",
|
|
"type": "color-background"
|
|
}
|
|
},
|
|
{
|
|
"id": "color",
|
|
"value": {
|
|
"fixedColor": "blue",
|
|
"mode": "continuous-YlRd"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Max"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"mode": "gradient",
|
|
"type": "color-background"
|
|
}
|
|
},
|
|
{
|
|
"id": "color",
|
|
"value": {
|
|
"mode": "continuous-purples"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "State"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "displayName",
|
|
"value": "State"
|
|
},
|
|
{
|
|
"id": "custom.hideFrom.viz",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Long Text"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"type": "auto"
|
|
}
|
|
},
|
|
{
|
|
"id": "custom.wrapText",
|
|
"value": true
|
|
},
|
|
{
|
|
"id": "custom.width",
|
|
"value": 255
|
|
},
|
|
{
|
|
"id": "custom.tooltip.field",
|
|
"value": "State"
|
|
},
|
|
{
|
|
"id": "custom.tooltip.placement",
|
|
"value": "left"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Pills"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"type": "pill"
|
|
}
|
|
},
|
|
{
|
|
"id": "custom.wrapText",
|
|
"value": true
|
|
},
|
|
{
|
|
"id": "custom.width",
|
|
"value": 120
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Data Link"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"type": "data-links"
|
|
}
|
|
},
|
|
{
|
|
"id": "custom.wrapText",
|
|
"value": true
|
|
},
|
|
{
|
|
"id": "links",
|
|
"value": [
|
|
{
|
|
"targetBlank": true,
|
|
"title": "Product",
|
|
"url": "${__value.text}"
|
|
},
|
|
{
|
|
"targetBlank": true,
|
|
"title": "Grafana",
|
|
"url": "https://grafana.com"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "custom.width",
|
|
"value": 139
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Gauge"
|
|
},
|
|
"properties": []
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Action"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"type": "actions"
|
|
}
|
|
},
|
|
{
|
|
"id": "actions",
|
|
"value": [
|
|
{
|
|
"confirmation": "",
|
|
"fetch": {
|
|
"body": "{}",
|
|
"headers": [["Content-Type", "application/json"]],
|
|
"method": "GET",
|
|
"queryParams": [],
|
|
"url": "/api/health"
|
|
},
|
|
"title": "Get instance health",
|
|
"type": "fetch"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "custom.width",
|
|
"value": 142
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Image w/ Link"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "links",
|
|
"value": [
|
|
{
|
|
"targetBlank": true,
|
|
"title": "Grafana Cloud Products",
|
|
"url": "https://grafana.com/products/cloud/"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byNames",
|
|
"options": {
|
|
"mode": "include",
|
|
"names": ["Min", "Max"]
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.footer.reducers",
|
|
"value": ["max"]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {
|
|
"h": 18,
|
|
"w": 12,
|
|
"x": 12,
|
|
"y": 0
|
|
},
|
|
"id": 2,
|
|
"options": {
|
|
"cellHeight": "sm",
|
|
"frameIndex": 0,
|
|
"frozenColumns": {
|
|
"left": 1
|
|
},
|
|
"showHeader": true,
|
|
"sortBy": [
|
|
{
|
|
"desc": false,
|
|
"displayName": "Long Text"
|
|
}
|
|
]
|
|
},
|
|
"pluginVersion": "12.2.0",
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"refId": "A",
|
|
"scenarioId": "random_walk_table"
|
|
},
|
|
{
|
|
"csvContent": "Info,Image,Image w/ Link,Pills,Data Link,Long Text\ndown,https://grafana.com/media/menus/products/grafana-menu-icon.svg,https://grafana.com/media/menus/products/grafana-menu-icon.svg,hello,https://grafana.com,\"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse tempus et augue et lacinia. Interdum et malesuada fames ac ante ipsum primis in faucibus.\"\nup,https://grafana.com/media/menus/products/grafana-menu-icon-logs.svg,https://grafana.com/media/menus/products/grafana-menu-icon-logs.svg,\"[1,2,3,\"\"foo\"\",\"\"bar\"\"]\",https://grafana.com/solutions/kubernetes/,\"Sed imperdiet eget diam sit amet fringilla. Curabitur quis lacus blandit, mollis diam non, accumsan tortor.\"\nup fast,https://grafana.com/media/menus/products/grafana-menu-icon-traces.svg,https://grafana.com/media/menus/products/grafana-menu-icon-traces.svg,\"foo,1,4,beep\",https://k6.io/,\"Proin ac libero vulputate ex vulputate pharetra ut vel lacus. Phasellus quis dolor sed leo finibus scelerisque. Ut vel finibus leo, sed viverra ipsum.\"\ndown fast,https://grafana.com/media/menus/products/grafana-menu-icon-metrics.svg,https://grafana.com/media/menus/products/grafana-menu-icon-metrics.svg,\"foo,bar,baz,a longer one,bim\",https://grafana.com/products/cloud/,\"Nullam in pulvinar justo. Nunc dictum arcu ac pellentesque bibendum. Sed in erat turpis. Vestibulum eu orci ac ligula lobortis tempus.\"",
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"refId": "B",
|
|
"scenarioId": "csv_content"
|
|
}
|
|
],
|
|
"title": "Kitchen sink - v12.2 schema",
|
|
"transformations": [
|
|
{
|
|
"id": "joinByField",
|
|
"options": {
|
|
"byField": "Info",
|
|
"mode": "outerTabular"
|
|
}
|
|
},
|
|
{
|
|
"id": "calculateField",
|
|
"options": {
|
|
"alias": "Action",
|
|
"binary": {
|
|
"left": {
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Image"
|
|
}
|
|
},
|
|
"right": {
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "$Filters"
|
|
}
|
|
}
|
|
},
|
|
"mode": "index",
|
|
"reduce": {
|
|
"reducer": "sum"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "organize",
|
|
"options": {
|
|
"excludeByName": {
|
|
"A": false
|
|
},
|
|
"includeByName": {},
|
|
"indexByName": {
|
|
"A": 11,
|
|
"Action": 7,
|
|
"Data Link": 10,
|
|
"Image": 5,
|
|
"Image w/ Link": 6,
|
|
"Info": 1,
|
|
"Long Text": 9,
|
|
"Max A": 3,
|
|
"Min A": 2,
|
|
"Pills": 8,
|
|
"State A": 4,
|
|
"Time A": 0
|
|
},
|
|
"orderBy": [],
|
|
"orderByMode": "manual",
|
|
"renameByName": {
|
|
"A": "Gauge",
|
|
"Info": "",
|
|
"Max A": "Max",
|
|
"Min A": "Min",
|
|
"State A": "State",
|
|
"Time": "Some really long title that requires wrapping",
|
|
"Time A": "Time",
|
|
"img_url": "Cat"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"type": "table"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"custom": {
|
|
"align": "auto",
|
|
"cellOptions": {
|
|
"type": "auto"
|
|
},
|
|
"filterable": true,
|
|
"inspect": false,
|
|
"wrapText": false
|
|
},
|
|
"fieldMinMax": true,
|
|
"links": [],
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 80
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "A"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"mode": "lcd",
|
|
"type": "gauge"
|
|
}
|
|
},
|
|
{
|
|
"id": "min",
|
|
"value": 0
|
|
},
|
|
{
|
|
"id": "max",
|
|
"value": 100
|
|
},
|
|
{
|
|
"id": "custom.inspect",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Boolean"
|
|
},
|
|
"properties": []
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Max"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.align",
|
|
"value": "center"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {
|
|
"h": 6,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"id": 3,
|
|
"options": {
|
|
"cellHeight": "sm",
|
|
"footer": {
|
|
"countRows": true,
|
|
"enablePagination": false,
|
|
"fields": [],
|
|
"reducer": ["sum"],
|
|
"show": true
|
|
},
|
|
"frameIndex": 0,
|
|
"showHeader": true,
|
|
"sortBy": [
|
|
{
|
|
"desc": false,
|
|
"displayName": "Long Text"
|
|
}
|
|
]
|
|
},
|
|
"pluginVersion": "12.1.0",
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"refId": "A",
|
|
"scenarioId": "random_walk_table"
|
|
},
|
|
{
|
|
"csvContent": "Info,Boolean\ndown,FALSE\nup,TRUE\nup fast,TRUE\ndown fast,FALSE",
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"refId": "B",
|
|
"scenarioId": "csv_content"
|
|
}
|
|
],
|
|
"title": "Global footer, sum",
|
|
"transformations": [
|
|
{
|
|
"id": "joinByField",
|
|
"options": {
|
|
"byField": "Info",
|
|
"mode": "outerTabular"
|
|
}
|
|
},
|
|
{
|
|
"id": "organize",
|
|
"options": {
|
|
"excludeByName": {
|
|
"A": false
|
|
},
|
|
"includeByName": {},
|
|
"indexByName": {
|
|
"A": 3,
|
|
"Boolean": 6,
|
|
"Info": 4,
|
|
"Max A": 2,
|
|
"Min A": 1,
|
|
"State A": 5,
|
|
"Time A": 0
|
|
},
|
|
"orderBy": [],
|
|
"orderByMode": "manual",
|
|
"renameByName": {
|
|
"A": "Gauge",
|
|
"Info": "",
|
|
"Max A": "Max",
|
|
"Min A": "Min",
|
|
"State A": "State",
|
|
"Time": "Some really long title that requires wrapping",
|
|
"Time A": "Time",
|
|
"img_url": "Cat"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"type": "table"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"custom": {
|
|
"align": "auto",
|
|
"cellOptions": {
|
|
"type": "auto"
|
|
},
|
|
"filterable": true,
|
|
"inspect": false,
|
|
"wrapText": false
|
|
},
|
|
"fieldMinMax": true,
|
|
"links": [],
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 80
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "A"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"mode": "lcd",
|
|
"type": "gauge"
|
|
}
|
|
},
|
|
{
|
|
"id": "min",
|
|
"value": 0
|
|
},
|
|
{
|
|
"id": "max",
|
|
"value": 100
|
|
},
|
|
{
|
|
"id": "custom.inspect",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Boolean"
|
|
},
|
|
"properties": []
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Max"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.align",
|
|
"value": "center"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {
|
|
"h": 6,
|
|
"w": 12,
|
|
"x": 12,
|
|
"y": 0
|
|
},
|
|
"id": 4,
|
|
"options": {
|
|
"cellHeight": "sm",
|
|
"footer": {
|
|
"countRows": true,
|
|
"enablePagination": false,
|
|
"fields": [],
|
|
"reducer": ["lastNotNull"],
|
|
"show": true
|
|
},
|
|
"frameIndex": 0,
|
|
"showHeader": true,
|
|
"sortBy": [
|
|
{
|
|
"desc": false,
|
|
"displayName": "Long Text"
|
|
}
|
|
]
|
|
},
|
|
"pluginVersion": "12.1.0",
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"refId": "A",
|
|
"scenarioId": "random_walk_table"
|
|
},
|
|
{
|
|
"csvContent": "Info,Boolean\ndown,FALSE\nup,TRUE\nup fast,TRUE\ndown fast,FALSE",
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"refId": "B",
|
|
"scenarioId": "csv_content"
|
|
}
|
|
],
|
|
"title": "Global footer, last not null",
|
|
"transformations": [
|
|
{
|
|
"id": "joinByField",
|
|
"options": {
|
|
"byField": "Info",
|
|
"mode": "outerTabular"
|
|
}
|
|
},
|
|
{
|
|
"id": "organize",
|
|
"options": {
|
|
"excludeByName": {
|
|
"A": false,
|
|
"Max A": false,
|
|
"Min A": false
|
|
},
|
|
"includeByName": {},
|
|
"indexByName": {
|
|
"A": 3,
|
|
"Boolean": 6,
|
|
"Info": 4,
|
|
"Max A": 2,
|
|
"Min A": 1,
|
|
"State A": 5,
|
|
"Time A": 0
|
|
},
|
|
"orderBy": [],
|
|
"orderByMode": "manual",
|
|
"renameByName": {
|
|
"A": "Gauge",
|
|
"Info": "",
|
|
"Max A": "Max",
|
|
"Min A": "Min",
|
|
"State A": "State",
|
|
"Time": "Some really long title that requires wrapping",
|
|
"Time A": "Time",
|
|
"img_url": "Cat"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"type": "table"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"custom": {
|
|
"align": "auto",
|
|
"cellOptions": {
|
|
"type": "auto"
|
|
},
|
|
"filterable": true,
|
|
"inspect": false,
|
|
"wrapText": false
|
|
},
|
|
"fieldMinMax": true,
|
|
"links": [],
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 80
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "A"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"mode": "lcd",
|
|
"type": "gauge"
|
|
}
|
|
},
|
|
{
|
|
"id": "min",
|
|
"value": 0
|
|
},
|
|
{
|
|
"id": "max",
|
|
"value": 100
|
|
},
|
|
{
|
|
"id": "custom.inspect",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Boolean"
|
|
},
|
|
"properties": []
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Max"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.align",
|
|
"value": "center"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {
|
|
"h": 6,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 6
|
|
},
|
|
"id": 5,
|
|
"options": {
|
|
"cellHeight": "sm",
|
|
"footer": {
|
|
"countRows": true,
|
|
"enablePagination": false,
|
|
"fields": ["Max", "A"],
|
|
"reducer": ["mean"],
|
|
"show": true
|
|
},
|
|
"frameIndex": 0,
|
|
"showHeader": true,
|
|
"sortBy": [
|
|
{
|
|
"desc": false,
|
|
"displayName": "Long Text"
|
|
}
|
|
]
|
|
},
|
|
"pluginVersion": "12.1.0",
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"refId": "A",
|
|
"scenarioId": "random_walk_table"
|
|
},
|
|
{
|
|
"csvContent": "Info,Boolean\ndown,FALSE\nup,TRUE\nup fast,TRUE\ndown fast,FALSE",
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"refId": "B",
|
|
"scenarioId": "csv_content"
|
|
}
|
|
],
|
|
"title": "Scoped footer, average",
|
|
"transformations": [
|
|
{
|
|
"id": "joinByField",
|
|
"options": {
|
|
"byField": "Info",
|
|
"mode": "outerTabular"
|
|
}
|
|
},
|
|
{
|
|
"id": "organize",
|
|
"options": {
|
|
"excludeByName": {
|
|
"A": false
|
|
},
|
|
"includeByName": {},
|
|
"indexByName": {
|
|
"A": 3,
|
|
"Boolean": 6,
|
|
"Info": 4,
|
|
"Max A": 2,
|
|
"Min A": 1,
|
|
"State A": 5,
|
|
"Time A": 0
|
|
},
|
|
"orderBy": [],
|
|
"orderByMode": "manual",
|
|
"renameByName": {
|
|
"A": "Gauge",
|
|
"Info": "",
|
|
"Max A": "Max",
|
|
"Min A": "Min",
|
|
"State A": "State",
|
|
"Time": "Some really long title that requires wrapping",
|
|
"Time A": "Time",
|
|
"img_url": "Cat"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"type": "table"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"custom": {
|
|
"align": "auto",
|
|
"cellOptions": {
|
|
"type": "auto"
|
|
},
|
|
"filterable": true,
|
|
"inspect": false,
|
|
"wrapText": false
|
|
},
|
|
"fieldMinMax": true,
|
|
"links": [],
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 80
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "A"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"mode": "lcd",
|
|
"type": "gauge"
|
|
}
|
|
},
|
|
{
|
|
"id": "min",
|
|
"value": 0
|
|
},
|
|
{
|
|
"id": "max",
|
|
"value": 100
|
|
},
|
|
{
|
|
"id": "custom.inspect",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Boolean"
|
|
},
|
|
"properties": []
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Max"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.align",
|
|
"value": "center"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {
|
|
"h": 6,
|
|
"w": 12,
|
|
"x": 12,
|
|
"y": 6
|
|
},
|
|
"id": 6,
|
|
"options": {
|
|
"cellHeight": "sm",
|
|
"footer": {
|
|
"countRows": true,
|
|
"enablePagination": false,
|
|
"fields": ["Min"],
|
|
"reducer": ["sum"],
|
|
"show": true
|
|
},
|
|
"frameIndex": 0,
|
|
"showHeader": true,
|
|
"sortBy": [
|
|
{
|
|
"desc": false,
|
|
"displayName": "Long Text"
|
|
}
|
|
]
|
|
},
|
|
"pluginVersion": "12.1.0",
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"refId": "A",
|
|
"scenarioId": "random_walk_table"
|
|
},
|
|
{
|
|
"csvContent": "Info,Boolean\ndown,FALSE\nup,TRUE\nup fast,TRUE\ndown fast,FALSE",
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"refId": "B",
|
|
"scenarioId": "csv_content"
|
|
}
|
|
],
|
|
"title": "Single sum reducer",
|
|
"transformations": [
|
|
{
|
|
"id": "joinByField",
|
|
"options": {
|
|
"byField": "Info",
|
|
"mode": "outerTabular"
|
|
}
|
|
},
|
|
{
|
|
"id": "organize",
|
|
"options": {
|
|
"excludeByName": {
|
|
"A": false
|
|
},
|
|
"includeByName": {},
|
|
"indexByName": {
|
|
"A": 3,
|
|
"Boolean": 6,
|
|
"Info": 4,
|
|
"Max A": 2,
|
|
"Min A": 1,
|
|
"State A": 5,
|
|
"Time A": 0
|
|
},
|
|
"orderBy": [],
|
|
"orderByMode": "manual",
|
|
"renameByName": {
|
|
"A": "Gauge",
|
|
"Info": "",
|
|
"Max A": "Max",
|
|
"Min A": "Min",
|
|
"State A": "State",
|
|
"Time": "Some really long title that requires wrapping",
|
|
"Time A": "Time",
|
|
"img_url": "Cat"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"type": "table"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"custom": {
|
|
"align": "auto",
|
|
"cellOptions": {
|
|
"type": "auto"
|
|
},
|
|
"filterable": true,
|
|
"inspect": false,
|
|
"wrapText": false
|
|
},
|
|
"fieldMinMax": true,
|
|
"links": [],
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 80
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "A"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"mode": "lcd",
|
|
"type": "gauge"
|
|
}
|
|
},
|
|
{
|
|
"id": "min",
|
|
"value": 0
|
|
},
|
|
{
|
|
"id": "max",
|
|
"value": 100
|
|
},
|
|
{
|
|
"id": "custom.inspect",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Boolean"
|
|
},
|
|
"properties": []
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Max"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.align",
|
|
"value": "center"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {
|
|
"h": 6,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 12
|
|
},
|
|
"id": 7,
|
|
"options": {
|
|
"cellHeight": "sm",
|
|
"footer": {
|
|
"countRows": true,
|
|
"enablePagination": false,
|
|
"fields": ["Max", "A"],
|
|
"reducer": ["count"],
|
|
"show": true
|
|
},
|
|
"frameIndex": 0,
|
|
"showHeader": true,
|
|
"sortBy": [
|
|
{
|
|
"desc": false,
|
|
"displayName": "Long Text"
|
|
}
|
|
]
|
|
},
|
|
"pluginVersion": "12.1.0",
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"refId": "A",
|
|
"scenarioId": "random_walk_table"
|
|
},
|
|
{
|
|
"csvContent": "Info,Boolean\ndown,FALSE\nup,TRUE\nup fast,TRUE\ndown fast,FALSE",
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"refId": "B",
|
|
"scenarioId": "csv_content"
|
|
}
|
|
],
|
|
"title": "Count rows",
|
|
"transformations": [
|
|
{
|
|
"id": "joinByField",
|
|
"options": {
|
|
"byField": "Info",
|
|
"mode": "outerTabular"
|
|
}
|
|
},
|
|
{
|
|
"id": "organize",
|
|
"options": {
|
|
"excludeByName": {
|
|
"A": false
|
|
},
|
|
"includeByName": {},
|
|
"indexByName": {
|
|
"A": 3,
|
|
"Boolean": 6,
|
|
"Info": 4,
|
|
"Max A": 2,
|
|
"Min A": 1,
|
|
"State A": 5,
|
|
"Time A": 0
|
|
},
|
|
"orderBy": [],
|
|
"orderByMode": "manual",
|
|
"renameByName": {
|
|
"A": "Gauge",
|
|
"Info": "",
|
|
"Max A": "Max",
|
|
"Min A": "Min",
|
|
"State A": "State",
|
|
"Time": "Some really long title that requires wrapping",
|
|
"Time A": "Time",
|
|
"img_url": "Cat"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"type": "table"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"custom": {
|
|
"align": "auto",
|
|
"cellOptions": {
|
|
"type": "auto"
|
|
},
|
|
"filterable": true,
|
|
"inspect": false,
|
|
"wrapText": false
|
|
},
|
|
"fieldMinMax": true,
|
|
"links": [],
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 80
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "A"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"mode": "lcd",
|
|
"type": "gauge"
|
|
}
|
|
},
|
|
{
|
|
"id": "min",
|
|
"value": 0
|
|
},
|
|
{
|
|
"id": "max",
|
|
"value": 100
|
|
},
|
|
{
|
|
"id": "custom.inspect",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Boolean"
|
|
},
|
|
"properties": []
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Max"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.align",
|
|
"value": "center"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Time"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.hideFrom.viz",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Min"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.hideFrom.viz",
|
|
"value": true
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {
|
|
"h": 6,
|
|
"w": 12,
|
|
"x": 12,
|
|
"y": 12
|
|
},
|
|
"id": 8,
|
|
"options": {
|
|
"cellHeight": "sm",
|
|
"footer": {
|
|
"countRows": true,
|
|
"enablePagination": false,
|
|
"fields": ["Max", "A"],
|
|
"reducer": ["count"],
|
|
"show": true
|
|
},
|
|
"frameIndex": 0,
|
|
"showHeader": true,
|
|
"sortBy": [
|
|
{
|
|
"desc": false,
|
|
"displayName": "Long Text"
|
|
}
|
|
]
|
|
},
|
|
"pluginVersion": "12.1.0",
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"refId": "A",
|
|
"scenarioId": "random_walk_table"
|
|
},
|
|
{
|
|
"csvContent": "Info,Boolean\ndown,FALSE\nup,TRUE\nup fast,TRUE\ndown fast,FALSE",
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"refId": "B",
|
|
"scenarioId": "csv_content"
|
|
}
|
|
],
|
|
"title": "Count rows, hide initial columns",
|
|
"transformations": [
|
|
{
|
|
"id": "joinByField",
|
|
"options": {
|
|
"byField": "Info",
|
|
"mode": "outerTabular"
|
|
}
|
|
},
|
|
{
|
|
"id": "organize",
|
|
"options": {
|
|
"excludeByName": {
|
|
"A": false
|
|
},
|
|
"includeByName": {},
|
|
"indexByName": {
|
|
"A": 3,
|
|
"Boolean": 6,
|
|
"Info": 4,
|
|
"Max A": 2,
|
|
"Min A": 1,
|
|
"State A": 5,
|
|
"Time A": 0
|
|
},
|
|
"orderBy": [],
|
|
"orderByMode": "manual",
|
|
"renameByName": {
|
|
"A": "Gauge",
|
|
"Info": "",
|
|
"Max A": "Max",
|
|
"Min A": "Min",
|
|
"State A": "State",
|
|
"Time": "",
|
|
"Time A": "Time",
|
|
"img_url": "Cat"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"type": "table"
|
|
}
|
|
],
|
|
"preload": false,
|
|
"schemaVersion": 41,
|
|
"tags": [],
|
|
"templating": {
|
|
"list": [
|
|
{
|
|
"baseFilters": [],
|
|
"datasource": {
|
|
"type": "grafana-testdata-datasource"
|
|
},
|
|
"filters": [],
|
|
"name": "Filters",
|
|
"type": "adhoc"
|
|
}
|
|
]
|
|
},
|
|
"time": {
|
|
"from": "now-6h",
|
|
"to": "now"
|
|
},
|
|
"timepicker": {},
|
|
"timezone": "",
|
|
"title": "Panel Tests - Table - v12.2 migrations",
|
|
"uid": "1ea31838-e4e8-4aa0-9333-1d4c3fa95641",
|
|
"version": 32
|
|
}
|