influxdb/pkger/testdata/dashboard_single_stat_plus_...

92 lines
2.6 KiB
JSON

[
{
"apiVersion": "influxdata.com/v2alpha1",
"kind": "Dashboard",
"metadata": {
"name": "dash-1"
},
"spec": {
"description": "desc1",
"charts": [
{
"kind": "Single_Stat_Plus_Line",
"name": "single stat plus line",
"prefix": "sumtin",
"suffix": "days",
"note": "single stat plus line note",
"noteOnEmpty": true,
"xPos": 1,
"yPos": 2,
"width": 6,
"height": 3,
"decimalPlaces": 1,
"shade": true,
"hoverDimension": "y",
"generateXAxisTicks": ["xTotalTicks", "xTickStart", "xTickStep"],
"xColumn": "_time",
"xTotalTicks": 15,
"xTickStart": 0,
"xTickStep": 1000,
"yColumn": "_value",
"generateYAxisTicks": ["yTotalTicks", "yTickStart", "yTickStep"],
"yTotalTicks": 10,
"yTickStart": 0,
"yTickStep": 100,
"position": "overlaid",
"legendColorizeRows": true,
"legendHide": false,
"legendOpacity": 1.0,
"legendOrientationThreshold": 5,
"staticLegend": {
"colorizeRows": true,
"heightRatio": 0.2,
"show": true,
"opacity": 1.0,
"orientationThreshold": 5,
"valueAxis": "y",
"widthRatio": 1.0
},
"queries": [
{
"query": "from(bucket: v.bucket) |> range(start: v.timeRangeStart) |> filter(fn: (r) => r._measurement == \"mem\") |> filter(fn: (r) => r._field == \"used_percent\") |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false) |> yield(name: \"mean\")"
}
],
"colors": [
{
"id": "base",
"name": "laser",
"type": "text",
"hex": "#8F8AF4",
"value": 3
},
{
"id": "base",
"name": "android",
"type": "scale",
"hex": "#F4CF31",
"value": 1
}
],
"axes": [
{
"name": "x",
"label": "x_label",
"prefix": "x_prefix",
"suffix": "x_suffix",
"base": "10",
"scale": "linear"
},
{
"name": "y",
"label": "y_label",
"prefix": "y_prefix",
"suffix": "y_suffix",
"base": "10",
"scale": "linear"
}
]
}
]
}
}
]