* Migration to be verified: v42 HideFrom tooltip migration * snap update * make gen cue * Add comments of 42 being the final version
206 lines
4.6 KiB
JSON
206 lines
4.6 KiB
JSON
{
|
|
"panels": [
|
|
{
|
|
"datasource": {
|
|
"apiVersion": "v1",
|
|
"type": "prometheus",
|
|
"uid": "default-ds-uid"
|
|
},
|
|
"id": 1,
|
|
"links": [
|
|
{
|
|
"targetBlank": false,
|
|
"title": "Dashboard Link",
|
|
"url": "dashboard/db/my-dashboard?$__url_time_range"
|
|
}
|
|
],
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"apiVersion": "v1",
|
|
"type": "prometheus",
|
|
"uid": "default-ds-uid"
|
|
},
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Panel with legacy dashboard link",
|
|
"type": "graph"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"apiVersion": "v1",
|
|
"type": "prometheus",
|
|
"uid": "default-ds-uid"
|
|
},
|
|
"id": 2,
|
|
"links": [
|
|
{
|
|
"targetBlank": false,
|
|
"title": "DashUri Link",
|
|
"url": "dashboard/my-dashboard-uid?$__all_variables"
|
|
}
|
|
],
|
|
"options": {
|
|
"justifyMode": "auto",
|
|
"percentChangeColorMode": "standard",
|
|
"showPercentChange": false,
|
|
"textMode": "auto",
|
|
"wideLayout": true
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"apiVersion": "v1",
|
|
"type": "prometheus",
|
|
"uid": "default-ds-uid"
|
|
},
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Panel with dashUri link",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"apiVersion": "v1",
|
|
"type": "prometheus",
|
|
"uid": "default-ds-uid"
|
|
},
|
|
"id": 3,
|
|
"links": [
|
|
{
|
|
"targetBlank": false,
|
|
"title": "Custom Params Link",
|
|
"url": "http://example.com?customParam=value"
|
|
}
|
|
],
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"apiVersion": "v1",
|
|
"type": "prometheus",
|
|
"uid": "default-ds-uid"
|
|
},
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Panel with custom params",
|
|
"type": "table"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"apiVersion": "v1",
|
|
"type": "prometheus",
|
|
"uid": "default-ds-uid"
|
|
},
|
|
"id": 4,
|
|
"links": [
|
|
{
|
|
"targetBlank": true,
|
|
"title": "Complex Link",
|
|
"url": "dashboard/db/complex-dashboard?$__url_time_range\u0026$__all_variables\u0026param1=value1\u0026param2=value2"
|
|
}
|
|
],
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"apiVersion": "v1",
|
|
"type": "prometheus",
|
|
"uid": "default-ds-uid"
|
|
},
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Panel with complex link",
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"apiVersion": "v1",
|
|
"type": "prometheus",
|
|
"uid": "default-ds-uid"
|
|
},
|
|
"id": 5,
|
|
"links": [
|
|
{
|
|
"targetBlank": false,
|
|
"title": "Existing URL Link",
|
|
"url": "http://existing-url.com"
|
|
}
|
|
],
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"apiVersion": "v1",
|
|
"type": "prometheus",
|
|
"uid": "default-ds-uid"
|
|
},
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Panel with existing URL",
|
|
"type": "gauge"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"apiVersion": "v1",
|
|
"type": "prometheus",
|
|
"uid": "default-ds-uid"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": null
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 80
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"id": 6,
|
|
"options": {
|
|
"colorMode": "none",
|
|
"graphMode": "none",
|
|
"justifyMode": "auto",
|
|
"orientation": "horizontal",
|
|
"percentChangeColorMode": "standard",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"mean"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"showPercentChange": false,
|
|
"textMode": "auto",
|
|
"wideLayout": true
|
|
},
|
|
"pluginVersion": "12.1.0",
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"apiVersion": "v1",
|
|
"type": "prometheus",
|
|
"uid": "default-ds-uid"
|
|
},
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Panel with no links",
|
|
"type": "stat"
|
|
}
|
|
],
|
|
"refresh": "",
|
|
"schemaVersion": 42,
|
|
"title": "V19 Panel Links Migration Test Dashboard"
|
|
} |