influxdb/pkger/testdata/dashboard.json

50 lines
1.3 KiB
JSON
Raw Normal View History

{
"apiVersion": "0.1.0",
"kind": "Package",
"meta": {
"pkgName": "pkg_name",
"pkgVersion": "1",
"description": "pack description"
},
"spec": {
"resources": [
{
"kind": "Dashboard",
"name": "dash_1",
"description": "desc1",
"charts": [
{
"kind": "Single_Stat",
"name": "single stat",
"prefix": "sumtin",
"suffix": "days",
"note": "single stat note",
"noteOnEmpty": true,
"xPos": 1,
"yPos": 2,
"width": 6,
"height": 3,
"decimalPlaces": 1,
"shade": true,
"xColumn": "_time",
"yColumn": "_value",
"queries": [
{
"query": "from(bucket: v.bucket) |> range(start: v.timeRangeStart) |> filter(fn: (r) => r._measurement == \"processes\") |> filter(fn: (r) => r._field == \"running\" or r._field == \"blocked\") |> aggregateWindow(every: v.windowPeriod, fn: max) |> yield(name: \"max\")"
}
],
"colors": [
{
"name": "laser",
"type": "text",
"hex": "#8F8AF4",
"value": 3
}
]
}
]
}
]
}
}