Skip to content

Commit

Permalink
chore(grafana-dashboard): Add file size query to per vault / tag panel
Browse files Browse the repository at this point in the history
  • Loading branch information
lasuillard committed Sep 23, 2024
1 parent d3e6b31 commit 4ca4a8a
Showing 1 changed file with 121 additions and 4 deletions.
125 changes: 121 additions & 4 deletions examples/grafana-dashboard/dashboard.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,44 @@
{
"__inputs": [],
"__elements": {},
"__requires": [
{
"type": "panel",
"id": "gauge",
"name": "Gauge",
"version": ""
},
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "11.2.0"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
},
{
"type": "panel",
"id": "table",
"name": "Table",
"version": ""
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": {
"list": [
{
Expand All @@ -19,6 +59,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -1793,7 +1834,7 @@
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisLabel": "op_document_count_per_vault",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
Expand Down Expand Up @@ -1837,7 +1878,28 @@
]
}
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byName",
"options": "op_document_file_size_per_vault_bytes"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "right"
},
{
"id": "custom.axisLabel",
"value": "op_document_file_size_per_vault_bytes"
},
{
"id": "unit",
"value": "decbytes"
}
]
}
]
},
"gridPos": {
"h": 10,
Expand Down Expand Up @@ -1875,6 +1937,23 @@
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "op_document_file_size_per_vault_bytes",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "{{vault}}",
"range": true,
"refId": "B",
"useBackend": false
}
],
"title": "Documents per Vault",
Expand Down Expand Up @@ -2332,7 +2411,7 @@
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisLabel": "op_document_count_per_tag",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
Expand Down Expand Up @@ -2376,7 +2455,28 @@
]
}
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byName",
"options": "op_document_file_size_per_tag_bytes"
},
"properties": [
{
"id": "custom.axisPlacement",
"value": "right"
},
{
"id": "custom.axisLabel",
"value": "op_document_file_size_per_tag_bytes"
},
{
"id": "unit",
"value": "decbytes"
}
]
}
]
},
"gridPos": {
"h": 10,
Expand Down Expand Up @@ -2414,6 +2514,23 @@
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "op_document_file_size_per_tag_bytes",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "{{tag}}",
"range": true,
"refId": "B",
"useBackend": false
}
],
"title": "Documents per Tag",
Expand Down

0 comments on commit 4ca4a8a

Please sign in to comment.