2019-11-04 19:16:32 +00:00
|
|
|
{
|
|
|
|
"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_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,
|
|
|
|
"xColumn": "_time",
|
|
|
|
"yColumn": "_value",
|
2019-12-03 22:59:07 +00:00
|
|
|
"position": "overlaid",
|
2019-11-04 19:16:32 +00:00
|
|
|
"legend": {
|
|
|
|
"type": "leg_type",
|
|
|
|
"orientation": "horizontal"
|
|
|
|
},
|
|
|
|
"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": [
|
|
|
|
{
|
|
|
|
"name": "laser",
|
|
|
|
"type": "text",
|
|
|
|
"hex": "#8F8AF4",
|
|
|
|
"value": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|