{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, "id": 549, "links": [], "panels": [ { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 100, "panels": [], "title": "🏠 Trilium Overview", "type": "row" }, { "datasource": { "uid": "${datasource}" }, "description": "Current Trilium version and build information", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": false, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] } }, "overrides": [] }, "gridPos": { "h": 6, "w": 12, "x": 0, "y": 1 }, "id": 101, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "12.0.1", "targets": [ { "datasource": { "uid": "${datasource}" }, "expr": "trilium_info{job=~'$job',instance=~'$instance'}", "format": "table", "instant": true, "refId": "A" } ], "title": "📋 Instance Information", "transformations": [ { "id": "organize", "options": { "excludeByName": { "Time": true, "Value": true, "__name__": true, "instance": true, "job": true }, "indexByName": {}, "renameByName": { "build_date": "Build Date", "build_revision": "Git Revision", "db_version": "DB Version", "node_version": "Node.js", "sync_version": "Sync Version", "version": "Version" } } } ], "type": "table" }, { "datasource": { "uid": "${datasource}" }, "description": "Database file size in human-readable format", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "yellow", "value": 500000000 }, { "color": "red", "value": 1000000000 } ] }, "unit": "decbytes" }, "overrides": [] }, "gridPos": { "h": 6, "w": 6, "x": 12, "y": 1 }, "id": 102, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "center", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.0.1", "targets": [ { "datasource": { "uid": "${datasource}" }, "expr": "trilium_database_size_bytes{job=~'$job',instance=~'$instance'}", "refId": "A" } ], "title": "💾 Database Size", "type": "stat" }, { "datasource": { "uid": "${datasource}" }, "description": "Total active notes in your Trilium instance", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "yellow", "value": 1000 }, { "color": "red", "value": 5000 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 6, "w": 6, "x": 18, "y": 1 }, "id": 103, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "center", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.0.1", "targets": [ { "datasource": { "uid": "${datasource}" }, "expr": "trilium_notes_active{job=~'$job',instance=~'$instance'}", "refId": "A" } ], "title": "📝 Active Notes", "type": "stat" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 7 }, "id": 200, "panels": [], "title": "📊 Key Metrics", "type": "row" }, { "datasource": { "uid": "${datasource}" }, "description": "Total notes including deleted ones", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "hideFrom": { "legend": false, "tooltip": false, "viz": false } }, "mappings": [], "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 0, "y": 8 }, "id": 201, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true, "values": [] }, "pieType": "pie", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.0.1", "targets": [ { "datasource": { "uid": "${datasource}" }, "expr": "trilium_notes_active{job=~'$job',instance=~'$instance'}", "legendFormat": "Active Notes", "refId": "A" }, { "datasource": { "uid": "${datasource}" }, "expr": "trilium_notes_deleted{job=~'$job',instance=~'$instance'}", "legendFormat": "Deleted Notes", "refId": "B" }, { "datasource": { "uid": "${datasource}" }, "expr": "trilium_notes_protected{job=~'$job',instance=~'$instance'}", "legendFormat": "Protected Notes", "refId": "C" } ], "title": "📝 Notes Distribution", "type": "piechart" }, { "datasource": { "uid": "${datasource}" }, "description": "Breakdown of attachments by MIME type", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "hideFrom": { "legend": false, "tooltip": false, "viz": false } }, "mappings": [], "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 6, "y": 8 }, "id": 202, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true, "values": [] }, "pieType": "donut", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.0.1", "targets": [ { "datasource": { "uid": "${datasource}" }, "expr": "trilium_attachments_by_type{job=~'$job',instance=~'$instance'}", "legendFormat": "{{mime_type}}", "refId": "A" } ], "title": "🖼️ Attachments by Type", "type": "piechart" }, { "datasource": { "uid": "${datasource}" }, "description": "Distribution of notes by their content type", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "hideFrom": { "legend": false, "tooltip": false, "viz": false } }, "mappings": [], "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, "id": 203, "options": { "legend": { "displayMode": "table", "placement": "right", "showLegend": true, "values": [ "value", "percent" ] }, "pieType": "donut", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.0.1", "targets": [ { "datasource": { "uid": "${datasource}" }, "expr": "trilium_notes_by_type{job=~'$job',instance=~'$instance'}", "legendFormat": "{{type}}", "refId": "A" } ], "title": "📄 Notes by Content Type", "type": "piechart" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 16 }, "id": 300, "panels": [], "title": "📈 Trends & Time Series", "type": "row" }, { "datasource": { "uid": "${datasource}" }, "description": "Growth of notes over time", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 20, "gradientMode": "hue", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "smooth", "lineWidth": 3, "pointSize": 8, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byName", "options": "Active Notes" }, "properties": [ { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "Total Notes" }, "properties": [ { "id": "color", "value": { "fixedColor": "green", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 17 }, "id": 301, "options": { "legend": { "calcs": [ "last", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "desc" } }, "pluginVersion": "12.0.1", "targets": [ { "datasource": { "uid": "${datasource}" }, "expr": "trilium_notes_active{job=~'$job',instance=~'$instance'}", "legendFormat": "Active Notes", "refId": "A" }, { "datasource": { "uid": "${datasource}" }, "expr": "trilium_notes_total{job=~'$job',instance=~'$instance'}", "legendFormat": "Total Notes", "refId": "B" } ], "title": "📈 Notes Growth Over Time", "type": "timeseries" }, { "datasource": { "uid": "${datasource}" }, "description": "Attachment storage trends", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 20, "gradientMode": "hue", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "smooth", "lineWidth": 3, "pointSize": 8, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byName", "options": "Active Attachments" }, "properties": [ { "id": "color", "value": { "fixedColor": "purple", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "Total Attachments" }, "properties": [ { "id": "color", "value": { "fixedColor": "orange", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 17 }, "id": 302, "options": { "legend": { "calcs": [ "last", "max" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "desc" } }, "pluginVersion": "12.0.1", "targets": [ { "datasource": { "uid": "${datasource}" }, "expr": "trilium_attachments_active{job=~'$job',instance=~'$instance'}", "legendFormat": "Active Attachments", "refId": "A" }, { "datasource": { "uid": "${datasource}" }, "expr": "trilium_attachments_total{job=~'$job',instance=~'$instance'}", "legendFormat": "Total Attachments", "refId": "B" } ], "title": "📎 Attachments Growth Over Time", "type": "timeseries" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 25 }, "id": 400, "panels": [], "title": "🔧 Advanced Metrics", "type": "row" }, { "datasource": { "uid": "${datasource}" }, "description": "Number of branches connecting notes", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 4, "w": 6, "x": 0, "y": 26 }, "id": 401, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "center", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.0.1", "targets": [ { "datasource": { "uid": "${datasource}" }, "expr": "trilium_branches_total{job=~'$job',instance=~'$instance'}", "refId": "A" } ], "title": "🌳 Total Branches", "type": "stat" }, { "datasource": { "uid": "${datasource}" }, "description": "Number of note attributes", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 4, "w": 6, "x": 6, "y": 26 }, "id": 402, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "center", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.0.1", "targets": [ { "datasource": { "uid": "${datasource}" }, "expr": "trilium_attributes_total{job=~'$job',instance=~'$instance'}", "refId": "A" } ], "title": "🏷️ Attributes", "type": "stat" }, { "datasource": { "uid": "${datasource}" }, "description": "Number of note revisions", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 4, "w": 6, "x": 12, "y": 26 }, "id": 403, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "center", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.0.1", "targets": [ { "datasource": { "uid": "${datasource}" }, "expr": "trilium_revisions_total{job=~'$job',instance=~'$instance'}", "refId": "A" } ], "title": "🔄 Revisions", "type": "stat" }, { "datasource": { "uid": "${datasource}" }, "description": "Number of ETAPI tokens", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 4, "w": 6, "x": 18, "y": 26 }, "id": 404, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "center", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.0.1", "targets": [ { "datasource": { "uid": "${datasource}" }, "expr": "trilium_etapi_tokens_total{job=~'$job',instance=~'$instance'}", "refId": "A" } ], "title": "🔑 API Tokens", "type": "stat" }, { "datasource": { "uid": "${datasource}" }, "description": "Various storage and system metrics", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byName", "options": "Recent Notes" }, "properties": [ { "id": "color", "value": { "fixedColor": "yellow", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 30 }, "id": 405, "options": { "legend": { "calcs": [ "last" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "desc" } }, "pluginVersion": "12.0.1", "targets": [ { "datasource": { "uid": "${datasource}" }, "expr": "trilium_blobs_total{job=~'$job',instance=~'$instance'}", "legendFormat": "Blob Records", "refId": "A" }, { "datasource": { "uid": "${datasource}" }, "expr": "trilium_recent_notes_total{job=~'$job',instance=~'$instance'}", "legendFormat": "Recent Notes", "refId": "B" }, { "datasource": { "uid": "${datasource}" }, "expr": "trilium_embeddings_total{job=~'$job',instance=~'$instance'}", "legendFormat": "Embeddings", "refId": "C" }, { "datasource": { "uid": "${datasource}" }, "expr": "trilium_embedding_providers_total{job=~'$job',instance=~'$instance'}", "legendFormat": "Embedding Providers", "refId": "D" } ], "title": "📊 Storage & System Metrics", "type": "timeseries" }, { "datasource": { "uid": "${datasource}" }, "description": "Timeline showing when content was created and last modified", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "points", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 8, "scaleDistribution": { "type": "linear" }, "showPoints": "always", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "dateTimeAsIso" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 30 }, "id": 406, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.0.1", "targets": [ { "datasource": { "uid": "${datasource}" }, "expr": "trilium_oldest_note_timestamp{job=~'$job',instance=~'$instance'} * 1000", "legendFormat": "Oldest Note", "refId": "A" }, { "datasource": { "uid": "${datasource}" }, "expr": "trilium_newest_note_timestamp{job=~'$job',instance=~'$instance'} * 1000", "legendFormat": "Newest Note", "refId": "B" }, { "datasource": { "uid": "${datasource}" }, "expr": "trilium_last_modified_timestamp{job=~'$job',instance=~'$instance'} * 1000", "legendFormat": "Last Modified", "refId": "C" } ], "title": "⏰ Content Timeline", "type": "timeseries" } ], "preload": false, "refresh": "1m", "schemaVersion": 41, "tags": [ "trilium", "notes", "monitoring", "enhanced" ], "templating": { "list": [ { "current": { "text": "myprom", "value": "PA04845DA3A4B088E" }, "includeAll": false, "label": "Datasource", "name": "datasource", "options": [], "query": "prometheus", "refresh": 1, "regex": "//", "type": "datasource" }, { "allValue": ".*", "current": { "text": "All", "value": "$__all" }, "datasource": { "UID": "", "type": "" }, "includeAll": true, "label": "Job", "multi": true, "name": "job", "options": [], "query": "query_result(up)", "refresh": 1, "regex": "/job=\"([^\"]+)\"/", "sort": 1, "type": "query" }, { "allValue": ".*", "current": { "text": [ "All" ], "value": [ "$__all" ] }, "datasource": { "type": "prometheus", "uid": "${datasource}" }, "includeAll": true, "label": "Instance", "multi": true, "name": "instance", "options": [], "query": "trilium_database_size_bytes", "refresh": 1, "regex": "/instance=\"([^\"]+)\"/", "sort": 1, "type": "query" } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "TriliumNext Dashboard", "uid": "06993f9b-a477-4723-bf18-47743393b382", "version": 5 }