mirror of https://github.com/grafana/grafana
Dashboard Migrations: V35 ensures X-axis visibility in timeseries (#106633)
* Add datasource info provider * Dashboards: Support schemaVersion v35 migration in backend * update go mods --------- Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com> Co-authored-by: Haris Rozajac <haris.rozajac12@gmail.com> Co-authored-by: Stephanie Hingtgen <stephanie.hingtgen@grafana.com>pull/106717/head
parent
25fe2b54fb
commit
09bbdfe8ab
@ -0,0 +1,80 @@ |
||||
package schemaversion |
||||
|
||||
// V35 ensures x-axis visibility in timeseries panels to prevent dashboard breakage.
|
||||
//
|
||||
// This migration addresses a specific issue where timeseries panels with all axes
|
||||
// configured as hidden (axisPlacement: "hidden") would result in completely unusable
|
||||
// visualizations, as users would lose the ability to see time progression along the x-axis.
|
||||
//
|
||||
// The migration works by:
|
||||
// 1. Identifying timeseries panels where the default axis placement is set to "hidden"
|
||||
// 2. Adding a field override that specifically targets time-type fields (x-axis)
|
||||
// 3. Setting the axis placement for time fields to "auto" to ensure x-axis visibility
|
||||
//
|
||||
// This preserves the original intent of hiding other axes while maintaining the critical
|
||||
// time axis that makes timeseries data comprehensible. The override uses field matching
|
||||
// by type ("time") to selectively restore visibility only for temporal data.
|
||||
//
|
||||
// Example transformation:
|
||||
//
|
||||
// Before migration:
|
||||
//
|
||||
// fieldConfig: {
|
||||
// defaults: { custom: { axisPlacement: "hidden" } },
|
||||
// overrides: []
|
||||
// }
|
||||
//
|
||||
// After migration:
|
||||
//
|
||||
// fieldConfig: {
|
||||
// defaults: { custom: { axisPlacement: "hidden" } },
|
||||
// overrides: [{
|
||||
// matcher: { id: "byType", options: "time" },
|
||||
// properties: [{ id: "custom.axisPlacement", value: "auto" }]
|
||||
// }]
|
||||
// }
|
||||
func V35(dashboard map[string]interface{}) error { |
||||
dashboard["schemaVersion"] = int(35) |
||||
|
||||
panels, ok := dashboard["panels"].([]interface{}) |
||||
if !ok { |
||||
return nil |
||||
} |
||||
|
||||
for _, panel := range panels { |
||||
p, ok := panel.(map[string]interface{}) |
||||
if !ok || p["type"] != "timeseries" { |
||||
continue |
||||
} |
||||
|
||||
applyXAxisVisibilityOverride(p) |
||||
} |
||||
|
||||
return nil |
||||
} |
||||
|
||||
// applyXAxisVisibilityOverride adds a field override to ensure x-axis visibility
|
||||
// when the panel's default axis placement is set to hidden.
|
||||
func applyXAxisVisibilityOverride(panel map[string]interface{}) { |
||||
fieldConfig, _ := panel["fieldConfig"].(map[string]interface{}) |
||||
defaults, _ := fieldConfig["defaults"].(map[string]interface{}) |
||||
custom, _ := defaults["custom"].(map[string]interface{}) |
||||
|
||||
if custom["axisPlacement"] != "hidden" { |
||||
return |
||||
} |
||||
|
||||
overrides, _ := fieldConfig["overrides"].([]interface{}) |
||||
fieldConfig["overrides"] = append(overrides, map[string]interface{}{ |
||||
"matcher": map[string]interface{}{ |
||||
"id": "byType", |
||||
"options": "time", |
||||
}, |
||||
"properties": []interface{}{ |
||||
map[string]interface{}{ |
||||
"id": "custom.axisPlacement", |
||||
"value": "auto", |
||||
}, |
||||
}, |
||||
}) |
||||
} |
@ -0,0 +1,340 @@ |
||||
package schemaversion_test |
||||
|
||||
import ( |
||||
"testing" |
||||
|
||||
"github.com/grafana/grafana/apps/dashboard/pkg/migration/schemaversion" |
||||
) |
||||
|
||||
func TestV35(t *testing.T) { |
||||
tests := []migrationTestCase{ |
||||
{ |
||||
name: "preserves x axis visibility for timeseries with hidden axes", |
||||
input: map[string]interface{}{ |
||||
"panels": []interface{}{ |
||||
map[string]interface{}{ |
||||
"type": "timeseries", |
||||
"fieldConfig": map[string]interface{}{ |
||||
"defaults": map[string]interface{}{ |
||||
"custom": map[string]interface{}{ |
||||
"axisPlacement": "hidden", |
||||
}, |
||||
}, |
||||
"overrides": []interface{}{}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
expected: map[string]interface{}{ |
||||
"schemaVersion": int(35), |
||||
"panels": []interface{}{ |
||||
map[string]interface{}{ |
||||
"type": "timeseries", |
||||
"fieldConfig": map[string]interface{}{ |
||||
"defaults": map[string]interface{}{ |
||||
"custom": map[string]interface{}{ |
||||
"axisPlacement": "hidden", |
||||
}, |
||||
}, |
||||
"overrides": []interface{}{ |
||||
map[string]interface{}{ |
||||
"matcher": map[string]interface{}{ |
||||
"id": "byType", |
||||
"options": "time", |
||||
}, |
||||
"properties": []interface{}{ |
||||
map[string]interface{}{ |
||||
"id": "custom.axisPlacement", |
||||
"value": "auto", |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
{ |
||||
name: "appends to existing overrides for timeseries with hidden axes", |
||||
input: map[string]interface{}{ |
||||
"panels": []interface{}{ |
||||
map[string]interface{}{ |
||||
"type": "timeseries", |
||||
"fieldConfig": map[string]interface{}{ |
||||
"defaults": map[string]interface{}{ |
||||
"custom": map[string]interface{}{ |
||||
"axisPlacement": "hidden", |
||||
}, |
||||
}, |
||||
"overrides": []interface{}{ |
||||
map[string]interface{}{ |
||||
"matcher": map[string]interface{}{ |
||||
"id": "byName", |
||||
"options": "Series A", |
||||
}, |
||||
"properties": []interface{}{ |
||||
map[string]interface{}{ |
||||
"id": "color.mode", |
||||
"value": "palette-classic", |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
expected: map[string]interface{}{ |
||||
"schemaVersion": int(35), |
||||
"panels": []interface{}{ |
||||
map[string]interface{}{ |
||||
"type": "timeseries", |
||||
"fieldConfig": map[string]interface{}{ |
||||
"defaults": map[string]interface{}{ |
||||
"custom": map[string]interface{}{ |
||||
"axisPlacement": "hidden", |
||||
}, |
||||
}, |
||||
"overrides": []interface{}{ |
||||
map[string]interface{}{ |
||||
"matcher": map[string]interface{}{ |
||||
"id": "byName", |
||||
"options": "Series A", |
||||
}, |
||||
"properties": []interface{}{ |
||||
map[string]interface{}{ |
||||
"id": "color.mode", |
||||
"value": "palette-classic", |
||||
}, |
||||
}, |
||||
}, |
||||
map[string]interface{}{ |
||||
"matcher": map[string]interface{}{ |
||||
"id": "byType", |
||||
"options": "time", |
||||
}, |
||||
"properties": []interface{}{ |
||||
map[string]interface{}{ |
||||
"id": "custom.axisPlacement", |
||||
"value": "auto", |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
{ |
||||
name: "does not migrate timeseries with non-hidden axis placement", |
||||
input: map[string]interface{}{ |
||||
"panels": []interface{}{ |
||||
map[string]interface{}{ |
||||
"type": "timeseries", |
||||
"fieldConfig": map[string]interface{}{ |
||||
"defaults": map[string]interface{}{ |
||||
"custom": map[string]interface{}{ |
||||
"axisPlacement": "auto", |
||||
}, |
||||
}, |
||||
"overrides": []interface{}{}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
expected: map[string]interface{}{ |
||||
"schemaVersion": int(35), |
||||
"panels": []interface{}{ |
||||
map[string]interface{}{ |
||||
"type": "timeseries", |
||||
"fieldConfig": map[string]interface{}{ |
||||
"defaults": map[string]interface{}{ |
||||
"custom": map[string]interface{}{ |
||||
"axisPlacement": "auto", |
||||
}, |
||||
}, |
||||
"overrides": []interface{}{}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
{ |
||||
name: "does not migrate non-timeseries panels", |
||||
input: map[string]interface{}{ |
||||
"panels": []interface{}{ |
||||
map[string]interface{}{ |
||||
"type": "stat", |
||||
"fieldConfig": map[string]interface{}{ |
||||
"defaults": map[string]interface{}{ |
||||
"custom": map[string]interface{}{ |
||||
"axisPlacement": "hidden", |
||||
}, |
||||
}, |
||||
"overrides": []interface{}{}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
expected: map[string]interface{}{ |
||||
"schemaVersion": int(35), |
||||
"panels": []interface{}{ |
||||
map[string]interface{}{ |
||||
"type": "stat", |
||||
"fieldConfig": map[string]interface{}{ |
||||
"defaults": map[string]interface{}{ |
||||
"custom": map[string]interface{}{ |
||||
"axisPlacement": "hidden", |
||||
}, |
||||
}, |
||||
"overrides": []interface{}{}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
{ |
||||
name: "handles missing fieldConfig gracefully", |
||||
input: map[string]interface{}{ |
||||
"panels": []interface{}{ |
||||
map[string]interface{}{ |
||||
"type": "timeseries", |
||||
"id": 1, |
||||
}, |
||||
}, |
||||
}, |
||||
expected: map[string]interface{}{ |
||||
"schemaVersion": int(35), |
||||
"panels": []interface{}{ |
||||
map[string]interface{}{ |
||||
"type": "timeseries", |
||||
"id": 1, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
{ |
||||
name: "handles missing defaults gracefully", |
||||
input: map[string]interface{}{ |
||||
"panels": []interface{}{ |
||||
map[string]interface{}{ |
||||
"type": "timeseries", |
||||
"fieldConfig": map[string]interface{}{ |
||||
"overrides": []interface{}{}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
expected: map[string]interface{}{ |
||||
"schemaVersion": int(35), |
||||
"panels": []interface{}{ |
||||
map[string]interface{}{ |
||||
"type": "timeseries", |
||||
"fieldConfig": map[string]interface{}{ |
||||
"overrides": []interface{}{}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
{ |
||||
name: "handles missing custom config gracefully", |
||||
input: map[string]interface{}{ |
||||
"panels": []interface{}{ |
||||
map[string]interface{}{ |
||||
"type": "timeseries", |
||||
"fieldConfig": map[string]interface{}{ |
||||
"defaults": map[string]interface{}{ |
||||
"unit": "bytes", |
||||
}, |
||||
"overrides": []interface{}{}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
expected: map[string]interface{}{ |
||||
"schemaVersion": int(35), |
||||
"panels": []interface{}{ |
||||
map[string]interface{}{ |
||||
"type": "timeseries", |
||||
"fieldConfig": map[string]interface{}{ |
||||
"defaults": map[string]interface{}{ |
||||
"unit": "bytes", |
||||
}, |
||||
"overrides": []interface{}{}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
{ |
||||
name: "handles missing overrides array", |
||||
input: map[string]interface{}{ |
||||
"panels": []interface{}{ |
||||
map[string]interface{}{ |
||||
"type": "timeseries", |
||||
"fieldConfig": map[string]interface{}{ |
||||
"defaults": map[string]interface{}{ |
||||
"custom": map[string]interface{}{ |
||||
"axisPlacement": "hidden", |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
expected: map[string]interface{}{ |
||||
"schemaVersion": int(35), |
||||
"panels": []interface{}{ |
||||
map[string]interface{}{ |
||||
"type": "timeseries", |
||||
"fieldConfig": map[string]interface{}{ |
||||
"defaults": map[string]interface{}{ |
||||
"custom": map[string]interface{}{ |
||||
"axisPlacement": "hidden", |
||||
}, |
||||
}, |
||||
"overrides": []interface{}{ |
||||
map[string]interface{}{ |
||||
"matcher": map[string]interface{}{ |
||||
"id": "byType", |
||||
"options": "time", |
||||
}, |
||||
"properties": []interface{}{ |
||||
map[string]interface{}{ |
||||
"id": "custom.axisPlacement", |
||||
"value": "auto", |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
}, |
||||
{ |
||||
name: "handles empty panels array", |
||||
input: map[string]interface{}{ |
||||
"panels": []interface{}{}, |
||||
}, |
||||
expected: map[string]interface{}{ |
||||
"schemaVersion": int(35), |
||||
"panels": []interface{}{}, |
||||
}, |
||||
}, |
||||
{ |
||||
name: "handles missing panels", |
||||
input: map[string]interface{}{ |
||||
"title": "Test Dashboard", |
||||
}, |
||||
expected: map[string]interface{}{ |
||||
"schemaVersion": int(35), |
||||
"title": "Test Dashboard", |
||||
}, |
||||
}, |
||||
} |
||||
runMigrationTests(t, tests, schemaversion.V35) |
||||
} |
@ -0,0 +1,251 @@ |
||||
{ |
||||
"annotations": { |
||||
"list": [ |
||||
{ |
||||
"builtIn": 1, |
||||
"datasource": { |
||||
"type": "grafana", |
||||
"uid": "-- Grafana --" |
||||
}, |
||||
"enable": true, |
||||
"hide": true, |
||||
"iconColor": "rgba(0, 211, 255, 1)", |
||||
"name": "Annotations \u0026 Alerts", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": "Non Default Test Datasource", |
||||
"enable": true, |
||||
"name": "Test Annotation by Name", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": "non-default-test-ds-uid", |
||||
"enable": true, |
||||
"name": "Test Annotation by UID", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": "default", |
||||
"enable": true, |
||||
"name": "Test Default Annotation", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": "non-existing-ds", |
||||
"enable": true, |
||||
"name": "Test Non-existing Annotation", |
||||
"type": "dashboard" |
||||
} |
||||
] |
||||
}, |
||||
"editable": true, |
||||
"fiscalYearStartMonth": 0, |
||||
"graphTooltip": 0, |
||||
"links": [], |
||||
"panels": [ |
||||
{ |
||||
"type": "graph", |
||||
"options": {}, |
||||
"title": "No Legend Config", |
||||
"id": 1, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 0 |
||||
} |
||||
}, |
||||
{ |
||||
"options": { |
||||
"legend": true |
||||
}, |
||||
"title": "Boolean Legend True", |
||||
"id": 2, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 0 |
||||
} |
||||
}, |
||||
{ |
||||
"options": { |
||||
"legend": false |
||||
}, |
||||
"title": "Boolean Legend False", |
||||
"id": 3, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 8 |
||||
} |
||||
}, |
||||
{ |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "hidden" |
||||
} |
||||
}, |
||||
"title": "Hidden DisplayMode", |
||||
"id": 4, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 8 |
||||
} |
||||
}, |
||||
{ |
||||
"options": { |
||||
"legend": { |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "ShowLegend False", |
||||
"id": 5, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 16 |
||||
} |
||||
}, |
||||
{ |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "table" |
||||
} |
||||
}, |
||||
"title": "Visible Legend", |
||||
"id": 6, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 16 |
||||
} |
||||
}, |
||||
{ |
||||
"datasource": "default", |
||||
"title": "Mixed Datasources Panel", |
||||
"id": 7, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 24 |
||||
}, |
||||
"targets": [ |
||||
{ |
||||
"datasource": "non-default-test-ds-uid" |
||||
}, |
||||
{ |
||||
"datasource": "Non Default Test Datasource" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "-- Mixed --" |
||||
}, |
||||
"title": "Mixed Panel with Mixed Targets", |
||||
"id": 8, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 24 |
||||
}, |
||||
"targets": [ |
||||
{ |
||||
"datasource": "non-default-test-ds-uid" |
||||
}, |
||||
{ |
||||
"datasource": "Non Default Test Datasource" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"datasource": "non-existing-ds", |
||||
"title": "Non-existing Datasource Panel", |
||||
"id": 9, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 32 |
||||
}, |
||||
"targets": [ |
||||
{ |
||||
"datasource": "non-existing-ds" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"type": "timeseries", |
||||
"title": "Timeseries Panel with Hidden Axes", |
||||
"id": 10, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 40 |
||||
}, |
||||
"fieldConfig": { |
||||
"defaults": { |
||||
"custom": { |
||||
"axisPlacement": "hidden" |
||||
} |
||||
}, |
||||
"overrides": [] |
||||
} |
||||
} |
||||
|
||||
], |
||||
"preload": false, |
||||
"refresh": true, |
||||
"schemaVersion": 34, |
||||
"tags": [], |
||||
"templating": { |
||||
"list": [ |
||||
{ |
||||
"type": "query", |
||||
"datasource": "default", |
||||
"name": "default_var" |
||||
}, |
||||
{ |
||||
"type": "query", |
||||
"datasource": "Non Default Test Datasource", |
||||
"name": "es_var_by_name" |
||||
}, |
||||
{ |
||||
"type": "query", |
||||
"datasource": "non-default-test-ds-uid", |
||||
"name": "es_var_by_uid" |
||||
}, |
||||
{ |
||||
"type": "query", |
||||
"datasource": null, |
||||
"name": "null_var" |
||||
}, |
||||
{ |
||||
"type": "query", |
||||
"datasource": "non-existing-ds", |
||||
"name": "non_existing_var" |
||||
} |
||||
] |
||||
}, |
||||
"time": { |
||||
"from": "now-6h", |
||||
"to": "now" |
||||
}, |
||||
"timepicker": { |
||||
"time_options": ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"] |
||||
}, |
||||
"timezone": "utc", |
||||
"title": "New dashboard", |
||||
"version": 0, |
||||
"weekStart": "" |
||||
} |
@ -0,0 +1,273 @@ |
||||
{ |
||||
"annotations": { |
||||
"list": [ |
||||
{ |
||||
"builtIn": 1, |
||||
"datasource": { |
||||
"type": "grafana", |
||||
"uid": "-- Grafana --" |
||||
}, |
||||
"enable": true, |
||||
"hide": true, |
||||
"iconColor": "rgba(0, 211, 255, 1)", |
||||
"name": "Annotations \u0026 Alerts", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": "Non Default Test Datasource", |
||||
"enable": true, |
||||
"name": "Test Annotation by Name", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": "non-default-test-ds-uid", |
||||
"enable": true, |
||||
"name": "Test Annotation by UID", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": "default", |
||||
"enable": true, |
||||
"name": "Test Default Annotation", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": "non-existing-ds", |
||||
"enable": true, |
||||
"name": "Test Non-existing Annotation", |
||||
"type": "dashboard" |
||||
} |
||||
] |
||||
}, |
||||
"editable": true, |
||||
"fiscalYearStartMonth": 0, |
||||
"graphTooltip": 0, |
||||
"links": [], |
||||
"panels": [ |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 0 |
||||
}, |
||||
"id": 1, |
||||
"options": {}, |
||||
"title": "No Legend Config", |
||||
"type": "graph" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 0 |
||||
}, |
||||
"id": 2, |
||||
"options": { |
||||
"legend": true |
||||
}, |
||||
"title": "Boolean Legend True" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 8 |
||||
}, |
||||
"id": 3, |
||||
"options": { |
||||
"legend": false |
||||
}, |
||||
"title": "Boolean Legend False" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 8 |
||||
}, |
||||
"id": 4, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "hidden" |
||||
} |
||||
}, |
||||
"title": "Hidden DisplayMode" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 16 |
||||
}, |
||||
"id": 5, |
||||
"options": { |
||||
"legend": { |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "ShowLegend False" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 16 |
||||
}, |
||||
"id": 6, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "table" |
||||
} |
||||
}, |
||||
"title": "Visible Legend" |
||||
}, |
||||
{ |
||||
"datasource": "default", |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 24 |
||||
}, |
||||
"id": 7, |
||||
"targets": [ |
||||
{ |
||||
"datasource": "non-default-test-ds-uid" |
||||
}, |
||||
{ |
||||
"datasource": "Non Default Test Datasource" |
||||
} |
||||
], |
||||
"title": "Mixed Datasources Panel" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "-- Mixed --" |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 24 |
||||
}, |
||||
"id": 8, |
||||
"targets": [ |
||||
{ |
||||
"datasource": "non-default-test-ds-uid" |
||||
}, |
||||
{ |
||||
"datasource": "Non Default Test Datasource" |
||||
} |
||||
], |
||||
"title": "Mixed Panel with Mixed Targets" |
||||
}, |
||||
{ |
||||
"datasource": "non-existing-ds", |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 32 |
||||
}, |
||||
"id": 9, |
||||
"targets": [ |
||||
{ |
||||
"datasource": "non-existing-ds" |
||||
} |
||||
], |
||||
"title": "Non-existing Datasource Panel" |
||||
}, |
||||
{ |
||||
"fieldConfig": { |
||||
"defaults": { |
||||
"custom": { |
||||
"axisPlacement": "hidden" |
||||
} |
||||
}, |
||||
"overrides": [ |
||||
{ |
||||
"matcher": { |
||||
"id": "byType", |
||||
"options": "time" |
||||
}, |
||||
"properties": [ |
||||
{ |
||||
"id": "custom.axisPlacement", |
||||
"value": "auto" |
||||
} |
||||
] |
||||
} |
||||
] |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 40 |
||||
}, |
||||
"id": 10, |
||||
"title": "Timeseries Panel with Hidden Axes", |
||||
"type": "timeseries" |
||||
} |
||||
], |
||||
"preload": false, |
||||
"refresh": true, |
||||
"schemaVersion": 35, |
||||
"tags": [], |
||||
"templating": { |
||||
"list": [ |
||||
{ |
||||
"datasource": "default", |
||||
"name": "default_var", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": "Non Default Test Datasource", |
||||
"name": "es_var_by_name", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": "non-default-test-ds-uid", |
||||
"name": "es_var_by_uid", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": null, |
||||
"name": "null_var", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": "non-existing-ds", |
||||
"name": "non_existing_var", |
||||
"type": "query" |
||||
} |
||||
] |
||||
}, |
||||
"time": { |
||||
"from": "now-6h", |
||||
"to": "now" |
||||
}, |
||||
"timepicker": { |
||||
"time_options": [ |
||||
"5m", |
||||
"15m", |
||||
"1h", |
||||
"6h", |
||||
"12h", |
||||
"24h", |
||||
"2d", |
||||
"7d", |
||||
"30d" |
||||
] |
||||
}, |
||||
"timezone": "utc", |
||||
"title": "New dashboard", |
||||
"version": 0, |
||||
"weekStart": "" |
||||
} |
@ -0,0 +1,322 @@ |
||||
{ |
||||
"annotations": { |
||||
"list": [ |
||||
{ |
||||
"builtIn": 1, |
||||
"datasource": { |
||||
"type": "grafana", |
||||
"uid": "-- Grafana --" |
||||
}, |
||||
"enable": true, |
||||
"hide": true, |
||||
"iconColor": "rgba(0, 211, 255, 1)", |
||||
"name": "Annotations \u0026 Alerts", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Annotation by Name", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Annotation by UID", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Default Annotation", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Non-existing Annotation", |
||||
"type": "dashboard" |
||||
} |
||||
] |
||||
}, |
||||
"editable": true, |
||||
"fiscalYearStartMonth": 0, |
||||
"graphTooltip": 0, |
||||
"links": [], |
||||
"panels": [ |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 0 |
||||
}, |
||||
"id": 1, |
||||
"options": {}, |
||||
"title": "No Legend Config", |
||||
"type": "graph" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 0 |
||||
}, |
||||
"id": 2, |
||||
"options": { |
||||
"legend": true |
||||
}, |
||||
"title": "Boolean Legend True" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 8 |
||||
}, |
||||
"id": 3, |
||||
"options": { |
||||
"legend": false |
||||
}, |
||||
"title": "Boolean Legend False" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 8 |
||||
}, |
||||
"id": 4, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "hidden" |
||||
} |
||||
}, |
||||
"title": "Hidden DisplayMode" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 16 |
||||
}, |
||||
"id": 5, |
||||
"options": { |
||||
"legend": { |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "ShowLegend False" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 16 |
||||
}, |
||||
"id": 6, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "table" |
||||
} |
||||
}, |
||||
"title": "Visible Legend" |
||||
}, |
||||
{ |
||||
"datasource": null, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 24 |
||||
}, |
||||
"id": 7, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
} |
||||
], |
||||
"title": "Mixed Datasources Panel" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "-- Mixed --" |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 24 |
||||
}, |
||||
"id": 8, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
} |
||||
], |
||||
"title": "Mixed Panel with Mixed Targets" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 32 |
||||
}, |
||||
"id": 9, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
} |
||||
} |
||||
], |
||||
"title": "Non-existing Datasource Panel" |
||||
}, |
||||
{ |
||||
"fieldConfig": { |
||||
"defaults": { |
||||
"custom": { |
||||
"axisPlacement": "hidden" |
||||
} |
||||
}, |
||||
"overrides": [ |
||||
{ |
||||
"matcher": { |
||||
"id": "byType", |
||||
"options": "time" |
||||
}, |
||||
"properties": [ |
||||
{ |
||||
"id": "custom.axisPlacement", |
||||
"value": "auto" |
||||
} |
||||
] |
||||
} |
||||
] |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 40 |
||||
}, |
||||
"id": 10, |
||||
"title": "Timeseries Panel with Hidden Axes", |
||||
"type": "timeseries" |
||||
} |
||||
], |
||||
"preload": false, |
||||
"refresh": true, |
||||
"schemaVersion": 36, |
||||
"tags": [], |
||||
"templating": { |
||||
"list": [ |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"name": "default_var", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"name": "es_var_by_name", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"name": "es_var_by_uid", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"name": "null_var", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"name": "non_existing_var", |
||||
"type": "query" |
||||
} |
||||
] |
||||
}, |
||||
"time": { |
||||
"from": "now-6h", |
||||
"to": "now" |
||||
}, |
||||
"timepicker": { |
||||
"time_options": [ |
||||
"5m", |
||||
"15m", |
||||
"1h", |
||||
"6h", |
||||
"12h", |
||||
"24h", |
||||
"2d", |
||||
"7d", |
||||
"30d" |
||||
] |
||||
}, |
||||
"timezone": "utc", |
||||
"title": "New dashboard", |
||||
"version": 0, |
||||
"weekStart": "" |
||||
} |
@ -0,0 +1,331 @@ |
||||
{ |
||||
"annotations": { |
||||
"list": [ |
||||
{ |
||||
"builtIn": 1, |
||||
"datasource": { |
||||
"type": "grafana", |
||||
"uid": "-- Grafana --" |
||||
}, |
||||
"enable": true, |
||||
"hide": true, |
||||
"iconColor": "rgba(0, 211, 255, 1)", |
||||
"name": "Annotations \u0026 Alerts", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Annotation by Name", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Annotation by UID", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Default Annotation", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Non-existing Annotation", |
||||
"type": "dashboard" |
||||
} |
||||
] |
||||
}, |
||||
"editable": true, |
||||
"fiscalYearStartMonth": 0, |
||||
"graphTooltip": 0, |
||||
"links": [], |
||||
"panels": [ |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 0 |
||||
}, |
||||
"id": 1, |
||||
"options": {}, |
||||
"title": "No Legend Config", |
||||
"type": "graph" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 0 |
||||
}, |
||||
"id": 2, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": true |
||||
} |
||||
}, |
||||
"title": "Boolean Legend True" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 8 |
||||
}, |
||||
"id": 3, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "Boolean Legend False" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 8 |
||||
}, |
||||
"id": 4, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "Hidden DisplayMode" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 16 |
||||
}, |
||||
"id": 5, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "ShowLegend False" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 16 |
||||
}, |
||||
"id": 6, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "table", |
||||
"showLegend": true |
||||
} |
||||
}, |
||||
"title": "Visible Legend" |
||||
}, |
||||
{ |
||||
"datasource": null, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 24 |
||||
}, |
||||
"id": 7, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
} |
||||
], |
||||
"title": "Mixed Datasources Panel" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "-- Mixed --" |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 24 |
||||
}, |
||||
"id": 8, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
} |
||||
], |
||||
"title": "Mixed Panel with Mixed Targets" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 32 |
||||
}, |
||||
"id": 9, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
} |
||||
} |
||||
], |
||||
"title": "Non-existing Datasource Panel" |
||||
}, |
||||
{ |
||||
"fieldConfig": { |
||||
"defaults": { |
||||
"custom": { |
||||
"axisPlacement": "hidden" |
||||
} |
||||
}, |
||||
"overrides": [ |
||||
{ |
||||
"matcher": { |
||||
"id": "byType", |
||||
"options": "time" |
||||
}, |
||||
"properties": [ |
||||
{ |
||||
"id": "custom.axisPlacement", |
||||
"value": "auto" |
||||
} |
||||
] |
||||
} |
||||
] |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 40 |
||||
}, |
||||
"id": 10, |
||||
"title": "Timeseries Panel with Hidden Axes", |
||||
"type": "timeseries" |
||||
} |
||||
], |
||||
"preload": false, |
||||
"refresh": true, |
||||
"schemaVersion": 37, |
||||
"tags": [], |
||||
"templating": { |
||||
"list": [ |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"name": "default_var", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"name": "es_var_by_name", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"name": "es_var_by_uid", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"name": "null_var", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"name": "non_existing_var", |
||||
"type": "query" |
||||
} |
||||
] |
||||
}, |
||||
"time": { |
||||
"from": "now-6h", |
||||
"to": "now" |
||||
}, |
||||
"timepicker": { |
||||
"time_options": [ |
||||
"5m", |
||||
"15m", |
||||
"1h", |
||||
"6h", |
||||
"12h", |
||||
"24h", |
||||
"2d", |
||||
"7d", |
||||
"30d" |
||||
] |
||||
}, |
||||
"timezone": "utc", |
||||
"title": "New dashboard", |
||||
"version": 0, |
||||
"weekStart": "" |
||||
} |
@ -0,0 +1,331 @@ |
||||
{ |
||||
"annotations": { |
||||
"list": [ |
||||
{ |
||||
"builtIn": 1, |
||||
"datasource": { |
||||
"type": "grafana", |
||||
"uid": "-- Grafana --" |
||||
}, |
||||
"enable": true, |
||||
"hide": true, |
||||
"iconColor": "rgba(0, 211, 255, 1)", |
||||
"name": "Annotations \u0026 Alerts", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Annotation by Name", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Annotation by UID", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Default Annotation", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Non-existing Annotation", |
||||
"type": "dashboard" |
||||
} |
||||
] |
||||
}, |
||||
"editable": true, |
||||
"fiscalYearStartMonth": 0, |
||||
"graphTooltip": 0, |
||||
"links": [], |
||||
"panels": [ |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 0 |
||||
}, |
||||
"id": 1, |
||||
"options": {}, |
||||
"title": "No Legend Config", |
||||
"type": "graph" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 0 |
||||
}, |
||||
"id": 2, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": true |
||||
} |
||||
}, |
||||
"title": "Boolean Legend True" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 8 |
||||
}, |
||||
"id": 3, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "Boolean Legend False" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 8 |
||||
}, |
||||
"id": 4, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "Hidden DisplayMode" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 16 |
||||
}, |
||||
"id": 5, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "ShowLegend False" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 16 |
||||
}, |
||||
"id": 6, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "table", |
||||
"showLegend": true |
||||
} |
||||
}, |
||||
"title": "Visible Legend" |
||||
}, |
||||
{ |
||||
"datasource": null, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 24 |
||||
}, |
||||
"id": 7, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
} |
||||
], |
||||
"title": "Mixed Datasources Panel" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "-- Mixed --" |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 24 |
||||
}, |
||||
"id": 8, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
} |
||||
], |
||||
"title": "Mixed Panel with Mixed Targets" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 32 |
||||
}, |
||||
"id": 9, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
} |
||||
} |
||||
], |
||||
"title": "Non-existing Datasource Panel" |
||||
}, |
||||
{ |
||||
"fieldConfig": { |
||||
"defaults": { |
||||
"custom": { |
||||
"axisPlacement": "hidden" |
||||
} |
||||
}, |
||||
"overrides": [ |
||||
{ |
||||
"matcher": { |
||||
"id": "byType", |
||||
"options": "time" |
||||
}, |
||||
"properties": [ |
||||
{ |
||||
"id": "custom.axisPlacement", |
||||
"value": "auto" |
||||
} |
||||
] |
||||
} |
||||
] |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 40 |
||||
}, |
||||
"id": 10, |
||||
"title": "Timeseries Panel with Hidden Axes", |
||||
"type": "timeseries" |
||||
} |
||||
], |
||||
"preload": false, |
||||
"refresh": true, |
||||
"schemaVersion": 38, |
||||
"tags": [], |
||||
"templating": { |
||||
"list": [ |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"name": "default_var", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"name": "es_var_by_name", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"name": "es_var_by_uid", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"name": "null_var", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"name": "non_existing_var", |
||||
"type": "query" |
||||
} |
||||
] |
||||
}, |
||||
"time": { |
||||
"from": "now-6h", |
||||
"to": "now" |
||||
}, |
||||
"timepicker": { |
||||
"time_options": [ |
||||
"5m", |
||||
"15m", |
||||
"1h", |
||||
"6h", |
||||
"12h", |
||||
"24h", |
||||
"2d", |
||||
"7d", |
||||
"30d" |
||||
] |
||||
}, |
||||
"timezone": "utc", |
||||
"title": "New dashboard", |
||||
"version": 0, |
||||
"weekStart": "" |
||||
} |
@ -0,0 +1,331 @@ |
||||
{ |
||||
"annotations": { |
||||
"list": [ |
||||
{ |
||||
"builtIn": 1, |
||||
"datasource": { |
||||
"type": "grafana", |
||||
"uid": "-- Grafana --" |
||||
}, |
||||
"enable": true, |
||||
"hide": true, |
||||
"iconColor": "rgba(0, 211, 255, 1)", |
||||
"name": "Annotations \u0026 Alerts", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Annotation by Name", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Annotation by UID", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Default Annotation", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Non-existing Annotation", |
||||
"type": "dashboard" |
||||
} |
||||
] |
||||
}, |
||||
"editable": true, |
||||
"fiscalYearStartMonth": 0, |
||||
"graphTooltip": 0, |
||||
"links": [], |
||||
"panels": [ |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 0 |
||||
}, |
||||
"id": 1, |
||||
"options": {}, |
||||
"title": "No Legend Config", |
||||
"type": "graph" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 0 |
||||
}, |
||||
"id": 2, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": true |
||||
} |
||||
}, |
||||
"title": "Boolean Legend True" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 8 |
||||
}, |
||||
"id": 3, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "Boolean Legend False" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 8 |
||||
}, |
||||
"id": 4, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "Hidden DisplayMode" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 16 |
||||
}, |
||||
"id": 5, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "ShowLegend False" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 16 |
||||
}, |
||||
"id": 6, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "table", |
||||
"showLegend": true |
||||
} |
||||
}, |
||||
"title": "Visible Legend" |
||||
}, |
||||
{ |
||||
"datasource": null, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 24 |
||||
}, |
||||
"id": 7, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
} |
||||
], |
||||
"title": "Mixed Datasources Panel" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "-- Mixed --" |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 24 |
||||
}, |
||||
"id": 8, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
} |
||||
], |
||||
"title": "Mixed Panel with Mixed Targets" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 32 |
||||
}, |
||||
"id": 9, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
} |
||||
} |
||||
], |
||||
"title": "Non-existing Datasource Panel" |
||||
}, |
||||
{ |
||||
"fieldConfig": { |
||||
"defaults": { |
||||
"custom": { |
||||
"axisPlacement": "hidden" |
||||
} |
||||
}, |
||||
"overrides": [ |
||||
{ |
||||
"matcher": { |
||||
"id": "byType", |
||||
"options": "time" |
||||
}, |
||||
"properties": [ |
||||
{ |
||||
"id": "custom.axisPlacement", |
||||
"value": "auto" |
||||
} |
||||
] |
||||
} |
||||
] |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 40 |
||||
}, |
||||
"id": 10, |
||||
"title": "Timeseries Panel with Hidden Axes", |
||||
"type": "timeseries" |
||||
} |
||||
], |
||||
"preload": false, |
||||
"refresh": true, |
||||
"schemaVersion": 39, |
||||
"tags": [], |
||||
"templating": { |
||||
"list": [ |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"name": "default_var", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"name": "es_var_by_name", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"name": "es_var_by_uid", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"name": "null_var", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"name": "non_existing_var", |
||||
"type": "query" |
||||
} |
||||
] |
||||
}, |
||||
"time": { |
||||
"from": "now-6h", |
||||
"to": "now" |
||||
}, |
||||
"timepicker": { |
||||
"time_options": [ |
||||
"5m", |
||||
"15m", |
||||
"1h", |
||||
"6h", |
||||
"12h", |
||||
"24h", |
||||
"2d", |
||||
"7d", |
||||
"30d" |
||||
] |
||||
}, |
||||
"timezone": "utc", |
||||
"title": "New dashboard", |
||||
"version": 0, |
||||
"weekStart": "" |
||||
} |
@ -0,0 +1,331 @@ |
||||
{ |
||||
"annotations": { |
||||
"list": [ |
||||
{ |
||||
"builtIn": 1, |
||||
"datasource": { |
||||
"type": "grafana", |
||||
"uid": "-- Grafana --" |
||||
}, |
||||
"enable": true, |
||||
"hide": true, |
||||
"iconColor": "rgba(0, 211, 255, 1)", |
||||
"name": "Annotations \u0026 Alerts", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Annotation by Name", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Annotation by UID", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Default Annotation", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Non-existing Annotation", |
||||
"type": "dashboard" |
||||
} |
||||
] |
||||
}, |
||||
"editable": true, |
||||
"fiscalYearStartMonth": 0, |
||||
"graphTooltip": 0, |
||||
"links": [], |
||||
"panels": [ |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 0 |
||||
}, |
||||
"id": 1, |
||||
"options": {}, |
||||
"title": "No Legend Config", |
||||
"type": "graph" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 0 |
||||
}, |
||||
"id": 2, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": true |
||||
} |
||||
}, |
||||
"title": "Boolean Legend True" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 8 |
||||
}, |
||||
"id": 3, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "Boolean Legend False" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 8 |
||||
}, |
||||
"id": 4, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "Hidden DisplayMode" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 16 |
||||
}, |
||||
"id": 5, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "ShowLegend False" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 16 |
||||
}, |
||||
"id": 6, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "table", |
||||
"showLegend": true |
||||
} |
||||
}, |
||||
"title": "Visible Legend" |
||||
}, |
||||
{ |
||||
"datasource": null, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 24 |
||||
}, |
||||
"id": 7, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
} |
||||
], |
||||
"title": "Mixed Datasources Panel" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "-- Mixed --" |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 24 |
||||
}, |
||||
"id": 8, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
} |
||||
], |
||||
"title": "Mixed Panel with Mixed Targets" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 32 |
||||
}, |
||||
"id": 9, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
} |
||||
} |
||||
], |
||||
"title": "Non-existing Datasource Panel" |
||||
}, |
||||
{ |
||||
"fieldConfig": { |
||||
"defaults": { |
||||
"custom": { |
||||
"axisPlacement": "hidden" |
||||
} |
||||
}, |
||||
"overrides": [ |
||||
{ |
||||
"matcher": { |
||||
"id": "byType", |
||||
"options": "time" |
||||
}, |
||||
"properties": [ |
||||
{ |
||||
"id": "custom.axisPlacement", |
||||
"value": "auto" |
||||
} |
||||
] |
||||
} |
||||
] |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 40 |
||||
}, |
||||
"id": 10, |
||||
"title": "Timeseries Panel with Hidden Axes", |
||||
"type": "timeseries" |
||||
} |
||||
], |
||||
"preload": false, |
||||
"refresh": "", |
||||
"schemaVersion": 40, |
||||
"tags": [], |
||||
"templating": { |
||||
"list": [ |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"name": "default_var", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"name": "es_var_by_name", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"name": "es_var_by_uid", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"name": "null_var", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"name": "non_existing_var", |
||||
"type": "query" |
||||
} |
||||
] |
||||
}, |
||||
"time": { |
||||
"from": "now-6h", |
||||
"to": "now" |
||||
}, |
||||
"timepicker": { |
||||
"time_options": [ |
||||
"5m", |
||||
"15m", |
||||
"1h", |
||||
"6h", |
||||
"12h", |
||||
"24h", |
||||
"2d", |
||||
"7d", |
||||
"30d" |
||||
] |
||||
}, |
||||
"timezone": "utc", |
||||
"title": "New dashboard", |
||||
"version": 0, |
||||
"weekStart": "" |
||||
} |
@ -0,0 +1,319 @@ |
||||
{ |
||||
"annotations": { |
||||
"list": [ |
||||
{ |
||||
"builtIn": 1, |
||||
"datasource": { |
||||
"type": "grafana", |
||||
"uid": "-- Grafana --" |
||||
}, |
||||
"enable": true, |
||||
"hide": true, |
||||
"iconColor": "rgba(0, 211, 255, 1)", |
||||
"name": "Annotations \u0026 Alerts", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Annotation by Name", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Annotation by UID", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Default Annotation", |
||||
"type": "dashboard" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"enable": true, |
||||
"name": "Test Non-existing Annotation", |
||||
"type": "dashboard" |
||||
} |
||||
] |
||||
}, |
||||
"editable": true, |
||||
"fiscalYearStartMonth": 0, |
||||
"graphTooltip": 0, |
||||
"links": [], |
||||
"panels": [ |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 0 |
||||
}, |
||||
"id": 1, |
||||
"options": {}, |
||||
"title": "No Legend Config", |
||||
"type": "graph" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 0 |
||||
}, |
||||
"id": 2, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": true |
||||
} |
||||
}, |
||||
"title": "Boolean Legend True" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 8 |
||||
}, |
||||
"id": 3, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "Boolean Legend False" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 8 |
||||
}, |
||||
"id": 4, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "Hidden DisplayMode" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 16 |
||||
}, |
||||
"id": 5, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "list", |
||||
"showLegend": false |
||||
} |
||||
}, |
||||
"title": "ShowLegend False" |
||||
}, |
||||
{ |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 16 |
||||
}, |
||||
"id": 6, |
||||
"options": { |
||||
"legend": { |
||||
"displayMode": "table", |
||||
"showLegend": true |
||||
} |
||||
}, |
||||
"title": "Visible Legend" |
||||
}, |
||||
{ |
||||
"datasource": null, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 24 |
||||
}, |
||||
"id": 7, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
} |
||||
], |
||||
"title": "Mixed Datasources Panel" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "-- Mixed --" |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 12, |
||||
"y": 24 |
||||
}, |
||||
"id": 8, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
} |
||||
} |
||||
], |
||||
"title": "Mixed Panel with Mixed Targets" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 32 |
||||
}, |
||||
"id": 9, |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
} |
||||
} |
||||
], |
||||
"title": "Non-existing Datasource Panel" |
||||
}, |
||||
{ |
||||
"fieldConfig": { |
||||
"defaults": { |
||||
"custom": { |
||||
"axisPlacement": "hidden" |
||||
} |
||||
}, |
||||
"overrides": [ |
||||
{ |
||||
"matcher": { |
||||
"id": "byType", |
||||
"options": "time" |
||||
}, |
||||
"properties": [ |
||||
{ |
||||
"id": "custom.axisPlacement", |
||||
"value": "auto" |
||||
} |
||||
] |
||||
} |
||||
] |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 40 |
||||
}, |
||||
"id": 10, |
||||
"title": "Timeseries Panel with Hidden Axes", |
||||
"type": "timeseries" |
||||
} |
||||
], |
||||
"preload": false, |
||||
"refresh": "", |
||||
"schemaVersion": 41, |
||||
"tags": [], |
||||
"templating": { |
||||
"list": [ |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"name": "default_var", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"name": "es_var_by_name", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"apiVersion": "1", |
||||
"type": "loki", |
||||
"uid": "non-default-test-ds-uid" |
||||
}, |
||||
"name": "es_var_by_uid", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"type": "prometheus", |
||||
"uid": "default-ds-uid" |
||||
}, |
||||
"name": "null_var", |
||||
"type": "query" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"uid": "non-existing-ds" |
||||
}, |
||||
"name": "non_existing_var", |
||||
"type": "query" |
||||
} |
||||
] |
||||
}, |
||||
"time": { |
||||
"from": "now-6h", |
||||
"to": "now" |
||||
}, |
||||
"timepicker": {}, |
||||
"timezone": "utc", |
||||
"title": "New dashboard", |
||||
"version": 0, |
||||
"weekStart": "" |
||||
} |
Loading…
Reference in new issue