{ "__inputs": [ { "name": "DS_DMS.YOURINSTANCE.COM", "label": "dms.yourinstance.com", "description": "", "type": "datasource", "pluginId": "postgres", "pluginName": "PostgreSQL" } ], "__elements": {}, "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "9.5.1" }, { "type": "datasource", "id": "postgres", "name": "PostgreSQL", "version": "1.0.0" }, { "type": "panel", "id": "stat", "name": "Stat", "version": "" }, { "type": "panel", "id": "table", "name": "Table", "version": "" }, { "type": "panel", "id": "table-old", "name": "Table (old)", "version": "" }, { "type": "panel", "id": "timeseries", "name": "Time series", "version": "" } ], "annotations": { "list": [ { "$$hashKey": "object:132", "builtIn": 1, "datasource": { "type": "datasource", "uid": "grafana" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": null, "links": [], "liveNow": false, "panels": [ { "collapsed": false, "datasource": { "type": "datasource", "uid": "grafana" }, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 22, "panels": [], "title": "Allgemein", "type": "row" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 0, "y": 1 }, "id": 5, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*)\nFROM\n t_document\nWHERE doc_deletedate_d IS NULL\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Dokumente", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 3, "y": 1 }, "id": 4, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*)\nFROM\n t_file\nWHERE fil_deletedate_d IS NULL \n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Dateien", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 6, "y": 1 }, "id": 3, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*)\nFROM\n t_user\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Benutzer", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 9, "y": 1 }, "id": 10, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*)\nFROM\n t_authentication_token\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Auth Tokens", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 12, "y": 1 }, "id": 6, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*)\nFROM\n t_comment\nWHERE com_deletedate_d IS NULL\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Kommentare", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 15, "y": 1 }, "id": 8, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*)\nFROM\n t_audit_log\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Audit Einträge", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 18, "y": 1 }, "id": 2, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*)\nFROM\n t_tag\nWHERE tag_deletedate_d IS NULL\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Tags", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 21, "y": 1 }, "id": 11, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*)\nFROM\n t_share\nWHERE\n sha_deletedate_d IS NULL \n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Shares", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 0, "y": 4 }, "id": 31, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT COUNT(*) from t_document where doc_deletedate_d IS NOT NULL", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Gelöschte Dokumente", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 3, "y": 4 }, "id": 35, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT COUNT(*) from t_file where fil_deletedate_d IS NOT NULL", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Gelöschte Dateien", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 6, "y": 4 }, "id": 17, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\nCOUNT(*)\nFROM\n t_user\nWHERE use_totpkey_c IS NULL\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Benutzer ohne 2FA", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 9, "y": 4 }, "id": 32, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "first" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT COUNT\n (*) \nFROM t_file \nWHERE \n fil_iddoc_c IS NULL AND \n fil_deletedate_d IS NULL\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Dateien in Schnellablage", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 12, "y": 4 }, "id": 37, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*)\nFROM\n t_comment\nWHERE com_deletedate_d IS NOT NULL\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Gelöschte Kommentare", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "description": "Der Tag, an dem die Instanz online ging", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 15, "y": 4 }, "id": 29, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "last" ], "fields": "/.*/", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n TO_CHAR(log_createdate_d::DATE, 'DD.MM.YYYY HH:mm:ss')\nFROM\n t_audit_log\n LIMIT 1\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Erster Audit Eintrag", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 18, "y": 4 }, "id": 36, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*)\nFROM\n t_tag\nWHERE tag_deletedate_d IS NOT NULL\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Gelöschte Tags", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 21, "y": 4 }, "id": 75, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*)\nFROM\n t_share\nWHERE\n sha_deletedate_d IS NOT NULL\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Gelöschte Shares", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 3, "y": 7 }, "id": 16, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "first" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\nCOUNT(*)\nFROM\n t_file\nWHERE fil_content_c IS NOT NULL\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "OCR indexierte Dateien", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 15, "y": 7 }, "id": 14, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "last" ], "fields": "/.*/", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "/*get the database name by checking access permissions and check it's database size*/\nSELECT \n pg_size_pretty(pg_database_size(table_catalog) ) AS \"Datenbankgröße\"\nFROM information_schema.table_privileges\nWHERE\n table_name = 't_acl' AND\n privilege_type = 'SELECT'\nLIMIT 1\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Datenbankgröße", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "description": "Tags which have children but no parent", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 18, "y": 7 }, "id": 66, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "WITH RECURSIVE TAGTREE AS (\n\tSELECT\n\t\tt_tag.tag_id_c,\n\t\tt_tag.tag_idparent_c,\n t_tag.tag_name_c\n\tFROM\n\t\tt_tag\n WHERE \n t_tag.tag_deletedate_d IS NULL AND\n t_tag.tag_idparent_c IS NULL\n\tUNION\n\t\tSELECT\n\t\t\te.tag_id_c,\n\t\t\te.tag_idparent_c,\n e.tag_name_c\n FROM\n\t\t\tt_tag AS e\n\t\tINNER JOIN TAGTREE s ON s.tag_id_c = e.tag_idparent_c\n WHERE \n e.tag_deletedate_d IS NULL AND\n e.tag_idparent_c IS NULL\n) SELECT\n\tCOUNT(tag_name_c)\nFROM\n\tTAGTREE\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Root Tags", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "description": "Tags which have parents", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "none" }, "overrides": [] }, "gridPos": { "h": 3, "w": 3, "x": 21, "y": 7 }, "id": 67, "links": [], "maxDataPoints": 100, "options": { "colorMode": "none", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "WITH RECURSIVE TAGTREE AS (\n\tSELECT\n\t\tt_tag.tag_id_c,\n\t\tt_tag.tag_idparent_c,\n t_tag.tag_name_c\n\tFROM\n\t\tt_tag\n WHERE t_tag.tag_deletedate_d IS NULL AND\n t_tag.tag_idparent_c IS NOT NULL\n\tUNION\n\t\tSELECT\n\t\t\te.tag_id_c,\n\t\t\te.tag_idparent_c,\n e.tag_name_c\n FROM\n\t\t\tt_tag AS e\n\t\tINNER JOIN TAGTREE s ON s.tag_id_c = e.tag_idparent_c\n WHERE \n e.tag_deletedate_d IS NULL AND\n e.tag_idparent_c IS NULL\n) SELECT\n\tCOUNT(tag_name_c)\nFROM\n\tTAGTREE\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Parent Tags", "type": "stat" }, { "collapsed": false, "datasource": { "type": "datasource", "uid": "grafana" }, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 10 }, "id": 26, "panels": [], "title": "Dateien", "type": "row" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Dateityp" }, "properties": [ { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] } ] }, "gridPos": { "h": 13, "w": 5, "x": 0, "y": 11 }, "id": 19, "links": [], "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*) AS \"Anzahl\",\n fil_mimetype_c AS \"Dateityp\"\nFROM t_file\nWHERE fil_deletedate_d IS NULL\nGROUP BY fil_mimetype_c\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Dateien nach Dateityp", "transformations": [ { "id": "merge", "options": { "reducers": [] } } ], "type": "table" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Anzahl" }, "properties": [ { "id": "unit", "value": "none" }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "Jahr" }, "properties": [ { "id": "unit", "value": "string" }, { "id": "custom.align" } ] } ] }, "gridPos": { "h": 13, "w": 5, "x": 5, "y": 11 }, "id": 15, "links": [], "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*) AS \"Anzahl\",\n EXTRACT(YEAR FROM doc_createdate_d) AS \"Jahr\"\nFROM t_file AS F\nFULL JOIN t_document AS D ON D.doc_id_c = F.fil_iddoc_c\nWHERE \n F.fil_deletedate_d IS NULL AND \n D.doc_deletedate_d IS NULL\nGROUP BY \"Jahr\"\nORDER BY \"Jahr\" DESC\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Dateien pro Jahr (nach Dokumentendatum)", "transformations": [ { "id": "merge", "options": { "reducers": [] } } ], "type": "table" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Anzahl" }, "properties": [ { "id": "unit", "value": "none" }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "Jahr" }, "properties": [ { "id": "unit", "value": "string" }, { "id": "custom.align" } ] } ] }, "gridPos": { "h": 13, "w": 5, "x": 10, "y": 11 }, "id": 13, "links": [], "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*) AS \"Anzahl\",\n EXTRACT(YEAR FROM fil_createdate_d) AS \"Jahr\"\nFROM t_file\nWHERE fil_deletedate_d IS NULL\nGROUP BY \"Jahr\"\nORDER BY \"Jahr\" DESC\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Dateien pro Jahr (nach Erstelldatum)", "transformations": [ { "id": "merge", "options": { "reducers": [] } } ], "type": "table" }, { "columns": [], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fontSize": "100%", "gridPos": { "h": 13, "w": 5, "x": 15, "y": 11 }, "id": 33, "links": [], "showHeader": true, "sort": { "col": 1, "desc": true }, "styles": [ { "alias": "", "align": "auto", "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 0, "mappingType": 1, "pattern": "Anzahl", "thresholds": [], "type": "number", "unit": "none" } ], "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT \n COUNT(*) AS \"Anzahl\",\n use_username_c AS \"Benutzer\"\nFROM t_file as T\nJOIN t_user AS U ON U.use_id_c = t.fil_iduser_c\nWHERE \n fil_iddoc_c IS NULL AND \n fil_deletedate_d IS NULL\nGROUP BY \"Benutzer\"\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Dateien pro Benutzer in Schnellablage", "transform": "table", "type": "table-old" }, { "collapsed": false, "datasource": { "type": "datasource", "uid": "grafana" }, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 24 }, "id": 24, "panels": [], "title": "Dokumente", "type": "row" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Anzahl" }, "properties": [ { "id": "unit", "value": "short" }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "SORTY_HIDDEN" }, "properties": [ { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align", "value": "auto" }, { "id": "custom.hidden", "value": true } ] }, { "matcher": { "id": "byName", "options": "Monat" }, "properties": [ { "id": "unit", "value": "short" }, { "id": "decimals", "value": 0 }, { "id": "custom.align" } ] } ] }, "gridPos": { "h": 14, "w": 6, "x": 0, "y": 25 }, "id": 20, "links": [], "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [ { "desc": true, "displayName": "Jahr" } ] }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*) AS \"Anzahl\",\n CONCAT(EXTRACT(YEAR FROM doc_createdate_d), lpad(extract(month from doc_createdate_d)::text, 2, '0')) AS \"SORTY_HIDDEN\",\n EXTRACT(MONTH FROM doc_createdate_d) AS \"Monat\",\n EXTRACT(YEAR FROM doc_createdate_d) AS \"Jahr\"\nFROM t_document\nWHERE doc_deletedate_d IS NULL\nGROUP BY \"SORTY_HIDDEN\", \"Monat\", \"Jahr\"\nORDER BY \"SORTY_HIDDEN\" DESC\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Dokumente pro Jahr und Monat", "transformations": [ { "id": "merge", "options": { "reducers": [] } } ], "type": "table" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Anzahl" }, "properties": [ { "id": "unit", "value": "short" }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "SORTY_HIDDEN" }, "properties": [ { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "Monat" }, "properties": [ { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] } ] }, "gridPos": { "h": 14, "w": 5, "x": 6, "y": 25 }, "id": 40, "links": [], "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*) AS \"Anzahl\",\n EXTRACT(YEAR FROM doc_createdate_d) AS \"Jahr\"\nFROM t_document\nWHERE doc_deletedate_d IS NULL\nGROUP BY \"Jahr\"\nORDER BY \"Jahr\" DESC\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Dokumente pro Jahr", "transformations": [ { "id": "merge", "options": { "reducers": [] } } ], "type": "table" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Dateityp" }, "properties": [ { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] } ] }, "gridPos": { "h": 14, "w": 8, "x": 11, "y": 25 }, "id": 18, "links": [], "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*) AS \"Anzahl\",\n tag_name_c AS \"Tag\"--,\n --CASE \n -- WHEN tag_idparent_c IS NULL\n -- THEN 'Parent'\n -- ELSE 'Child'\n --END AS \"Verschachtelung\"\nFROM t_tag AS T\nJOIN t_document_tag AS DT ON DT.dot_idtag_c = T.tag_id_c\nJOIN t_document AS D ON D.doc_id_c = DT.dot_iddocument_c\nWHERE\n T.tag_deletedate_d IS NULL AND\n DT.dot_deletedate_d IS NULL AND\n D.doc_deletedate_d IS NULL\nGROUP BY tag_name_c, tag_idparent_c\nORDER BY \"Anzahl\" DESC\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Dokumente nach Tag-Häufigkeit", "transformations": [ { "id": "merge", "options": { "reducers": [] } } ], "type": "table" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "doc_language_c" }, "properties": [ { "id": "displayName", "value": "Sprache" }, { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] } ] }, "gridPos": { "h": 7, "w": 5, "x": 19, "y": 25 }, "id": 34, "links": [], "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT \n COUNT(*) AS \"Anzahl\",\n use_username_c AS \"Benutzer\"\nFROM t_document AS D\nJOIN t_user AS U ON U.use_id_c = D.doc_iduser_c\nWHERE doc_deletedate_d IS NULL\nGROUP BY \"Benutzer\"\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Dokumente nach Benutzer", "transformations": [ { "id": "merge", "options": { "reducers": [] } } ], "type": "table" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "doc_language_c" }, "properties": [ { "id": "displayName", "value": "Sprache" }, { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] } ] }, "gridPos": { "h": 7, "w": 5, "x": 19, "y": 32 }, "id": 30, "links": [], "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*) AS \"Anzahl\",\n doc_language_c\nFROM t_document\nWHERE doc_deletedate_d IS NULL\nGROUP BY doc_language_c\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Dokumente nach Sprache", "transformations": [ { "id": "merge", "options": { "reducers": [] } } ], "type": "table" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "doc_id_c" }, "properties": [ { "id": "displayName", "value": "Dokument ID" }, { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "doc_title_c" }, "properties": [ { "id": "displayName", "value": "Titel" }, { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] } ] }, "gridPos": { "h": 12, "w": 24, "x": 0, "y": 39 }, "id": 12, "links": [], "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n doc_id_c,\n doc_title_c\nFROM t_document\nWHERE doc_deletedate_d IS NULL\nEXCEPT\nSELECT\n t_file.fil_iddoc_c,\n t_document.doc_title_c\nFROM t_file\nJOIN t_document ON t_document.doc_id_c = t_file.fil_iddoc_c\nWHERE\n t_file.fil_deletedate_d IS NULL AND\n t_file.fil_iddoc_c IS NOT NULL /*might have been deleted already*/\nGROUP BY t_file.fil_iddoc_c, t_document.doc_title_c\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Dokumente ohne Dateien (Leerdokumente)", "transformations": [ { "id": "merge", "options": { "reducers": [] } } ], "type": "table" }, { "columns": [], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fontSize": "100%", "gridPos": { "h": 12, "w": 24, "x": 0, "y": 51 }, "id": 41, "links": [], "pageSize": 10, "showHeader": true, "sort": { "col": 1, "desc": true }, "styles": [ { "$$hashKey": "object:405", "alias": "Dokumenten-ID", "align": "auto", "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "mappingType": 1, "pattern": "doc_id_c", "thresholds": [], "type": "string", "unit": "short" }, { "$$hashKey": "object:433", "alias": "Titel", "align": "auto", "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "mappingType": 1, "pattern": "doc_title_c", "thresholds": [], "type": "string", "unit": "short" } ], "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "/*Entferne alle diese Dokumente aus der Gesamtdokumenteliste*/\nSELECT\n D.doc_id_c AS \"Dokument ID\",\n D.doc_title_c AS \"Titel\"\nFROM t_document AS D\nWHERE\n D.doc_deletedate_d IS NULL\nEXCEPT \n/*dann finde alle Dokumente, die Tags haben. Übrig bleiben dann nur die Dokumente, die keine Tags haben*/\nSELECT\n D.doc_id_c AS \"Dokument ID\",\n D.doc_title_c AS \"Titel\"\nFROM t_tag AS T\nJOIN t_document_tag AS DT ON DT.dot_idtag_c = T.tag_id_c\nJOIN t_document AS D ON D.doc_id_c = DT.dot_iddocument_c\nWHERE\n T.tag_deletedate_d IS NULL AND\n DT.dot_deletedate_d IS NULL AND\n D.doc_deletedate_d IS NULL\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Dokumente ohne Tags", "transform": "table", "type": "table-old" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": false, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "doc_id_c" }, "properties": [ { "id": "displayName", "value": "Dokumenten-ID" }, { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "doc_title_c" }, "properties": [ { "id": "displayName", "value": "Titel" }, { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] } ] }, "gridPos": { "h": 12, "w": 24, "x": 0, "y": 63 }, "id": 76, "links": [], "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "/*Finde Relationen, die noch nicht gelöscht wurden, obwohl die Dokumente bereits gelöscht wurden*/\nSELECT\n F.doc_title_c \"From\",\n T.doc_title_c \"To\"\nFROM\n t_relation AS R\nJOIN t_document AS T ON R.rel_iddocfrom_c = T.doc_id_c\nJOIN t_document AS F ON R.rel_iddocto_c = F.doc_id_c\nWHERE\n R.rel_deletedate_d IS NULL AND\n T.doc_deletedate_d IS NOT NULL AND\n F.doc_deletedate_d IS NULL\n\nUNION\n\nSELECT\n T.doc_title_c \"From\",\n F.doc_title_c \"To\"\nFROM\n t_relation AS R\nJOIN t_document AS T ON R.rel_iddocfrom_c = T.doc_id_c\nJOIN t_document AS F ON R.rel_iddocto_c = F.doc_id_c\nWHERE\n R.rel_deletedate_d IS NULL AND\n T.doc_deletedate_d IS NULL AND\n F.doc_deletedate_d IS NOT NULL\n \nORDER BY \"From\"\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Defekte Relationen", "transformations": [ { "id": "merge", "options": { "reducers": [] } } ], "type": "table" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "doc_id_c" }, "properties": [ { "id": "displayName", "value": "Dokumenten-ID" }, { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "doc_title_c" }, "properties": [ { "id": "displayName", "value": "Titel" }, { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] } ] }, "gridPos": { "h": 12, "w": 24, "x": 0, "y": 75 }, "id": 42, "links": [], "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "/*\nSELECT\n sha_createdate_d AS \"Freigabedatum\",\n sha_name_c AS \"Freigabename\",\n doc_title_C AS \"Dokument\"\nFROM t_share\nJOIN t_acl ON t_acl.acl_targetid_c = t_share.sha_id_c\nJOIN t_document ON t_document.doc_id_c = t_acl.acl_sourceid_c\nWHERE\n sha_deletedate_d IS NULL\n;\n*/\n\nSELECT DISTINCT\n D.doc_title_c AS \"Dokument\",\n S.sha_id_c AS \"id\",\n S.sha_createdate_d AS \"Freigabedatum\",\n S.sha_name_c AS \"Freigabename\",\n U.use_username_c AS \"Freigegeben von\"\nFROM\n t_audit_log AS A\nJOIN t_user AS U ON U.use_id_c = A.log_iduser_c\nFULL JOIN t_document AS D ON D.doc_id_c =A.log_message_c\nJOIN t_acl ON t_acl.acl_sourceid_c = D.doc_id_c\nJOIN t_share AS S ON S.sha_id_c = t_acl.acl_targetid_c\nWHERE\n --A.log_iduser_c = 'guest' AND\n S.sha_deletedate_d IS NULL AND\n D.doc_deletedate_d IS NULL\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Dokumente mit Freigaben", "transformations": [ { "id": "merge", "options": { "reducers": [] } } ], "type": "table" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 50, "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 4, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byName", "options": "Dokumente" }, "properties": [ { "id": "color", "value": { "fixedColor": "#1F60C4", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "Dateien" }, "properties": [ { "id": "color", "value": { "fixedColor": "#F2CC0C", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 8, "w": 24, "x": 0, "y": 87 }, "id": 38, "links": [], "options": { "legend": { "calcs": [ "mean", "max", "min", "sum" ], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "none" } }, "pluginVersion": "9.3.1", "targets": [ { "format": "time_series", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*) AS \"value\",\n 'Dokumente' AS \"metric\",\n TO_DATE(CONCAT(lpad(extract(YEAR from doc_createdate_d)::text, 4, '0'), lpad(extract(MONTH from doc_createdate_d)::text, 2, '0')), 'YYYYMM') AS time\nFROM t_document\nWHERE \n doc_deletedate_d IS NULL\nGROUP BY time\nORDER BY time ASC\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } }, { "format": "time_series", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n COUNT(*) AS value,\n 'Dateien' AS metric,\n TO_DATE(CONCAT(lpad(extract(YEAR from doc_createdate_d)::text, 4, '0'), lpad(extract(MONTH from doc_createdate_d)::text, 2, '0')), 'YYYYMM') AS time\nFROM t_file AS F\nFULL JOIN t_document AS D ON D.doc_id_c = F.fil_iddoc_c\nWHERE\n fil_deletedate_d IS NULL\nGROUP BY time\nORDER BY time ASC\n;", "refId": "B", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Dokumente und Dateien pro Jahr und Monat", "type": "timeseries" }, { "collapsed": false, "datasource": { "type": "datasource", "uid": "grafana" }, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 95 }, "id": 69, "panels": [], "title": "Tags", "type": "row" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "description": "Achtung: Einige Tags dienen nur als Obercontainer für Sub-Tags und dürfen trotzdem nicht gelöscht werden", "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": false, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 13, "w": 24, "x": 0, "y": 96 }, "id": 71, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "queryType": "randomWalk", "rawQuery": true, "rawSql": "/*Bekomme alle vorhandenen Tags (außer deren Elternelemente - diese sollten nicht gelöscht werden, da sie die Strukturanordnung vorgeben)*/\nWITH RECURSIVE TAGTREE AS (\n\tSELECT\n\t\tt_tag.tag_id_c,\n\t\tt_tag.tag_idparent_c,\n t_tag.tag_name_c\n\tFROM\n\t\tt_tag\n WHERE t_tag.tag_deletedate_d IS NULL AND\n t_tag.tag_idparent_c IS NOT NULL\n\tUNION\n\t\tSELECT\n\t\t\te.tag_id_c,\n\t\t\te.tag_idparent_c,\n e.tag_name_c\n FROM\n\t\t\tt_tag AS e\n\t\tINNER JOIN TAGTREE s ON s.tag_id_c = e.tag_idparent_c\n WHERE \n e.tag_deletedate_d IS NULL AND\n e.tag_idparent_c IS NULL\n) SELECT\n\ttag_name_c\nFROM\n\tTAGTREE\n\nEXCEPT\n\n/*Bekomme alle Dokumente und die verwendeten Tags. Filtere die unique tags daraus*/\nSELECT DISTINCT\n T.tag_name_c\nFROM TAGTREE AS T\nJOIN t_document_tag AS DT ON DT.dot_idtag_c = T.tag_id_c\nJOIN t_document AS D ON D.doc_id_c = DT.dot_iddocument_c\nWHERE\n DT.dot_deletedate_d IS NULL AND\n D.doc_deletedate_d IS NULL\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Ungenutzte Tags", "type": "table" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "description": "Diese Ansicht sollte besser in ein Pivot überführt werden (Pro User/Gruppe eine Spalte statt Zeile) -> https://stackoverflow.com/questions/15745042/efficiently-convert-rows-to-columns-in-sql-server", "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": false, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 13, "w": 24, "x": 0, "y": 109 }, "id": 72, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "queryType": "randomWalk", "rawQuery": true, "rawSql": "SELECT\n T.tag_name_c \"Tag\",\n A.acl_perm_c AS \"Permission\",\n COALESCE(U.use_username_c, G.grp_name_c) AS \"User/Group\" /*if first is null use the next one*/\nFROM t_tag AS T \nJOIN t_acl AS A ON A.acl_sourceid_c = T.tag_id_c\nLEFT JOIN t_user AS U ON U.use_id_c = A.acl_targetid_c\nLEFT JOIN t_group AS G ON G.grp_id_c = A.acl_targetid_c\nWHERE \n T.tag_deletedate_d IS NULL AND\n A.acl_deletedate_d IS NULL AND\n U.use_disabledate_d IS NULL AND\n G.grp_deletedate_d IS NULL\nORDER BY tag_name_c\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Tags und zugeordnete ACLs", "type": "table" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "description": "", "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": false, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 13, "w": 24, "x": 0, "y": 122 }, "id": 73, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "queryType": "randomWalk", "rawQuery": true, "rawSql": "SELECT\n T.tag_name_c \"Tag\",\n U.use_username_c \"Ersteller\"\nFROM t_tag AS T\nLEFT JOIN t_user AS U ON U.use_id_c = T.tag_iduser_c\nWHERE \n tag_deletedate_d IS NULL\nORDER BY tag_iduser_c ASC\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Tags und deren Eigentümer/Ersteller", "type": "table" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "description": "", "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": false, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 13, "w": 24, "x": 0, "y": 135 }, "id": 74, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "queryType": "randomWalk", "rawQuery": true, "rawSql": "SELECT\n COUNT(T.tag_name_c),\n C.tag_name_c AS \"Child\",\n T.tag_name_c AS \"Parent\"\nFROM t_tag AS T \nJOIN t_acl AS A ON A.acl_sourceid_c = T.tag_id_c\nLEFT JOIN t_user AS U ON U.use_id_c = A.acl_targetid_c\nLEFT JOIN t_group AS G ON G.grp_id_c = A.acl_targetid_c\nLEFT JOIN t_tag AS C ON C.tag_idparent_c =T.tag_id_c \nWHERE \n T.tag_deletedate_d IS NULL AND\n A.acl_deletedate_d IS NULL AND\n U.use_disabledate_d IS NULL AND\n G.grp_deletedate_d IS NULL\nGROUP BY C.tag_name_c, T.tag_name_c\nORDER BY COUNT(T.tag_name_c)\n\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Tags und ACL-Häufigkeiten", "type": "table" }, { "collapsed": false, "datasource": { "type": "datasource", "uid": "grafana" }, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 148 }, "id": 28, "panels": [], "title": "Audit", "type": "row" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Zeitstempel" }, "properties": [ { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "unit", "value": "time: DD.MM.YYYY HH:mm:ss" }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "Typ" }, "properties": [ { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] }, { "matcher": { "id": "byName", "options": "Kategorie" }, "properties": [ { "id": "unit", "value": "short" }, { "id": "decimals", "value": 2 }, { "id": "custom.align" } ] } ] }, "gridPos": { "h": 16, "w": 24, "x": 0, "y": 149 }, "id": 7, "links": [], "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "9.5.1", "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n --A.log_id_c\n --A.log_identitiy_c\n A.log_createdate_d AS \"Zeitstempel\",\n --A.log_iduser_c AS \"Benutzer\",\n U.use_username_c AS \"Benutzer\",\n A.log_classentity_c AS \"Kategorie\",\n A.log_type_c AS \"Typ\",\n A.log_message_c AS \"Nachricht\"\nFROM\n t_audit_log AS A\nJOIN t_user AS U ON U.use_id_c = A.log_iduser_c\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Audit Log", "transformations": [ { "id": "merge", "options": { "reducers": [] } } ], "type": "table" }, { "columns": [], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fontSize": "100%", "gridPos": { "h": 8, "w": 24, "x": 0, "y": 165 }, "id": 39, "links": [], "pageSize": 15, "showHeader": true, "sort": { "col": 0, "desc": false }, "styles": [ { "alias": "", "align": "auto", "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "DD.MM.YYYY HH:mm:ss", "decimals": 2, "mappingType": 1, "pattern": "Zeitstempel", "thresholds": [], "type": "date", "unit": "short" }, { "alias": "", "align": "auto", "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "mappingType": 1, "pattern": "Typ", "thresholds": [], "type": "string", "unit": "short", "valueMaps": [ { "text": "Erstellt", "value": "CREATE" }, { "text": "Aktualisiert", "value": "UPDATE" }, { "text": "Gelöscht", "value": "DELETE" } ] }, { "alias": "", "align": "auto", "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "mappingType": 1, "pattern": "Kategorie", "thresholds": [], "type": "string", "unit": "short", "valueMaps": [ { "text": "Datei", "value": "File" }, { "text": "Berechtigung", "value": "Acl" }, { "text": "Dokument", "value": "Document" }, { "text": "Tag", "value": "Tag" }, { "text": "Workflow Model", "value": "RouteModel" }, { "text": "Workflow", "value": "Route" }, { "text": "Gruppe", "value": "Group" }, { "text": "Benutzer", "value": "User" } ] } ], "targets": [ { "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "/*title which contain doubled whitespaces*/\nSELECT\n doc_title_c\nFROM t_document\nWHERE\n LENGTH(RTRIM(LTRIM(doc_title_c))) <> LENGTH(doc_title_c) OR\n doc_title_c LIKE '% %' AND\n doc_deletedate_d IS NULL\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ], "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" } } ], "title": "Ugly Documents (Duplicate whitespaces in titles)", "transform": "table", "type": "table-old" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 173 }, "id": 78, "panels": [], "title": "Checks", "type": "row" }, { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 9, "w": 24, "x": 0, "y": 174 }, "id": 80, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "9.5.1", "targets": [ { "datasource": { "type": "postgres", "uid": "${DS_DMS.YOURINSTANCE.COM}" }, "format": "table", "group": [], "metricColumn": "none", "rawQuery": true, "rawSql": "SELECT\n R.rel_id_c,\n F.doc_title_c \"From\",\n T.doc_title_c \"To\"\nFROM\n t_relation AS R\nJOIN t_document AS T ON R.rel_iddocfrom_c = T.doc_id_c\nJOIN t_document AS F ON R.rel_iddocto_c = F.doc_id_c\nWHERE\n R.rel_deletedate_d IS NULL AND\n T.doc_deletedate_d IS NOT NULL AND\n F.doc_deletedate_d IS NULL\n \nUNION\n \nSELECT\n R.rel_id_c,\n T.doc_title_c \"From\",\n F.doc_title_c \"To\"\nFROM\n t_relation AS R\nJOIN t_document AS T ON R.rel_iddocfrom_c = T.doc_id_c\nJOIN t_document AS F ON R.rel_iddocto_c = F.doc_id_c\nWHERE\n R.rel_deletedate_d IS NULL AND\n T.doc_deletedate_d IS NULL AND\n F.doc_deletedate_d IS NOT NULL\n \nORDER BY \"From\"\n;", "refId": "A", "select": [ [ { "params": [ "value" ], "type": "column" } ] ], "timeColumn": "time", "where": [ { "name": "$__timeFilter", "params": [], "type": "macro" } ] } ], "title": "Kaputte Relationen", "type": "table" } ], "refresh": "30s", "schemaVersion": 38, "style": "dark", "tags": [], "templating": { "list": [] }, "time": { "from": "2016-01-13T00:00:00.000Z", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ] }, "timezone": "", "title": "Teedy", "uid": "JyHJZDigk", "version": 66, "weekStart": "" }