{ "annotations": { "list": [] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, "id": null, "links": [], "panels": [ { "id": 1, "title": "Row counts", "type": "table", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "pluginVersion": "11.2.2", "gridPos": { "x": 0, "y": 0, "w": 12, "h": 8 }, "targets": [ { "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "editorType": "sql", "format": 1, "pluginVersion": "11.2.2", "queryType": "table", "rawSql": "SELECT 'documents' AS dataset, count() AS rows_total FROM analytics_1c.documents UNION ALL SELECT 'postings', count() FROM analytics_1c.postings UNION ALL SELECT 'reglog_events', count() FROM analytics_1c.reglog_events UNION ALL SELECT 'audit_events', count() FROM analytics_1c.audit_events UNION ALL SELECT 'host_events', count() FROM analytics_1c.host_events UNION ALL SELECT 'detections', count() FROM analytics_1c.detections UNION ALL SELECT 'cases', count() FROM analytics_1c.cases", "refId": "A" } ], "options": { "showHeader": true, "sortBy": [ { "displayName": "ts", "desc": true } ] }, "fieldConfig": { "defaults": {}, "overrides": [] } }, { "id": 2, "title": "Latest source files", "type": "table", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "pluginVersion": "11.2.2", "gridPos": { "x": 12, "y": 0, "w": 12, "h": 8 }, "targets": [ { "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "editorType": "sql", "format": 1, "pluginVersion": "11.2.2", "queryType": "table", "rawSql": "SELECT source_file, max(ts) AS latest_ts FROM analytics_1c.documents GROUP BY source_file ORDER BY latest_ts DESC LIMIT 50", "refId": "A" } ], "options": { "showHeader": true, "sortBy": [ { "displayName": "ts", "desc": true } ] }, "fieldConfig": { "defaults": {}, "overrides": [] } }, { "id": 3, "title": "Detections total", "type": "stat", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "pluginVersion": "11.2.2", "gridPos": { "x": 0, "y": 8, "w": 6, "h": 6 }, "targets": [ { "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "editorType": "sql", "format": 1, "pluginVersion": "11.2.2", "queryType": "table", "rawSql": "SELECT count() AS value FROM analytics_1c.detections", "refId": "A" } ], "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 1 }, { "color": "red", "value": 10 } ] } }, "overrides": [] } }, { "id": 4, "title": "Cases total", "type": "stat", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "pluginVersion": "11.2.2", "gridPos": { "x": 6, "y": 8, "w": 6, "h": 6 }, "targets": [ { "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "editorType": "sql", "format": 1, "pluginVersion": "11.2.2", "queryType": "table", "rawSql": "SELECT count() AS value FROM analytics_1c.cases", "refId": "A" } ], "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 1 }, { "color": "red", "value": 10 } ] } }, "overrides": [] } }, { "id": 5, "title": "Timeline total", "type": "stat", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "pluginVersion": "11.2.2", "gridPos": { "x": 12, "y": 8, "w": 6, "h": 6 }, "targets": [ { "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "editorType": "sql", "format": 1, "pluginVersion": "11.2.2", "queryType": "table", "rawSql": "SELECT count() AS value FROM analytics_1c.entity_timeline", "refId": "A" } ], "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 1 }, { "color": "red", "value": 10 } ] } }, "overrides": [] } }, { "id": 6, "title": "Backup failures", "type": "stat", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "pluginVersion": "11.2.2", "gridPos": { "x": 18, "y": 8, "w": 6, "h": 6 }, "targets": [ { "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "editorType": "sql", "format": 1, "pluginVersion": "11.2.2", "queryType": "table", "rawSql": "SELECT count() AS value FROM analytics_1c.host_events WHERE backup_ok = 0 AND $__timeFilter(ts)", "refId": "A" } ], "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 1 }, { "color": "red", "value": 10 } ] } }, "overrides": [] } } ], "refresh": "30s", "schemaVersion": 39, "style": "dark", "tags": [ "1c", "quality", "clickhouse" ], "templating": { "list": [ { "name": "infobase", "label": "Infobase", "type": "query", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "refresh": 1, "definition": "SELECT DISTINCT infobase FROM analytics_1c.documents ORDER BY infobase", "query": "SELECT DISTINCT infobase FROM analytics_1c.documents ORDER BY infobase", "multi": true, "includeAll": true, "sort": 1, "current": { "selected": false, "text": "All", "value": "$__all" } }, { "name": "severity", "label": "Severity", "type": "query", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "refresh": 1, "definition": "SELECT arrayJoin(['low','medium','high','critical'])", "query": "SELECT arrayJoin(['low','medium','high','critical'])", "multi": true, "includeAll": true, "sort": 1, "current": { "selected": false, "text": "All", "value": "$__all" } }, { "name": "host", "label": "Host", "type": "query", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "refresh": 1, "definition": "SELECT DISTINCT host FROM analytics_1c.host_events ORDER BY host", "query": "SELECT DISTINCT host FROM analytics_1c.host_events ORDER BY host", "multi": true, "includeAll": true, "sort": 1, "current": { "selected": false, "text": "All", "value": "$__all" } }, { "name": "user", "label": "User", "type": "query", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "refresh": 1, "definition": "SELECT DISTINCT user FROM analytics_1c.reglog_events ORDER BY user", "query": "SELECT DISTINCT user FROM analytics_1c.reglog_events ORDER BY user", "multi": true, "includeAll": true, "sort": 1, "current": { "selected": false, "text": "All", "value": "$__all" } } ] }, "time": { "from": "now-7d", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "1C File - Data Quality", "uid": "1c-file-data-quality", "version": 1, "weekStart": "" }