mirror of https://github.com/grafana/grafana
[search] grouping - support indexing dashboard tags, filtering by tag, listing tags (#95670)
[search] groupingpull/95682/head
parent
f539a70d6d
commit
f8a5813573
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,284 @@ |
||||
{ |
||||
"kind": "Dashboard", |
||||
"apiVersion": "dashboard.grafana.app/v0alpha1", |
||||
"metadata": { |
||||
"name": "adg5xd8", |
||||
"namespace": "default", |
||||
"uid": "86ab200a-e8b0-47ce-bbc1-8c2e078b0956", |
||||
"creationTimestamp": "2024-10-30T20:24:07Z", |
||||
"annotations": { |
||||
"grafana.app/createdBy": "user:be2g71ke8yoe8b", |
||||
"grafana.app/originHash": "Grafana v9.2.0 (NA)", |
||||
"grafana.app/originName": "UI", |
||||
"grafana.app/originPath": "/dashboard/new" |
||||
}, |
||||
"managedFields": [ |
||||
{ |
||||
"manager": "Mozilla", |
||||
"operation": "Update", |
||||
"apiVersion": "dashboard.grafana.app/v0alpha1", |
||||
"time": "2024-10-30T20:24:07Z", |
||||
"fieldsType": "FieldsV1", |
||||
"fieldsV1": { |
||||
"f:metadata": { |
||||
"f:annotations": { |
||||
".": {}, |
||||
"f:grafana.app/originHash": {}, |
||||
"f:grafana.app/originName": {}, |
||||
"f:grafana.app/originPath": {} |
||||
}, |
||||
"f:generateName": {} |
||||
}, |
||||
"f:spec": { |
||||
"f:annotations": { |
||||
".": {}, |
||||
"f:list": {} |
||||
}, |
||||
"f:description": {}, |
||||
"f:editable": {}, |
||||
"f:fiscalYearStartMonth": {}, |
||||
"f:graphTooltip": {}, |
||||
"f:id": {}, |
||||
"f:links": {}, |
||||
"f:panels": {}, |
||||
"f:preload": {}, |
||||
"f:schemaVersion": {}, |
||||
"f:tags": {}, |
||||
"f:templating": { |
||||
".": {}, |
||||
"f:list": {} |
||||
}, |
||||
"f:timepicker": {}, |
||||
"f:timezone": {}, |
||||
"f:title": {}, |
||||
"f:uid": {}, |
||||
"f:version": {}, |
||||
"f:weekStart": {} |
||||
} |
||||
} |
||||
} |
||||
] |
||||
}, |
||||
"spec": { |
||||
"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" |
||||
} |
||||
] |
||||
}, |
||||
"description": "A dashboard with tags", |
||||
"editable": true, |
||||
"fiscalYearStartMonth": 0, |
||||
"graphTooltip": 0, |
||||
"id": null, |
||||
"links": [], |
||||
"panels": [ |
||||
{ |
||||
"datasource": { |
||||
"type": "datasource", |
||||
"uid": "grafana" |
||||
}, |
||||
"fieldConfig": { |
||||
"defaults": { |
||||
"color": { |
||||
"mode": "palette-classic" |
||||
}, |
||||
"custom": { |
||||
"axisBorderShow": false, |
||||
"axisCenteredZero": false, |
||||
"axisColorMode": "text", |
||||
"axisLabel": "", |
||||
"axisPlacement": "auto", |
||||
"barAlignment": 0, |
||||
"barWidthFactor": 0.6, |
||||
"drawStyle": "line", |
||||
"fillOpacity": 0, |
||||
"gradientMode": "none", |
||||
"hideFrom": { |
||||
"legend": false, |
||||
"tooltip": false, |
||||
"viz": false |
||||
}, |
||||
"insertNulls": false, |
||||
"lineInterpolation": "linear", |
||||
"lineWidth": 1, |
||||
"pointSize": 5, |
||||
"scaleDistribution": { |
||||
"type": "linear" |
||||
}, |
||||
"showPoints": "auto", |
||||
"spanNulls": false, |
||||
"stacking": { |
||||
"group": "A", |
||||
"mode": "none" |
||||
}, |
||||
"thresholdsStyle": { |
||||
"mode": "off" |
||||
} |
||||
}, |
||||
"mappings": [], |
||||
"thresholds": { |
||||
"mode": "absolute", |
||||
"steps": [ |
||||
{ |
||||
"color": "green", |
||||
"value": null |
||||
}, |
||||
{ |
||||
"color": "red", |
||||
"value": 80 |
||||
} |
||||
] |
||||
} |
||||
}, |
||||
"overrides": [] |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 0 |
||||
}, |
||||
"id": 2, |
||||
"options": { |
||||
"legend": { |
||||
"calcs": [], |
||||
"displayMode": "list", |
||||
"placement": "bottom", |
||||
"showLegend": true |
||||
}, |
||||
"tooltip": { |
||||
"mode": "single", |
||||
"sort": "none" |
||||
} |
||||
}, |
||||
"pluginVersion": "9.2.0", |
||||
"targets": [ |
||||
{ |
||||
"refId": "A" |
||||
} |
||||
], |
||||
"title": "Panel 2", |
||||
"type": "timeseries" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"type": "datasource", |
||||
"uid": "grafana" |
||||
}, |
||||
"fieldConfig": { |
||||
"defaults": { |
||||
"color": { |
||||
"mode": "palette-classic" |
||||
}, |
||||
"custom": { |
||||
"axisBorderShow": false, |
||||
"axisCenteredZero": false, |
||||
"axisColorMode": "text", |
||||
"axisLabel": "", |
||||
"axisPlacement": "auto", |
||||
"barAlignment": 0, |
||||
"barWidthFactor": 0.6, |
||||
"drawStyle": "line", |
||||
"fillOpacity": 0, |
||||
"gradientMode": "none", |
||||
"hideFrom": { |
||||
"legend": false, |
||||
"tooltip": false, |
||||
"viz": false |
||||
}, |
||||
"insertNulls": false, |
||||
"lineInterpolation": "linear", |
||||
"lineWidth": 1, |
||||
"pointSize": 5, |
||||
"scaleDistribution": { |
||||
"type": "linear" |
||||
}, |
||||
"showPoints": "auto", |
||||
"spanNulls": false, |
||||
"stacking": { |
||||
"group": "A", |
||||
"mode": "none" |
||||
}, |
||||
"thresholdsStyle": { |
||||
"mode": "off" |
||||
} |
||||
}, |
||||
"mappings": [], |
||||
"thresholds": { |
||||
"mode": "absolute", |
||||
"steps": [ |
||||
{ |
||||
"color": "green", |
||||
"value": null |
||||
}, |
||||
{ |
||||
"color": "red", |
||||
"value": 80 |
||||
} |
||||
] |
||||
} |
||||
}, |
||||
"overrides": [] |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 8 |
||||
}, |
||||
"id": 1, |
||||
"options": { |
||||
"legend": { |
||||
"calcs": [], |
||||
"displayMode": "list", |
||||
"placement": "bottom", |
||||
"showLegend": true |
||||
}, |
||||
"tooltip": { |
||||
"mode": "single", |
||||
"sort": "none" |
||||
} |
||||
}, |
||||
"pluginVersion": "9.2.0", |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"type": "datasource", |
||||
"uid": "grafana" |
||||
}, |
||||
"refId": "A" |
||||
} |
||||
], |
||||
"title": "Another Panel", |
||||
"type": "timeseries" |
||||
} |
||||
], |
||||
"preload": false, |
||||
"schemaVersion": 40, |
||||
"tags": [ |
||||
"tag1", |
||||
"tag2", |
||||
"tag3" |
||||
], |
||||
"templating": { |
||||
"list": [] |
||||
}, |
||||
"timepicker": {}, |
||||
"timezone": "browser", |
||||
"title": "Dashboard with Tags", |
||||
"uid": "", |
||||
"version": 0, |
||||
"weekStart": "" |
||||
} |
||||
} |
@ -0,0 +1,284 @@ |
||||
{ |
||||
"kind": "Dashboard", |
||||
"apiVersion": "dashboard.grafana.app/v0alpha1", |
||||
"metadata": { |
||||
"name": "foo", |
||||
"namespace": "default", |
||||
"uid": "86ab200a-e8b0-47ce-bbc1-8c2e078b0956-2", |
||||
"creationTimestamp": "2024-10-30T20:24:07Z", |
||||
"annotations": { |
||||
"grafana.app/createdBy": "user:be2g71ke8yoe8b", |
||||
"grafana.app/originHash": "Grafana v9.2.0 (NA)", |
||||
"grafana.app/originName": "UI", |
||||
"grafana.app/originPath": "/dashboard/new" |
||||
}, |
||||
"managedFields": [ |
||||
{ |
||||
"manager": "Mozilla", |
||||
"operation": "Update", |
||||
"apiVersion": "dashboard.grafana.app/v0alpha1", |
||||
"time": "2024-10-30T20:24:07Z", |
||||
"fieldsType": "FieldsV1", |
||||
"fieldsV1": { |
||||
"f:metadata": { |
||||
"f:annotations": { |
||||
".": {}, |
||||
"f:grafana.app/originHash": {}, |
||||
"f:grafana.app/originName": {}, |
||||
"f:grafana.app/originPath": {} |
||||
}, |
||||
"f:generateName": {} |
||||
}, |
||||
"f:spec": { |
||||
"f:annotations": { |
||||
".": {}, |
||||
"f:list": {} |
||||
}, |
||||
"f:description": {}, |
||||
"f:editable": {}, |
||||
"f:fiscalYearStartMonth": {}, |
||||
"f:graphTooltip": {}, |
||||
"f:id": {}, |
||||
"f:links": {}, |
||||
"f:panels": {}, |
||||
"f:preload": {}, |
||||
"f:schemaVersion": {}, |
||||
"f:tags": {}, |
||||
"f:templating": { |
||||
".": {}, |
||||
"f:list": {} |
||||
}, |
||||
"f:timepicker": {}, |
||||
"f:timezone": {}, |
||||
"f:title": {}, |
||||
"f:uid": {}, |
||||
"f:version": {}, |
||||
"f:weekStart": {} |
||||
} |
||||
} |
||||
} |
||||
] |
||||
}, |
||||
"spec": { |
||||
"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" |
||||
} |
||||
] |
||||
}, |
||||
"description": "Another dashboard with tags", |
||||
"editable": true, |
||||
"fiscalYearStartMonth": 0, |
||||
"graphTooltip": 0, |
||||
"id": null, |
||||
"links": [], |
||||
"panels": [ |
||||
{ |
||||
"datasource": { |
||||
"type": "datasource", |
||||
"uid": "grafana" |
||||
}, |
||||
"fieldConfig": { |
||||
"defaults": { |
||||
"color": { |
||||
"mode": "palette-classic" |
||||
}, |
||||
"custom": { |
||||
"axisBorderShow": false, |
||||
"axisCenteredZero": false, |
||||
"axisColorMode": "text", |
||||
"axisLabel": "", |
||||
"axisPlacement": "auto", |
||||
"barAlignment": 0, |
||||
"barWidthFactor": 0.6, |
||||
"drawStyle": "line", |
||||
"fillOpacity": 0, |
||||
"gradientMode": "none", |
||||
"hideFrom": { |
||||
"legend": false, |
||||
"tooltip": false, |
||||
"viz": false |
||||
}, |
||||
"insertNulls": false, |
||||
"lineInterpolation": "linear", |
||||
"lineWidth": 1, |
||||
"pointSize": 5, |
||||
"scaleDistribution": { |
||||
"type": "linear" |
||||
}, |
||||
"showPoints": "auto", |
||||
"spanNulls": false, |
||||
"stacking": { |
||||
"group": "A", |
||||
"mode": "none" |
||||
}, |
||||
"thresholdsStyle": { |
||||
"mode": "off" |
||||
} |
||||
}, |
||||
"mappings": [], |
||||
"thresholds": { |
||||
"mode": "absolute", |
||||
"steps": [ |
||||
{ |
||||
"color": "green", |
||||
"value": null |
||||
}, |
||||
{ |
||||
"color": "red", |
||||
"value": 80 |
||||
} |
||||
] |
||||
} |
||||
}, |
||||
"overrides": [] |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 0 |
||||
}, |
||||
"id": 2, |
||||
"options": { |
||||
"legend": { |
||||
"calcs": [], |
||||
"displayMode": "list", |
||||
"placement": "bottom", |
||||
"showLegend": true |
||||
}, |
||||
"tooltip": { |
||||
"mode": "single", |
||||
"sort": "none" |
||||
} |
||||
}, |
||||
"pluginVersion": "9.2.0", |
||||
"targets": [ |
||||
{ |
||||
"refId": "A" |
||||
} |
||||
], |
||||
"title": "Panel 2", |
||||
"type": "timeseries" |
||||
}, |
||||
{ |
||||
"datasource": { |
||||
"type": "datasource", |
||||
"uid": "grafana" |
||||
}, |
||||
"fieldConfig": { |
||||
"defaults": { |
||||
"color": { |
||||
"mode": "palette-classic" |
||||
}, |
||||
"custom": { |
||||
"axisBorderShow": false, |
||||
"axisCenteredZero": false, |
||||
"axisColorMode": "text", |
||||
"axisLabel": "", |
||||
"axisPlacement": "auto", |
||||
"barAlignment": 0, |
||||
"barWidthFactor": 0.6, |
||||
"drawStyle": "line", |
||||
"fillOpacity": 0, |
||||
"gradientMode": "none", |
||||
"hideFrom": { |
||||
"legend": false, |
||||
"tooltip": false, |
||||
"viz": false |
||||
}, |
||||
"insertNulls": false, |
||||
"lineInterpolation": "linear", |
||||
"lineWidth": 1, |
||||
"pointSize": 5, |
||||
"scaleDistribution": { |
||||
"type": "linear" |
||||
}, |
||||
"showPoints": "auto", |
||||
"spanNulls": false, |
||||
"stacking": { |
||||
"group": "A", |
||||
"mode": "none" |
||||
}, |
||||
"thresholdsStyle": { |
||||
"mode": "off" |
||||
} |
||||
}, |
||||
"mappings": [], |
||||
"thresholds": { |
||||
"mode": "absolute", |
||||
"steps": [ |
||||
{ |
||||
"color": "green", |
||||
"value": null |
||||
}, |
||||
{ |
||||
"color": "red", |
||||
"value": 80 |
||||
} |
||||
] |
||||
} |
||||
}, |
||||
"overrides": [] |
||||
}, |
||||
"gridPos": { |
||||
"h": 8, |
||||
"w": 12, |
||||
"x": 0, |
||||
"y": 8 |
||||
}, |
||||
"id": 1, |
||||
"options": { |
||||
"legend": { |
||||
"calcs": [], |
||||
"displayMode": "list", |
||||
"placement": "bottom", |
||||
"showLegend": true |
||||
}, |
||||
"tooltip": { |
||||
"mode": "single", |
||||
"sort": "none" |
||||
} |
||||
}, |
||||
"pluginVersion": "9.2.0", |
||||
"targets": [ |
||||
{ |
||||
"datasource": { |
||||
"type": "datasource", |
||||
"uid": "grafana" |
||||
}, |
||||
"refId": "A" |
||||
} |
||||
], |
||||
"title": "Another Panel", |
||||
"type": "timeseries" |
||||
} |
||||
], |
||||
"preload": false, |
||||
"schemaVersion": 40, |
||||
"tags": [ |
||||
"tag1", |
||||
"tag2", |
||||
"tag4" |
||||
], |
||||
"templating": { |
||||
"list": [] |
||||
}, |
||||
"timepicker": {}, |
||||
"timezone": "browser", |
||||
"title": "Dashboard with Tags", |
||||
"uid": "", |
||||
"version": 0, |
||||
"weekStart": "" |
||||
} |
||||
} |
Loading…
Reference in new issue