69 lines
2.1 KiB
JSON
69 lines
2.1 KiB
JSON
{
|
|
"apiVersion": "0.1.0",
|
|
"kind": "Package",
|
|
"meta": {
|
|
"pkgName": "pkg_name",
|
|
"pkgVersion": "1",
|
|
"description": "pack description"
|
|
},
|
|
"spec": {
|
|
"resources": [
|
|
{
|
|
"kind": "Dashboard",
|
|
"name": "dashboard w/ single heatmap chart",
|
|
"description": "a dashboard w/ heatmap chart",
|
|
"charts": [
|
|
{
|
|
"kind": "heatmap",
|
|
"name": "heatmap chart",
|
|
"note": "heatmap note",
|
|
"noteOnEmpty": true,
|
|
"xPos": 1,
|
|
"yPos": 2,
|
|
"width": 6,
|
|
"height": 3,
|
|
"xCol": "_time",
|
|
"yCol": "_value",
|
|
"binSize": 10,
|
|
"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\")"
|
|
}
|
|
],
|
|
"axes":[
|
|
{
|
|
"name": "x",
|
|
"label": "x_label",
|
|
"prefix": "x_prefix",
|
|
"suffix": "x_suffix",
|
|
"domain": [0, 10]
|
|
},
|
|
{
|
|
"name": "y",
|
|
"label": "y_label",
|
|
"prefix": "y_prefix",
|
|
"suffix": "y_suffix",
|
|
"domain": [0, 100]
|
|
}
|
|
],
|
|
"colors": [
|
|
{ "hex": "#000004" },
|
|
{ "hex": "#110a30" },
|
|
{ "hex": "#320a5e" },
|
|
{ "hex": "#57106e" },
|
|
{ "hex": "#781c6d" },
|
|
{ "hex": "#9a2865" },
|
|
{ "hex": "#bc3754" },
|
|
{ "hex": "#d84c3e" },
|
|
{ "hex": "#ed6925" },
|
|
{ "hex": "#f98e09" },
|
|
{ "hex": "#fbb61a" },
|
|
{ "hex": "#f4df53" }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|