grafana.json
· 75 KiB · JSON
Raw
{
"apiVersion": "dashboard.grafana.app/v2",
"kind": "Dashboard",
"metadata": {
"name": "ad-samba-audit2",
"generation": 12,
"creationTimestamp": "2026-07-03T12:41:09Z",
"labels": {},
"annotations": {}
},
"spec": {
"annotations": [
{
"kind": "AnnotationQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "grafana",
"version": "v0",
"spec": {}
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"builtIn": true
}
}
],
"cursorSync": "Off",
"editable": true,
"elements": {
"panel-1": {
"kind": "Panel",
"spec": {
"id": 1,
"title": "Logins OK",
"description": "Успешные входы в домен (samba_auth): машинные и пользовательские, разбивка по домену.",
"links": [],
"data": {
"kind": "QueryGroup",
"spec": {
"queries": [
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "influxdb",
"version": "v0",
"spec": {
"alias": "machine_login",
"groupBy": [
{
"params": [
"$interval"
],
"type": "time"
},
{
"params": [
"domain::tag"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "samba_auth",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
"rawQuery": false,
"resultFormat": "time_series",
"select": [
[
{
"params": [
"client_account"
],
"type": "field"
},
{
"params": [],
"type": "count"
}
]
],
"tags": [
{
"key": "status::tag",
"operator": "=",
"value": "NT_STATUS_OK"
},
{
"condition": "AND",
"key": "account::tag",
"operator": "=~",
"value": "/^MACHINE/"
}
]
},
"labels": {
"grafana.app/export-label": "influxdb-1"
}
},
"refId": "A",
"hidden": false
}
},
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "influxdb",
"version": "v0",
"spec": {
"alias": "user_login",
"groupBy": [
{
"params": [
"$interval"
],
"type": "time"
},
{
"params": [
"domain::tag"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "samba_auth",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^user/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
"rawQuery": false,
"resultFormat": "time_series",
"select": [
[
{
"params": [
"client_account"
],
"type": "field"
},
{
"params": [],
"type": "count"
}
]
],
"tags": [
{
"key": "status::tag",
"operator": "=",
"value": "NT_STATUS_OK"
},
{
"condition": "AND",
"key": "account::tag",
"operator": "=~",
"value": "/^user/"
},
{
"condition": "OR",
"key": "account::tag",
"operator": "=~",
"value": "/^loadtest/"
}
]
},
"labels": {
"grafana.app/export-label": "influxdb-1"
}
},
"refId": "B",
"hidden": false
}
}
],
"transformations": [],
"queryOptions": {}
}
},
"vizConfig": {
"kind": "VizConfig",
"group": "timeseries",
"version": "13.0.1+security-01",
"spec": {
"options": {
"annotations": {
"clustering": -1,
"multiLane": false
},
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{
"value": 0,
"color": "green"
},
{
"value": 80,
"color": "red"
}
]
},
"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": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}
},
"overrides": []
}
}
}
}
},
"panel-10": {
"kind": "Panel",
"spec": {
"id": 10,
"title": "SMB: подключённых клиентов",
"description": "История числа подключённых SMB-клиентов (samba_clients.count).",
"links": [],
"data": {
"kind": "QueryGroup",
"spec": {
"queries": [
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "influxdb",
"version": "v0",
"spec": {
"alias": "clients",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "samba_clients",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT last(\"count\") FROM \"samba_clients\" WHERE $timeFilter GROUP BY time($__interval) fill(null)",
"rawQuery": false,
"resultFormat": "time_series",
"select": [
[
{
"params": [
"count"
],
"type": "field"
},
{
"params": [],
"type": "last"
}
]
],
"tags": []
},
"labels": {
"grafana.app/export-label": "influxdb-1"
}
},
"refId": "A",
"hidden": false
}
}
],
"transformations": [],
"queryOptions": {}
}
},
"vizConfig": {
"kind": "VizConfig",
"group": "timeseries",
"version": "13.0.1+security-01",
"spec": {
"options": {
"annotations": {
"clustering": -1,
"multiLane": false
},
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"fieldConfig": {
"defaults": {
"unit": "none",
"thresholds": {
"mode": "absolute",
"steps": [
{
"value": 0,
"color": "green"
}
]
},
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 15,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "stepAfter",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}
},
"overrides": []
}
}
}
}
},
"panel-11": {
"kind": "Panel",
"spec": {
"id": 11,
"title": "Authentifications",
"description": "Успешные входы в домен (samba_auth): машинные и пользовательские, разбивка по домену.",
"links": [],
"data": {
"kind": "QueryGroup",
"spec": {
"queries": [
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "influxdb",
"version": "v0",
"spec": {
"alias": "machine_login_1s",
"groupBy": [
{
"params": [
"1s"
],
"type": "time"
},
{
"params": [
"domain::tag"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "samba_auth",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
"rawQuery": false,
"resultFormat": "time_series",
"select": [
[
{
"params": [
"client_account"
],
"type": "field"
},
{
"params": [],
"type": "count"
}
]
],
"tags": [
{
"key": "status::tag",
"operator": "=",
"value": "NT_STATUS_OK"
},
{
"condition": "AND",
"key": "account::tag",
"operator": "=~",
"value": "/^MACHINE/"
}
]
},
"labels": {
"grafana.app/export-label": "influxdb-1"
}
},
"refId": "A",
"hidden": false
}
},
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "influxdb",
"version": "v0",
"spec": {
"alias": "user_login_1s",
"groupBy": [
{
"params": [
"1s"
],
"type": "time"
},
{
"params": [
"domain::tag"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "samba_auth",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^user/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
"rawQuery": false,
"resultFormat": "time_series",
"select": [
[
{
"params": [
"client_account"
],
"type": "field"
},
{
"params": [],
"type": "count"
}
]
],
"tags": [
{
"key": "status::tag",
"operator": "=",
"value": "NT_STATUS_OK"
},
{
"condition": "AND",
"key": "account::tag",
"operator": "=~",
"value": "/^user/"
},
{
"condition": "OR",
"key": "account::tag",
"operator": "=~",
"value": "/^loadtest/"
}
]
},
"labels": {
"grafana.app/export-label": "influxdb-1"
}
},
"refId": "B",
"hidden": false
}
},
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "influxdb",
"version": "v0",
"spec": {
"alias": "machine_login_5m",
"groupBy": [
{
"params": [
"5m"
],
"type": "time"
},
{
"params": [
"domain::tag"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "samba_auth",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
"rawQuery": false,
"resultFormat": "time_series",
"select": [
[
{
"params": [
"client_account"
],
"type": "field"
},
{
"params": [],
"type": "count"
}
]
],
"tags": [
{
"key": "status::tag",
"operator": "=",
"value": "NT_STATUS_OK"
},
{
"condition": "AND",
"key": "account::tag",
"operator": "=~",
"value": "/^MACHINE/"
}
]
},
"labels": {
"grafana.app/export-label": "influxdb-1"
}
},
"refId": "C",
"hidden": false
}
},
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "influxdb",
"version": "v0",
"spec": {
"alias": "user_login_5m",
"groupBy": [
{
"params": [
"5m"
],
"type": "time"
},
{
"params": [
"domain::tag"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "samba_auth",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^user/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
"rawQuery": false,
"resultFormat": "time_series",
"select": [
[
{
"params": [
"client_account"
],
"type": "field"
},
{
"params": [],
"type": "count"
}
]
],
"tags": [
{
"key": "status::tag",
"operator": "=",
"value": "NT_STATUS_OK"
},
{
"condition": "AND",
"key": "account::tag",
"operator": "=~",
"value": "/^user/"
},
{
"condition": "OR",
"key": "account::tag",
"operator": "=~",
"value": "/^loadtest/"
}
]
},
"labels": {
"grafana.app/export-label": "influxdb-1"
}
},
"refId": "D",
"hidden": false
}
}
],
"transformations": [],
"queryOptions": {}
}
},
"vizConfig": {
"kind": "VizConfig",
"group": "stat",
"version": "13.0.1+security-01",
"spec": {
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "vertical",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{
"value": 0,
"color": "green"
},
{
"value": 80,
"color": "red"
}
]
},
"color": {
"mode": "palette-classic"
}
},
"overrides": []
}
}
}
}
},
"panel-2": {
"kind": "Panel",
"spec": {
"id": 2,
"title": "DSDB: изменения по операциям",
"description": "Число изменений объектов каталога (samba_dsdb), разбивка по типу операции.",
"links": [],
"data": {
"kind": "QueryGroup",
"spec": {
"queries": [
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "influxdb",
"version": "v0",
"spec": {
"groupBy": [],
"measurement": "samba_dsdb",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"status_code\") FROM \"samba_dsdb\" WHERE $timeFilter GROUP BY time($interval), \"operation\"::tag fill(null)",
"rawQuery": true,
"resultFormat": "time_series",
"select": [],
"tags": []
},
"labels": {
"grafana.app/export-label": "influxdb-1"
}
},
"refId": "A",
"hidden": false
}
}
],
"transformations": [],
"queryOptions": {}
}
},
"vizConfig": {
"kind": "VizConfig",
"group": "timeseries",
"version": "13.0.1+security-01",
"spec": {
"options": {
"annotations": {
"clustering": -1,
"multiLane": false
},
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "desc"
}
},
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{
"value": 0,
"color": "green"
},
{
"value": 80,
"color": "red"
}
]
},
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "bars",
"fillOpacity": 50,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
}
},
"overrides": []
}
}
}
}
},
"panel-3": {
"kind": "Panel",
"spec": {
"id": 3,
"title": "DSDB: система vs пользователь",
"description": "Изменения каталога с разбивкой по performedAsSystem (true = выполнено системой).",
"links": [],
"data": {
"kind": "QueryGroup",
"spec": {
"queries": [
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "influxdb",
"version": "v0",
"spec": {
"groupBy": [],
"measurement": "samba_dsdb",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"status_code\") FROM \"samba_dsdb\" WHERE $timeFilter GROUP BY time($interval), \"as_system\"::tag fill(null)",
"rawQuery": true,
"resultFormat": "time_series",
"select": [],
"tags": []
},
"labels": {
"grafana.app/export-label": "influxdb-1"
}
},
"refId": "A",
"hidden": false
}
}
],
"transformations": [],
"queryOptions": {}
}
},
"vizConfig": {
"kind": "VizConfig",
"group": "timeseries",
"version": "13.0.1+security-01",
"spec": {
"options": {
"annotations": {
"clustering": -1,
"multiLane": false
},
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "desc"
}
},
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{
"value": 0,
"color": "green"
},
{
"value": 80,
"color": "red"
}
]
},
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}
},
"overrides": []
}
}
}
}
},
"panel-4": {
"kind": "Panel",
"spec": {
"id": 4,
"title": "DSDB: топ инициаторов (SID)",
"description": "Кто инициировал изменения каталога — разбивка по userSid.",
"links": [],
"data": {
"kind": "QueryGroup",
"spec": {
"queries": [
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "influxdb",
"version": "v0",
"spec": {
"groupBy": [],
"measurement": "samba_dsdb",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"status_code\") FROM \"samba_dsdb\" WHERE $timeFilter GROUP BY time($interval), \"user_sid\"::tag fill(null)",
"rawQuery": true,
"resultFormat": "time_series",
"select": [],
"tags": []
},
"labels": {
"grafana.app/export-label": "influxdb-1"
}
},
"refId": "A",
"hidden": false
}
}
],
"transformations": [],
"queryOptions": {}
}
},
"vizConfig": {
"kind": "VizConfig",
"group": "timeseries",
"version": "13.0.1+security-01",
"spec": {
"options": {
"annotations": {
"clustering": -1,
"multiLane": false
},
"legend": {
"calcs": [
"sum"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "desc"
}
},
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{
"value": 0,
"color": "green"
},
{
"value": 80,
"color": "red"
}
]
},
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "bars",
"fillOpacity": 50,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
}
},
"overrides": []
}
}
}
}
},
"panel-5": {
"kind": "Panel",
"spec": {
"id": 5,
"title": "Транзакции: длительность (mean/max)",
"description": "Длительность транзакций каталога (samba_dsdb_tx) в микросекундах.",
"links": [],
"data": {
"kind": "QueryGroup",
"spec": {
"queries": [
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "influxdb",
"version": "v0",
"spec": {
"groupBy": [],
"measurement": "samba_dsdb_tx",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"duration\") AS \"mean\", max(\"duration\") AS \"max\" FROM \"samba_dsdb_tx\" WHERE $timeFilter GROUP BY time($interval) fill(null)",
"rawQuery": true,
"resultFormat": "time_series",
"select": [],
"tags": []
},
"labels": {
"grafana.app/export-label": "influxdb-1"
}
},
"refId": "A",
"hidden": false
}
}
],
"transformations": [],
"queryOptions": {}
}
},
"vizConfig": {
"kind": "VizConfig",
"group": "timeseries",
"version": "13.0.1+security-01",
"spec": {
"options": {
"annotations": {
"clustering": -1,
"multiLane": false
},
"legend": {
"calcs": [
"mean",
"max"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "desc"
}
},
"fieldConfig": {
"defaults": {
"unit": "µs",
"thresholds": {
"mode": "absolute",
"steps": [
{
"value": 0,
"color": "green"
},
{
"value": 80,
"color": "red"
}
]
},
"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": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}
},
"overrides": []
}
}
}
}
},
"panel-6": {
"kind": "Panel",
"spec": {
"id": 6,
"title": "Транзакции по типу действия",
"description": "Число транзакций каталога, разбивка по action (commit / rollback / prepare commit / begin).",
"links": [],
"data": {
"kind": "QueryGroup",
"spec": {
"queries": [
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "influxdb",
"version": "v0",
"spec": {
"groupBy": [],
"measurement": "samba_dsdb_tx",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"duration\") FROM \"samba_dsdb_tx\" WHERE $timeFilter GROUP BY time($interval), \"action\"::tag fill(null)",
"rawQuery": true,
"resultFormat": "time_series",
"select": [],
"tags": []
},
"labels": {
"grafana.app/export-label": "influxdb-1"
}
},
"refId": "A",
"hidden": false
}
}
],
"transformations": [],
"queryOptions": {}
}
},
"vizConfig": {
"kind": "VizConfig",
"group": "timeseries",
"version": "13.0.1+security-01",
"spec": {
"options": {
"annotations": {
"clustering": -1,
"multiLane": false
},
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "desc"
}
},
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{
"value": 0,
"color": "green"
},
{
"value": 80,
"color": "red"
}
]
},
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "bars",
"fillOpacity": 50,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
}
},
"overrides": []
}
}
}
}
},
"panel-7": {
"kind": "Panel",
"spec": {
"id": 7,
"title": "SMB activity",
"description": "",
"links": [],
"data": {
"kind": "QueryGroup",
"spec": {
"queries": [
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "influxdb",
"version": "v0",
"spec": {
"alias": "user_smb",
"groupBy": [
{
"params": [
"$interval"
],
"type": "time"
},
{
"params": [
"domain::tag"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "samba_authz",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
"rawQuery": false,
"resultFormat": "time_series",
"select": [
[
{
"params": [
"auth_type"
],
"type": "field"
},
{
"params": [],
"type": "count"
}
]
],
"tags": [
{
"key": "service::tag",
"operator": "=",
"value": "SMB2"
},
{
"condition": "AND",
"key": "auth_type::field",
"operator": "=",
"value": "krb5"
},
{
"condition": "AND",
"key": "account::tag",
"operator": "=~",
"value": "/^user-/"
}
]
},
"labels": {
"grafana.app/export-label": "influxdb-1"
}
},
"refId": "A",
"hidden": false
}
},
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "influxdb",
"version": "v0",
"spec": {
"alias": "machine_smb",
"groupBy": [
{
"params": [
"$interval"
],
"type": "time"
},
{
"params": [
"domain::tag"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "samba_authz",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
"rawQuery": false,
"resultFormat": "time_series",
"select": [
[
{
"params": [
"auth_type"
],
"type": "field"
},
{
"params": [],
"type": "count"
}
]
],
"tags": [
{
"key": "service::tag",
"operator": "=",
"value": "SMB2"
},
{
"condition": "AND",
"key": "auth_type::field",
"operator": "=",
"value": "krb5"
},
{
"condition": "AND",
"key": "account::tag",
"operator": "=~",
"value": "/^MACHINE/"
}
]
},
"labels": {
"grafana.app/export-label": "influxdb-1"
}
},
"refId": "B",
"hidden": false
}
}
],
"transformations": [],
"queryOptions": {}
}
},
"vizConfig": {
"kind": "VizConfig",
"group": "timeseries",
"version": "13.0.1+security-01",
"spec": {
"options": {
"annotations": {
"clustering": -1,
"multiLane": false
},
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{
"value": 0,
"color": "green"
},
{
"value": 80,
"color": "red"
}
]
},
"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": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}
},
"overrides": []
}
}
}
}
},
"panel-8": {
"kind": "Panel",
"spec": {
"id": 8,
"title": "DNS activity",
"description": "",
"links": [],
"data": {
"kind": "QueryGroup",
"spec": {
"queries": [
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "influxdb",
"version": "v0",
"spec": {
"alias": "rcode=0",
"groupBy": [
{
"params": [
"$interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "samba_dns_rcode",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
"rawQuery": false,
"resultFormat": "time_series",
"select": [
[
{
"params": [
"rcode"
],
"type": "field"
},
{
"params": [],
"type": "count"
}
]
],
"tags": [
{
"key": "rcode::field",
"operator": "=",
"value": "0"
},
{
"condition": "AND",
"key": "direction::tag",
"operator": "=",
"value": "out_packet"
}
]
},
"labels": {
"grafana.app/export-label": "influxdb-1"
}
},
"refId": "A",
"hidden": false
}
},
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "influxdb",
"version": "v0",
"spec": {
"alias": "rcode=3",
"groupBy": [
{
"params": [
"$interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "samba_dns_rcode",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)",
"rawQuery": false,
"resultFormat": "time_series",
"select": [
[
{
"params": [
"rcode"
],
"type": "field"
},
{
"params": [],
"type": "count"
}
]
],
"tags": [
{
"key": "rcode::field",
"operator": "=",
"value": "3"
},
{
"condition": "AND",
"key": "direction::tag",
"operator": "=",
"value": "out_packet"
}
]
},
"labels": {
"grafana.app/export-label": "influxdb-1"
}
},
"refId": "B",
"hidden": false
}
}
],
"transformations": [],
"queryOptions": {}
}
},
"vizConfig": {
"kind": "VizConfig",
"group": "timeseries",
"version": "13.0.1+security-01",
"spec": {
"options": {
"annotations": {
"clustering": -1,
"multiLane": false
},
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{
"value": 0,
"color": "green"
},
{
"value": 80,
"color": "red"
}
]
},
"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": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}
},
"overrides": []
}
}
}
}
},
"panel-9": {
"kind": "Panel",
"spec": {
"id": 9,
"title": "SMB: клиентов сейчас",
"description": "Текущее число подключённых SMB-клиентов (последний опрос smbstatus -v, первый блок).",
"links": [],
"data": {
"kind": "QueryGroup",
"spec": {
"queries": [
{
"kind": "PanelQuery",
"spec": {
"query": {
"kind": "DataQuery",
"group": "influxdb",
"version": "v0",
"spec": {
"alias": "clients",
"groupBy": [
{
"params": [
"$interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "samba_clients",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT last(\"count\") FROM \"samba_clients\" WHERE $timeFilter GROUP BY time($interval) fill(null)",
"rawQuery": false,
"resultFormat": "time_series",
"select": [
[
{
"params": [
"count"
],
"type": "field"
},
{
"params": [],
"type": "last"
}
]
],
"tags": []
},
"labels": {
"grafana.app/export-label": "influxdb-1"
}
},
"refId": "A",
"hidden": false
}
}
],
"transformations": [],
"queryOptions": {}
}
},
"vizConfig": {
"kind": "VizConfig",
"group": "stat",
"version": "13.0.1+security-01",
"spec": {
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"fieldConfig": {
"defaults": {
"unit": "none",
"thresholds": {
"mode": "absolute",
"steps": [
{
"value": 0,
"color": "green"
},
{
"value": null,
"color": "red"
}
]
},
"color": {
"mode": "palette-classic"
}
},
"overrides": []
}
}
}
}
}
},
"layout": {
"kind": "GridLayout",
"spec": {
"items": [
{
"kind": "GridLayoutItem",
"spec": {
"x": 0,
"y": 0,
"width": 11,
"height": 9,
"element": {
"kind": "ElementReference",
"name": "panel-11"
}
}
},
{
"kind": "GridLayoutItem",
"spec": {
"x": 11,
"y": 0,
"width": 13,
"height": 9,
"element": {
"kind": "ElementReference",
"name": "panel-1"
}
}
},
{
"kind": "GridLayoutItem",
"spec": {
"x": 0,
"y": 9,
"width": 12,
"height": 7,
"element": {
"kind": "ElementReference",
"name": "panel-7"
}
}
},
{
"kind": "GridLayoutItem",
"spec": {
"x": 12,
"y": 9,
"width": 12,
"height": 7,
"element": {
"kind": "ElementReference",
"name": "panel-8"
}
}
},
{
"kind": "GridLayoutItem",
"spec": {
"x": 0,
"y": 16,
"width": 12,
"height": 8,
"element": {
"kind": "ElementReference",
"name": "panel-2"
}
}
},
{
"kind": "GridLayoutItem",
"spec": {
"x": 12,
"y": 16,
"width": 12,
"height": 8,
"element": {
"kind": "ElementReference",
"name": "panel-3"
}
}
},
{
"kind": "GridLayoutItem",
"spec": {
"x": 0,
"y": 24,
"width": 12,
"height": 8,
"element": {
"kind": "ElementReference",
"name": "panel-4"
}
}
},
{
"kind": "GridLayoutItem",
"spec": {
"x": 12,
"y": 24,
"width": 12,
"height": 8,
"element": {
"kind": "ElementReference",
"name": "panel-5"
}
}
},
{
"kind": "GridLayoutItem",
"spec": {
"x": 0,
"y": 32,
"width": 12,
"height": 8,
"element": {
"kind": "ElementReference",
"name": "panel-6"
}
}
},
{
"kind": "GridLayoutItem",
"spec": {
"x": 0,
"y": 40,
"width": 6,
"height": 8,
"element": {
"kind": "ElementReference",
"name": "panel-9"
}
}
},
{
"kind": "GridLayoutItem",
"spec": {
"x": 6,
"y": 40,
"width": 18,
"height": 8,
"element": {
"kind": "ElementReference",
"name": "panel-10"
}
}
}
]
}
},
"links": [],
"liveNow": false,
"preload": false,
"tags": [
"samba",
"ad",
"audit"
],
"timeSettings": {
"timezone": "browser",
"from": "now-6h",
"to": "now",
"autoRefresh": "",
"autoRefreshIntervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"hideTimepicker": false,
"fiscalYearStartMonth": 0
},
"title": "Samba AD audit2",
"variables": [
{
"kind": "IntervalVariable",
"spec": {
"name": "interval",
"query": "1s,3s,5s,10s,30s,1m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
"current": {
"text": "1m",
"value": "1m"
},
"options": [
{
"selected": true,
"text": "1m",
"value": "1m"
},
{
"selected": false,
"text": "10m",
"value": "10m"
},
{
"selected": false,
"text": "30m",
"value": "30m"
},
{
"selected": false,
"text": "1h",
"value": "1h"
},
{
"selected": false,
"text": "6h",
"value": "6h"
},
{
"selected": false,
"text": "12h",
"value": "12h"
},
{
"selected": false,
"text": "1d",
"value": "1d"
}
],
"auto": false,
"auto_min": "10s",
"auto_count": 30,
"refresh": "onTimeRangeChanged",
"hide": "dontHide",
"skipUrlSync": false
}
}
],
"preferences": {
"layout": {
"kind": "GridLayout",
"spec": {
"items": []
}
}
}
}
}
| 1 | { |
| 2 | "apiVersion": "dashboard.grafana.app/v2", |
| 3 | "kind": "Dashboard", |
| 4 | "metadata": { |
| 5 | "name": "ad-samba-audit2", |
| 6 | "generation": 12, |
| 7 | "creationTimestamp": "2026-07-03T12:41:09Z", |
| 8 | "labels": {}, |
| 9 | "annotations": {} |
| 10 | }, |
| 11 | "spec": { |
| 12 | "annotations": [ |
| 13 | { |
| 14 | "kind": "AnnotationQuery", |
| 15 | "spec": { |
| 16 | "query": { |
| 17 | "kind": "DataQuery", |
| 18 | "group": "grafana", |
| 19 | "version": "v0", |
| 20 | "spec": {} |
| 21 | }, |
| 22 | "enable": true, |
| 23 | "hide": true, |
| 24 | "iconColor": "rgba(0, 211, 255, 1)", |
| 25 | "name": "Annotations & Alerts", |
| 26 | "builtIn": true |
| 27 | } |
| 28 | } |
| 29 | ], |
| 30 | "cursorSync": "Off", |
| 31 | "editable": true, |
| 32 | "elements": { |
| 33 | "panel-1": { |
| 34 | "kind": "Panel", |
| 35 | "spec": { |
| 36 | "id": 1, |
| 37 | "title": "Logins OK", |
| 38 | "description": "Успешные входы в домен (samba_auth): машинные и пользовательские, разбивка по домену.", |
| 39 | "links": [], |
| 40 | "data": { |
| 41 | "kind": "QueryGroup", |
| 42 | "spec": { |
| 43 | "queries": [ |
| 44 | { |
| 45 | "kind": "PanelQuery", |
| 46 | "spec": { |
| 47 | "query": { |
| 48 | "kind": "DataQuery", |
| 49 | "group": "influxdb", |
| 50 | "version": "v0", |
| 51 | "spec": { |
| 52 | "alias": "machine_login", |
| 53 | "groupBy": [ |
| 54 | { |
| 55 | "params": [ |
| 56 | "$interval" |
| 57 | ], |
| 58 | "type": "time" |
| 59 | }, |
| 60 | { |
| 61 | "params": [ |
| 62 | "domain::tag" |
| 63 | ], |
| 64 | "type": "tag" |
| 65 | }, |
| 66 | { |
| 67 | "params": [ |
| 68 | "null" |
| 69 | ], |
| 70 | "type": "fill" |
| 71 | } |
| 72 | ], |
| 73 | "measurement": "samba_auth", |
| 74 | "orderByTime": "ASC", |
| 75 | "policy": "default", |
| 76 | "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)", |
| 77 | "rawQuery": false, |
| 78 | "resultFormat": "time_series", |
| 79 | "select": [ |
| 80 | [ |
| 81 | { |
| 82 | "params": [ |
| 83 | "client_account" |
| 84 | ], |
| 85 | "type": "field" |
| 86 | }, |
| 87 | { |
| 88 | "params": [], |
| 89 | "type": "count" |
| 90 | } |
| 91 | ] |
| 92 | ], |
| 93 | "tags": [ |
| 94 | { |
| 95 | "key": "status::tag", |
| 96 | "operator": "=", |
| 97 | "value": "NT_STATUS_OK" |
| 98 | }, |
| 99 | { |
| 100 | "condition": "AND", |
| 101 | "key": "account::tag", |
| 102 | "operator": "=~", |
| 103 | "value": "/^MACHINE/" |
| 104 | } |
| 105 | ] |
| 106 | }, |
| 107 | "labels": { |
| 108 | "grafana.app/export-label": "influxdb-1" |
| 109 | } |
| 110 | }, |
| 111 | "refId": "A", |
| 112 | "hidden": false |
| 113 | } |
| 114 | }, |
| 115 | { |
| 116 | "kind": "PanelQuery", |
| 117 | "spec": { |
| 118 | "query": { |
| 119 | "kind": "DataQuery", |
| 120 | "group": "influxdb", |
| 121 | "version": "v0", |
| 122 | "spec": { |
| 123 | "alias": "user_login", |
| 124 | "groupBy": [ |
| 125 | { |
| 126 | "params": [ |
| 127 | "$interval" |
| 128 | ], |
| 129 | "type": "time" |
| 130 | }, |
| 131 | { |
| 132 | "params": [ |
| 133 | "domain::tag" |
| 134 | ], |
| 135 | "type": "tag" |
| 136 | }, |
| 137 | { |
| 138 | "params": [ |
| 139 | "null" |
| 140 | ], |
| 141 | "type": "fill" |
| 142 | } |
| 143 | ], |
| 144 | "measurement": "samba_auth", |
| 145 | "orderByTime": "ASC", |
| 146 | "policy": "default", |
| 147 | "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^user/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)", |
| 148 | "rawQuery": false, |
| 149 | "resultFormat": "time_series", |
| 150 | "select": [ |
| 151 | [ |
| 152 | { |
| 153 | "params": [ |
| 154 | "client_account" |
| 155 | ], |
| 156 | "type": "field" |
| 157 | }, |
| 158 | { |
| 159 | "params": [], |
| 160 | "type": "count" |
| 161 | } |
| 162 | ] |
| 163 | ], |
| 164 | "tags": [ |
| 165 | { |
| 166 | "key": "status::tag", |
| 167 | "operator": "=", |
| 168 | "value": "NT_STATUS_OK" |
| 169 | }, |
| 170 | { |
| 171 | "condition": "AND", |
| 172 | "key": "account::tag", |
| 173 | "operator": "=~", |
| 174 | "value": "/^user/" |
| 175 | }, |
| 176 | { |
| 177 | "condition": "OR", |
| 178 | "key": "account::tag", |
| 179 | "operator": "=~", |
| 180 | "value": "/^loadtest/" |
| 181 | } |
| 182 | ] |
| 183 | }, |
| 184 | "labels": { |
| 185 | "grafana.app/export-label": "influxdb-1" |
| 186 | } |
| 187 | }, |
| 188 | "refId": "B", |
| 189 | "hidden": false |
| 190 | } |
| 191 | } |
| 192 | ], |
| 193 | "transformations": [], |
| 194 | "queryOptions": {} |
| 195 | } |
| 196 | }, |
| 197 | "vizConfig": { |
| 198 | "kind": "VizConfig", |
| 199 | "group": "timeseries", |
| 200 | "version": "13.0.1+security-01", |
| 201 | "spec": { |
| 202 | "options": { |
| 203 | "annotations": { |
| 204 | "clustering": -1, |
| 205 | "multiLane": false |
| 206 | }, |
| 207 | "legend": { |
| 208 | "calcs": [], |
| 209 | "displayMode": "list", |
| 210 | "placement": "bottom", |
| 211 | "showLegend": true |
| 212 | }, |
| 213 | "tooltip": { |
| 214 | "hideZeros": false, |
| 215 | "mode": "single", |
| 216 | "sort": "none" |
| 217 | } |
| 218 | }, |
| 219 | "fieldConfig": { |
| 220 | "defaults": { |
| 221 | "thresholds": { |
| 222 | "mode": "absolute", |
| 223 | "steps": [ |
| 224 | { |
| 225 | "value": 0, |
| 226 | "color": "green" |
| 227 | }, |
| 228 | { |
| 229 | "value": 80, |
| 230 | "color": "red" |
| 231 | } |
| 232 | ] |
| 233 | }, |
| 234 | "color": { |
| 235 | "mode": "palette-classic" |
| 236 | }, |
| 237 | "custom": { |
| 238 | "axisBorderShow": false, |
| 239 | "axisCenteredZero": false, |
| 240 | "axisColorMode": "text", |
| 241 | "axisLabel": "", |
| 242 | "axisPlacement": "auto", |
| 243 | "barAlignment": 0, |
| 244 | "barWidthFactor": 0.6, |
| 245 | "drawStyle": "line", |
| 246 | "fillOpacity": 10, |
| 247 | "gradientMode": "none", |
| 248 | "hideFrom": { |
| 249 | "legend": false, |
| 250 | "tooltip": false, |
| 251 | "viz": false |
| 252 | }, |
| 253 | "insertNulls": false, |
| 254 | "lineInterpolation": "smooth", |
| 255 | "lineWidth": 1, |
| 256 | "pointSize": 5, |
| 257 | "scaleDistribution": { |
| 258 | "type": "linear" |
| 259 | }, |
| 260 | "showPoints": "auto", |
| 261 | "showValues": false, |
| 262 | "spanNulls": false, |
| 263 | "stacking": { |
| 264 | "group": "A", |
| 265 | "mode": "none" |
| 266 | }, |
| 267 | "thresholdsStyle": { |
| 268 | "mode": "off" |
| 269 | } |
| 270 | } |
| 271 | }, |
| 272 | "overrides": [] |
| 273 | } |
| 274 | } |
| 275 | } |
| 276 | } |
| 277 | }, |
| 278 | "panel-10": { |
| 279 | "kind": "Panel", |
| 280 | "spec": { |
| 281 | "id": 10, |
| 282 | "title": "SMB: подключённых клиентов", |
| 283 | "description": "История числа подключённых SMB-клиентов (samba_clients.count).", |
| 284 | "links": [], |
| 285 | "data": { |
| 286 | "kind": "QueryGroup", |
| 287 | "spec": { |
| 288 | "queries": [ |
| 289 | { |
| 290 | "kind": "PanelQuery", |
| 291 | "spec": { |
| 292 | "query": { |
| 293 | "kind": "DataQuery", |
| 294 | "group": "influxdb", |
| 295 | "version": "v0", |
| 296 | "spec": { |
| 297 | "alias": "clients", |
| 298 | "groupBy": [ |
| 299 | { |
| 300 | "params": [ |
| 301 | "$__interval" |
| 302 | ], |
| 303 | "type": "time" |
| 304 | }, |
| 305 | { |
| 306 | "params": [ |
| 307 | "null" |
| 308 | ], |
| 309 | "type": "fill" |
| 310 | } |
| 311 | ], |
| 312 | "measurement": "samba_clients", |
| 313 | "orderByTime": "ASC", |
| 314 | "policy": "default", |
| 315 | "query": "SELECT last(\"count\") FROM \"samba_clients\" WHERE $timeFilter GROUP BY time($__interval) fill(null)", |
| 316 | "rawQuery": false, |
| 317 | "resultFormat": "time_series", |
| 318 | "select": [ |
| 319 | [ |
| 320 | { |
| 321 | "params": [ |
| 322 | "count" |
| 323 | ], |
| 324 | "type": "field" |
| 325 | }, |
| 326 | { |
| 327 | "params": [], |
| 328 | "type": "last" |
| 329 | } |
| 330 | ] |
| 331 | ], |
| 332 | "tags": [] |
| 333 | }, |
| 334 | "labels": { |
| 335 | "grafana.app/export-label": "influxdb-1" |
| 336 | } |
| 337 | }, |
| 338 | "refId": "A", |
| 339 | "hidden": false |
| 340 | } |
| 341 | } |
| 342 | ], |
| 343 | "transformations": [], |
| 344 | "queryOptions": {} |
| 345 | } |
| 346 | }, |
| 347 | "vizConfig": { |
| 348 | "kind": "VizConfig", |
| 349 | "group": "timeseries", |
| 350 | "version": "13.0.1+security-01", |
| 351 | "spec": { |
| 352 | "options": { |
| 353 | "annotations": { |
| 354 | "clustering": -1, |
| 355 | "multiLane": false |
| 356 | }, |
| 357 | "legend": { |
| 358 | "calcs": [], |
| 359 | "displayMode": "list", |
| 360 | "placement": "bottom", |
| 361 | "showLegend": true |
| 362 | }, |
| 363 | "tooltip": { |
| 364 | "hideZeros": false, |
| 365 | "mode": "single", |
| 366 | "sort": "none" |
| 367 | } |
| 368 | }, |
| 369 | "fieldConfig": { |
| 370 | "defaults": { |
| 371 | "unit": "none", |
| 372 | "thresholds": { |
| 373 | "mode": "absolute", |
| 374 | "steps": [ |
| 375 | { |
| 376 | "value": 0, |
| 377 | "color": "green" |
| 378 | } |
| 379 | ] |
| 380 | }, |
| 381 | "color": { |
| 382 | "mode": "palette-classic" |
| 383 | }, |
| 384 | "custom": { |
| 385 | "axisBorderShow": false, |
| 386 | "axisCenteredZero": false, |
| 387 | "axisColorMode": "text", |
| 388 | "axisLabel": "", |
| 389 | "axisPlacement": "auto", |
| 390 | "barAlignment": 0, |
| 391 | "barWidthFactor": 0.6, |
| 392 | "drawStyle": "line", |
| 393 | "fillOpacity": 15, |
| 394 | "gradientMode": "none", |
| 395 | "hideFrom": { |
| 396 | "legend": false, |
| 397 | "tooltip": false, |
| 398 | "viz": false |
| 399 | }, |
| 400 | "insertNulls": false, |
| 401 | "lineInterpolation": "stepAfter", |
| 402 | "lineWidth": 2, |
| 403 | "pointSize": 5, |
| 404 | "scaleDistribution": { |
| 405 | "type": "linear" |
| 406 | }, |
| 407 | "showPoints": "auto", |
| 408 | "showValues": false, |
| 409 | "spanNulls": false, |
| 410 | "stacking": { |
| 411 | "group": "A", |
| 412 | "mode": "none" |
| 413 | }, |
| 414 | "thresholdsStyle": { |
| 415 | "mode": "off" |
| 416 | } |
| 417 | } |
| 418 | }, |
| 419 | "overrides": [] |
| 420 | } |
| 421 | } |
| 422 | } |
| 423 | } |
| 424 | }, |
| 425 | "panel-11": { |
| 426 | "kind": "Panel", |
| 427 | "spec": { |
| 428 | "id": 11, |
| 429 | "title": "Authentifications", |
| 430 | "description": "Успешные входы в домен (samba_auth): машинные и пользовательские, разбивка по домену.", |
| 431 | "links": [], |
| 432 | "data": { |
| 433 | "kind": "QueryGroup", |
| 434 | "spec": { |
| 435 | "queries": [ |
| 436 | { |
| 437 | "kind": "PanelQuery", |
| 438 | "spec": { |
| 439 | "query": { |
| 440 | "kind": "DataQuery", |
| 441 | "group": "influxdb", |
| 442 | "version": "v0", |
| 443 | "spec": { |
| 444 | "alias": "machine_login_1s", |
| 445 | "groupBy": [ |
| 446 | { |
| 447 | "params": [ |
| 448 | "1s" |
| 449 | ], |
| 450 | "type": "time" |
| 451 | }, |
| 452 | { |
| 453 | "params": [ |
| 454 | "domain::tag" |
| 455 | ], |
| 456 | "type": "tag" |
| 457 | }, |
| 458 | { |
| 459 | "params": [ |
| 460 | "null" |
| 461 | ], |
| 462 | "type": "fill" |
| 463 | } |
| 464 | ], |
| 465 | "measurement": "samba_auth", |
| 466 | "orderByTime": "ASC", |
| 467 | "policy": "default", |
| 468 | "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)", |
| 469 | "rawQuery": false, |
| 470 | "resultFormat": "time_series", |
| 471 | "select": [ |
| 472 | [ |
| 473 | { |
| 474 | "params": [ |
| 475 | "client_account" |
| 476 | ], |
| 477 | "type": "field" |
| 478 | }, |
| 479 | { |
| 480 | "params": [], |
| 481 | "type": "count" |
| 482 | } |
| 483 | ] |
| 484 | ], |
| 485 | "tags": [ |
| 486 | { |
| 487 | "key": "status::tag", |
| 488 | "operator": "=", |
| 489 | "value": "NT_STATUS_OK" |
| 490 | }, |
| 491 | { |
| 492 | "condition": "AND", |
| 493 | "key": "account::tag", |
| 494 | "operator": "=~", |
| 495 | "value": "/^MACHINE/" |
| 496 | } |
| 497 | ] |
| 498 | }, |
| 499 | "labels": { |
| 500 | "grafana.app/export-label": "influxdb-1" |
| 501 | } |
| 502 | }, |
| 503 | "refId": "A", |
| 504 | "hidden": false |
| 505 | } |
| 506 | }, |
| 507 | { |
| 508 | "kind": "PanelQuery", |
| 509 | "spec": { |
| 510 | "query": { |
| 511 | "kind": "DataQuery", |
| 512 | "group": "influxdb", |
| 513 | "version": "v0", |
| 514 | "spec": { |
| 515 | "alias": "user_login_1s", |
| 516 | "groupBy": [ |
| 517 | { |
| 518 | "params": [ |
| 519 | "1s" |
| 520 | ], |
| 521 | "type": "time" |
| 522 | }, |
| 523 | { |
| 524 | "params": [ |
| 525 | "domain::tag" |
| 526 | ], |
| 527 | "type": "tag" |
| 528 | }, |
| 529 | { |
| 530 | "params": [ |
| 531 | "null" |
| 532 | ], |
| 533 | "type": "fill" |
| 534 | } |
| 535 | ], |
| 536 | "measurement": "samba_auth", |
| 537 | "orderByTime": "ASC", |
| 538 | "policy": "default", |
| 539 | "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^user/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)", |
| 540 | "rawQuery": false, |
| 541 | "resultFormat": "time_series", |
| 542 | "select": [ |
| 543 | [ |
| 544 | { |
| 545 | "params": [ |
| 546 | "client_account" |
| 547 | ], |
| 548 | "type": "field" |
| 549 | }, |
| 550 | { |
| 551 | "params": [], |
| 552 | "type": "count" |
| 553 | } |
| 554 | ] |
| 555 | ], |
| 556 | "tags": [ |
| 557 | { |
| 558 | "key": "status::tag", |
| 559 | "operator": "=", |
| 560 | "value": "NT_STATUS_OK" |
| 561 | }, |
| 562 | { |
| 563 | "condition": "AND", |
| 564 | "key": "account::tag", |
| 565 | "operator": "=~", |
| 566 | "value": "/^user/" |
| 567 | }, |
| 568 | { |
| 569 | "condition": "OR", |
| 570 | "key": "account::tag", |
| 571 | "operator": "=~", |
| 572 | "value": "/^loadtest/" |
| 573 | } |
| 574 | ] |
| 575 | }, |
| 576 | "labels": { |
| 577 | "grafana.app/export-label": "influxdb-1" |
| 578 | } |
| 579 | }, |
| 580 | "refId": "B", |
| 581 | "hidden": false |
| 582 | } |
| 583 | }, |
| 584 | { |
| 585 | "kind": "PanelQuery", |
| 586 | "spec": { |
| 587 | "query": { |
| 588 | "kind": "DataQuery", |
| 589 | "group": "influxdb", |
| 590 | "version": "v0", |
| 591 | "spec": { |
| 592 | "alias": "machine_login_5m", |
| 593 | "groupBy": [ |
| 594 | { |
| 595 | "params": [ |
| 596 | "5m" |
| 597 | ], |
| 598 | "type": "time" |
| 599 | }, |
| 600 | { |
| 601 | "params": [ |
| 602 | "domain::tag" |
| 603 | ], |
| 604 | "type": "tag" |
| 605 | }, |
| 606 | { |
| 607 | "params": [ |
| 608 | "null" |
| 609 | ], |
| 610 | "type": "fill" |
| 611 | } |
| 612 | ], |
| 613 | "measurement": "samba_auth", |
| 614 | "orderByTime": "ASC", |
| 615 | "policy": "default", |
| 616 | "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)", |
| 617 | "rawQuery": false, |
| 618 | "resultFormat": "time_series", |
| 619 | "select": [ |
| 620 | [ |
| 621 | { |
| 622 | "params": [ |
| 623 | "client_account" |
| 624 | ], |
| 625 | "type": "field" |
| 626 | }, |
| 627 | { |
| 628 | "params": [], |
| 629 | "type": "count" |
| 630 | } |
| 631 | ] |
| 632 | ], |
| 633 | "tags": [ |
| 634 | { |
| 635 | "key": "status::tag", |
| 636 | "operator": "=", |
| 637 | "value": "NT_STATUS_OK" |
| 638 | }, |
| 639 | { |
| 640 | "condition": "AND", |
| 641 | "key": "account::tag", |
| 642 | "operator": "=~", |
| 643 | "value": "/^MACHINE/" |
| 644 | } |
| 645 | ] |
| 646 | }, |
| 647 | "labels": { |
| 648 | "grafana.app/export-label": "influxdb-1" |
| 649 | } |
| 650 | }, |
| 651 | "refId": "C", |
| 652 | "hidden": false |
| 653 | } |
| 654 | }, |
| 655 | { |
| 656 | "kind": "PanelQuery", |
| 657 | "spec": { |
| 658 | "query": { |
| 659 | "kind": "DataQuery", |
| 660 | "group": "influxdb", |
| 661 | "version": "v0", |
| 662 | "spec": { |
| 663 | "alias": "user_login_5m", |
| 664 | "groupBy": [ |
| 665 | { |
| 666 | "params": [ |
| 667 | "5m" |
| 668 | ], |
| 669 | "type": "time" |
| 670 | }, |
| 671 | { |
| 672 | "params": [ |
| 673 | "domain::tag" |
| 674 | ], |
| 675 | "type": "tag" |
| 676 | }, |
| 677 | { |
| 678 | "params": [ |
| 679 | "null" |
| 680 | ], |
| 681 | "type": "fill" |
| 682 | } |
| 683 | ], |
| 684 | "measurement": "samba_auth", |
| 685 | "orderByTime": "ASC", |
| 686 | "policy": "default", |
| 687 | "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^user/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)", |
| 688 | "rawQuery": false, |
| 689 | "resultFormat": "time_series", |
| 690 | "select": [ |
| 691 | [ |
| 692 | { |
| 693 | "params": [ |
| 694 | "client_account" |
| 695 | ], |
| 696 | "type": "field" |
| 697 | }, |
| 698 | { |
| 699 | "params": [], |
| 700 | "type": "count" |
| 701 | } |
| 702 | ] |
| 703 | ], |
| 704 | "tags": [ |
| 705 | { |
| 706 | "key": "status::tag", |
| 707 | "operator": "=", |
| 708 | "value": "NT_STATUS_OK" |
| 709 | }, |
| 710 | { |
| 711 | "condition": "AND", |
| 712 | "key": "account::tag", |
| 713 | "operator": "=~", |
| 714 | "value": "/^user/" |
| 715 | }, |
| 716 | { |
| 717 | "condition": "OR", |
| 718 | "key": "account::tag", |
| 719 | "operator": "=~", |
| 720 | "value": "/^loadtest/" |
| 721 | } |
| 722 | ] |
| 723 | }, |
| 724 | "labels": { |
| 725 | "grafana.app/export-label": "influxdb-1" |
| 726 | } |
| 727 | }, |
| 728 | "refId": "D", |
| 729 | "hidden": false |
| 730 | } |
| 731 | } |
| 732 | ], |
| 733 | "transformations": [], |
| 734 | "queryOptions": {} |
| 735 | } |
| 736 | }, |
| 737 | "vizConfig": { |
| 738 | "kind": "VizConfig", |
| 739 | "group": "stat", |
| 740 | "version": "13.0.1+security-01", |
| 741 | "spec": { |
| 742 | "options": { |
| 743 | "colorMode": "background", |
| 744 | "graphMode": "none", |
| 745 | "justifyMode": "auto", |
| 746 | "orientation": "vertical", |
| 747 | "percentChangeColorMode": "standard", |
| 748 | "reduceOptions": { |
| 749 | "calcs": [ |
| 750 | "lastNotNull" |
| 751 | ], |
| 752 | "fields": "", |
| 753 | "values": false |
| 754 | }, |
| 755 | "showPercentChange": false, |
| 756 | "textMode": "auto", |
| 757 | "wideLayout": true |
| 758 | }, |
| 759 | "fieldConfig": { |
| 760 | "defaults": { |
| 761 | "thresholds": { |
| 762 | "mode": "absolute", |
| 763 | "steps": [ |
| 764 | { |
| 765 | "value": 0, |
| 766 | "color": "green" |
| 767 | }, |
| 768 | { |
| 769 | "value": 80, |
| 770 | "color": "red" |
| 771 | } |
| 772 | ] |
| 773 | }, |
| 774 | "color": { |
| 775 | "mode": "palette-classic" |
| 776 | } |
| 777 | }, |
| 778 | "overrides": [] |
| 779 | } |
| 780 | } |
| 781 | } |
| 782 | } |
| 783 | }, |
| 784 | "panel-2": { |
| 785 | "kind": "Panel", |
| 786 | "spec": { |
| 787 | "id": 2, |
| 788 | "title": "DSDB: изменения по операциям", |
| 789 | "description": "Число изменений объектов каталога (samba_dsdb), разбивка по типу операции.", |
| 790 | "links": [], |
| 791 | "data": { |
| 792 | "kind": "QueryGroup", |
| 793 | "spec": { |
| 794 | "queries": [ |
| 795 | { |
| 796 | "kind": "PanelQuery", |
| 797 | "spec": { |
| 798 | "query": { |
| 799 | "kind": "DataQuery", |
| 800 | "group": "influxdb", |
| 801 | "version": "v0", |
| 802 | "spec": { |
| 803 | "groupBy": [], |
| 804 | "measurement": "samba_dsdb", |
| 805 | "orderByTime": "ASC", |
| 806 | "policy": "default", |
| 807 | "query": "SELECT count(\"status_code\") FROM \"samba_dsdb\" WHERE $timeFilter GROUP BY time($interval), \"operation\"::tag fill(null)", |
| 808 | "rawQuery": true, |
| 809 | "resultFormat": "time_series", |
| 810 | "select": [], |
| 811 | "tags": [] |
| 812 | }, |
| 813 | "labels": { |
| 814 | "grafana.app/export-label": "influxdb-1" |
| 815 | } |
| 816 | }, |
| 817 | "refId": "A", |
| 818 | "hidden": false |
| 819 | } |
| 820 | } |
| 821 | ], |
| 822 | "transformations": [], |
| 823 | "queryOptions": {} |
| 824 | } |
| 825 | }, |
| 826 | "vizConfig": { |
| 827 | "kind": "VizConfig", |
| 828 | "group": "timeseries", |
| 829 | "version": "13.0.1+security-01", |
| 830 | "spec": { |
| 831 | "options": { |
| 832 | "annotations": { |
| 833 | "clustering": -1, |
| 834 | "multiLane": false |
| 835 | }, |
| 836 | "legend": { |
| 837 | "calcs": [], |
| 838 | "displayMode": "list", |
| 839 | "placement": "bottom", |
| 840 | "showLegend": true |
| 841 | }, |
| 842 | "tooltip": { |
| 843 | "hideZeros": false, |
| 844 | "mode": "multi", |
| 845 | "sort": "desc" |
| 846 | } |
| 847 | }, |
| 848 | "fieldConfig": { |
| 849 | "defaults": { |
| 850 | "thresholds": { |
| 851 | "mode": "absolute", |
| 852 | "steps": [ |
| 853 | { |
| 854 | "value": 0, |
| 855 | "color": "green" |
| 856 | }, |
| 857 | { |
| 858 | "value": 80, |
| 859 | "color": "red" |
| 860 | } |
| 861 | ] |
| 862 | }, |
| 863 | "color": { |
| 864 | "mode": "palette-classic" |
| 865 | }, |
| 866 | "custom": { |
| 867 | "axisBorderShow": false, |
| 868 | "axisCenteredZero": false, |
| 869 | "axisColorMode": "text", |
| 870 | "axisLabel": "", |
| 871 | "axisPlacement": "auto", |
| 872 | "barAlignment": 0, |
| 873 | "barWidthFactor": 0.6, |
| 874 | "drawStyle": "bars", |
| 875 | "fillOpacity": 50, |
| 876 | "gradientMode": "none", |
| 877 | "hideFrom": { |
| 878 | "legend": false, |
| 879 | "tooltip": false, |
| 880 | "viz": false |
| 881 | }, |
| 882 | "insertNulls": false, |
| 883 | "lineInterpolation": "linear", |
| 884 | "lineWidth": 1, |
| 885 | "pointSize": 5, |
| 886 | "scaleDistribution": { |
| 887 | "type": "linear" |
| 888 | }, |
| 889 | "showPoints": "auto", |
| 890 | "showValues": false, |
| 891 | "spanNulls": false, |
| 892 | "stacking": { |
| 893 | "group": "A", |
| 894 | "mode": "normal" |
| 895 | }, |
| 896 | "thresholdsStyle": { |
| 897 | "mode": "off" |
| 898 | } |
| 899 | } |
| 900 | }, |
| 901 | "overrides": [] |
| 902 | } |
| 903 | } |
| 904 | } |
| 905 | } |
| 906 | }, |
| 907 | "panel-3": { |
| 908 | "kind": "Panel", |
| 909 | "spec": { |
| 910 | "id": 3, |
| 911 | "title": "DSDB: система vs пользователь", |
| 912 | "description": "Изменения каталога с разбивкой по performedAsSystem (true = выполнено системой).", |
| 913 | "links": [], |
| 914 | "data": { |
| 915 | "kind": "QueryGroup", |
| 916 | "spec": { |
| 917 | "queries": [ |
| 918 | { |
| 919 | "kind": "PanelQuery", |
| 920 | "spec": { |
| 921 | "query": { |
| 922 | "kind": "DataQuery", |
| 923 | "group": "influxdb", |
| 924 | "version": "v0", |
| 925 | "spec": { |
| 926 | "groupBy": [], |
| 927 | "measurement": "samba_dsdb", |
| 928 | "orderByTime": "ASC", |
| 929 | "policy": "default", |
| 930 | "query": "SELECT count(\"status_code\") FROM \"samba_dsdb\" WHERE $timeFilter GROUP BY time($interval), \"as_system\"::tag fill(null)", |
| 931 | "rawQuery": true, |
| 932 | "resultFormat": "time_series", |
| 933 | "select": [], |
| 934 | "tags": [] |
| 935 | }, |
| 936 | "labels": { |
| 937 | "grafana.app/export-label": "influxdb-1" |
| 938 | } |
| 939 | }, |
| 940 | "refId": "A", |
| 941 | "hidden": false |
| 942 | } |
| 943 | } |
| 944 | ], |
| 945 | "transformations": [], |
| 946 | "queryOptions": {} |
| 947 | } |
| 948 | }, |
| 949 | "vizConfig": { |
| 950 | "kind": "VizConfig", |
| 951 | "group": "timeseries", |
| 952 | "version": "13.0.1+security-01", |
| 953 | "spec": { |
| 954 | "options": { |
| 955 | "annotations": { |
| 956 | "clustering": -1, |
| 957 | "multiLane": false |
| 958 | }, |
| 959 | "legend": { |
| 960 | "calcs": [], |
| 961 | "displayMode": "list", |
| 962 | "placement": "bottom", |
| 963 | "showLegend": true |
| 964 | }, |
| 965 | "tooltip": { |
| 966 | "hideZeros": false, |
| 967 | "mode": "multi", |
| 968 | "sort": "desc" |
| 969 | } |
| 970 | }, |
| 971 | "fieldConfig": { |
| 972 | "defaults": { |
| 973 | "thresholds": { |
| 974 | "mode": "absolute", |
| 975 | "steps": [ |
| 976 | { |
| 977 | "value": 0, |
| 978 | "color": "green" |
| 979 | }, |
| 980 | { |
| 981 | "value": 80, |
| 982 | "color": "red" |
| 983 | } |
| 984 | ] |
| 985 | }, |
| 986 | "color": { |
| 987 | "mode": "palette-classic" |
| 988 | }, |
| 989 | "custom": { |
| 990 | "axisBorderShow": false, |
| 991 | "axisCenteredZero": false, |
| 992 | "axisColorMode": "text", |
| 993 | "axisLabel": "", |
| 994 | "axisPlacement": "auto", |
| 995 | "barAlignment": 0, |
| 996 | "barWidthFactor": 0.6, |
| 997 | "drawStyle": "line", |
| 998 | "fillOpacity": 20, |
| 999 | "gradientMode": "none", |
| 1000 | "hideFrom": { |
| 1001 | "legend": false, |
| 1002 | "tooltip": false, |
| 1003 | "viz": false |
| 1004 | }, |
| 1005 | "insertNulls": false, |
| 1006 | "lineInterpolation": "smooth", |
| 1007 | "lineWidth": 1, |
| 1008 | "pointSize": 5, |
| 1009 | "scaleDistribution": { |
| 1010 | "type": "linear" |
| 1011 | }, |
| 1012 | "showPoints": "auto", |
| 1013 | "showValues": false, |
| 1014 | "spanNulls": false, |
| 1015 | "stacking": { |
| 1016 | "group": "A", |
| 1017 | "mode": "none" |
| 1018 | }, |
| 1019 | "thresholdsStyle": { |
| 1020 | "mode": "off" |
| 1021 | } |
| 1022 | } |
| 1023 | }, |
| 1024 | "overrides": [] |
| 1025 | } |
| 1026 | } |
| 1027 | } |
| 1028 | } |
| 1029 | }, |
| 1030 | "panel-4": { |
| 1031 | "kind": "Panel", |
| 1032 | "spec": { |
| 1033 | "id": 4, |
| 1034 | "title": "DSDB: топ инициаторов (SID)", |
| 1035 | "description": "Кто инициировал изменения каталога — разбивка по userSid.", |
| 1036 | "links": [], |
| 1037 | "data": { |
| 1038 | "kind": "QueryGroup", |
| 1039 | "spec": { |
| 1040 | "queries": [ |
| 1041 | { |
| 1042 | "kind": "PanelQuery", |
| 1043 | "spec": { |
| 1044 | "query": { |
| 1045 | "kind": "DataQuery", |
| 1046 | "group": "influxdb", |
| 1047 | "version": "v0", |
| 1048 | "spec": { |
| 1049 | "groupBy": [], |
| 1050 | "measurement": "samba_dsdb", |
| 1051 | "orderByTime": "ASC", |
| 1052 | "policy": "default", |
| 1053 | "query": "SELECT count(\"status_code\") FROM \"samba_dsdb\" WHERE $timeFilter GROUP BY time($interval), \"user_sid\"::tag fill(null)", |
| 1054 | "rawQuery": true, |
| 1055 | "resultFormat": "time_series", |
| 1056 | "select": [], |
| 1057 | "tags": [] |
| 1058 | }, |
| 1059 | "labels": { |
| 1060 | "grafana.app/export-label": "influxdb-1" |
| 1061 | } |
| 1062 | }, |
| 1063 | "refId": "A", |
| 1064 | "hidden": false |
| 1065 | } |
| 1066 | } |
| 1067 | ], |
| 1068 | "transformations": [], |
| 1069 | "queryOptions": {} |
| 1070 | } |
| 1071 | }, |
| 1072 | "vizConfig": { |
| 1073 | "kind": "VizConfig", |
| 1074 | "group": "timeseries", |
| 1075 | "version": "13.0.1+security-01", |
| 1076 | "spec": { |
| 1077 | "options": { |
| 1078 | "annotations": { |
| 1079 | "clustering": -1, |
| 1080 | "multiLane": false |
| 1081 | }, |
| 1082 | "legend": { |
| 1083 | "calcs": [ |
| 1084 | "sum" |
| 1085 | ], |
| 1086 | "displayMode": "table", |
| 1087 | "placement": "right", |
| 1088 | "showLegend": true |
| 1089 | }, |
| 1090 | "tooltip": { |
| 1091 | "hideZeros": false, |
| 1092 | "mode": "multi", |
| 1093 | "sort": "desc" |
| 1094 | } |
| 1095 | }, |
| 1096 | "fieldConfig": { |
| 1097 | "defaults": { |
| 1098 | "thresholds": { |
| 1099 | "mode": "absolute", |
| 1100 | "steps": [ |
| 1101 | { |
| 1102 | "value": 0, |
| 1103 | "color": "green" |
| 1104 | }, |
| 1105 | { |
| 1106 | "value": 80, |
| 1107 | "color": "red" |
| 1108 | } |
| 1109 | ] |
| 1110 | }, |
| 1111 | "color": { |
| 1112 | "mode": "palette-classic" |
| 1113 | }, |
| 1114 | "custom": { |
| 1115 | "axisBorderShow": false, |
| 1116 | "axisCenteredZero": false, |
| 1117 | "axisColorMode": "text", |
| 1118 | "axisLabel": "", |
| 1119 | "axisPlacement": "auto", |
| 1120 | "barAlignment": 0, |
| 1121 | "barWidthFactor": 0.6, |
| 1122 | "drawStyle": "bars", |
| 1123 | "fillOpacity": 50, |
| 1124 | "gradientMode": "none", |
| 1125 | "hideFrom": { |
| 1126 | "legend": false, |
| 1127 | "tooltip": false, |
| 1128 | "viz": false |
| 1129 | }, |
| 1130 | "insertNulls": false, |
| 1131 | "lineInterpolation": "linear", |
| 1132 | "lineWidth": 1, |
| 1133 | "pointSize": 5, |
| 1134 | "scaleDistribution": { |
| 1135 | "type": "linear" |
| 1136 | }, |
| 1137 | "showPoints": "auto", |
| 1138 | "showValues": false, |
| 1139 | "spanNulls": false, |
| 1140 | "stacking": { |
| 1141 | "group": "A", |
| 1142 | "mode": "normal" |
| 1143 | }, |
| 1144 | "thresholdsStyle": { |
| 1145 | "mode": "off" |
| 1146 | } |
| 1147 | } |
| 1148 | }, |
| 1149 | "overrides": [] |
| 1150 | } |
| 1151 | } |
| 1152 | } |
| 1153 | } |
| 1154 | }, |
| 1155 | "panel-5": { |
| 1156 | "kind": "Panel", |
| 1157 | "spec": { |
| 1158 | "id": 5, |
| 1159 | "title": "Транзакции: длительность (mean/max)", |
| 1160 | "description": "Длительность транзакций каталога (samba_dsdb_tx) в микросекундах.", |
| 1161 | "links": [], |
| 1162 | "data": { |
| 1163 | "kind": "QueryGroup", |
| 1164 | "spec": { |
| 1165 | "queries": [ |
| 1166 | { |
| 1167 | "kind": "PanelQuery", |
| 1168 | "spec": { |
| 1169 | "query": { |
| 1170 | "kind": "DataQuery", |
| 1171 | "group": "influxdb", |
| 1172 | "version": "v0", |
| 1173 | "spec": { |
| 1174 | "groupBy": [], |
| 1175 | "measurement": "samba_dsdb_tx", |
| 1176 | "orderByTime": "ASC", |
| 1177 | "policy": "default", |
| 1178 | "query": "SELECT mean(\"duration\") AS \"mean\", max(\"duration\") AS \"max\" FROM \"samba_dsdb_tx\" WHERE $timeFilter GROUP BY time($interval) fill(null)", |
| 1179 | "rawQuery": true, |
| 1180 | "resultFormat": "time_series", |
| 1181 | "select": [], |
| 1182 | "tags": [] |
| 1183 | }, |
| 1184 | "labels": { |
| 1185 | "grafana.app/export-label": "influxdb-1" |
| 1186 | } |
| 1187 | }, |
| 1188 | "refId": "A", |
| 1189 | "hidden": false |
| 1190 | } |
| 1191 | } |
| 1192 | ], |
| 1193 | "transformations": [], |
| 1194 | "queryOptions": {} |
| 1195 | } |
| 1196 | }, |
| 1197 | "vizConfig": { |
| 1198 | "kind": "VizConfig", |
| 1199 | "group": "timeseries", |
| 1200 | "version": "13.0.1+security-01", |
| 1201 | "spec": { |
| 1202 | "options": { |
| 1203 | "annotations": { |
| 1204 | "clustering": -1, |
| 1205 | "multiLane": false |
| 1206 | }, |
| 1207 | "legend": { |
| 1208 | "calcs": [ |
| 1209 | "mean", |
| 1210 | "max" |
| 1211 | ], |
| 1212 | "displayMode": "table", |
| 1213 | "placement": "bottom", |
| 1214 | "showLegend": true |
| 1215 | }, |
| 1216 | "tooltip": { |
| 1217 | "hideZeros": false, |
| 1218 | "mode": "multi", |
| 1219 | "sort": "desc" |
| 1220 | } |
| 1221 | }, |
| 1222 | "fieldConfig": { |
| 1223 | "defaults": { |
| 1224 | "unit": "µs", |
| 1225 | "thresholds": { |
| 1226 | "mode": "absolute", |
| 1227 | "steps": [ |
| 1228 | { |
| 1229 | "value": 0, |
| 1230 | "color": "green" |
| 1231 | }, |
| 1232 | { |
| 1233 | "value": 80, |
| 1234 | "color": "red" |
| 1235 | } |
| 1236 | ] |
| 1237 | }, |
| 1238 | "color": { |
| 1239 | "mode": "palette-classic" |
| 1240 | }, |
| 1241 | "custom": { |
| 1242 | "axisBorderShow": false, |
| 1243 | "axisCenteredZero": false, |
| 1244 | "axisColorMode": "text", |
| 1245 | "axisLabel": "", |
| 1246 | "axisPlacement": "auto", |
| 1247 | "barAlignment": 0, |
| 1248 | "barWidthFactor": 0.6, |
| 1249 | "drawStyle": "line", |
| 1250 | "fillOpacity": 10, |
| 1251 | "gradientMode": "none", |
| 1252 | "hideFrom": { |
| 1253 | "legend": false, |
| 1254 | "tooltip": false, |
| 1255 | "viz": false |
| 1256 | }, |
| 1257 | "insertNulls": false, |
| 1258 | "lineInterpolation": "smooth", |
| 1259 | "lineWidth": 1, |
| 1260 | "pointSize": 5, |
| 1261 | "scaleDistribution": { |
| 1262 | "type": "linear" |
| 1263 | }, |
| 1264 | "showPoints": "auto", |
| 1265 | "showValues": false, |
| 1266 | "spanNulls": false, |
| 1267 | "stacking": { |
| 1268 | "group": "A", |
| 1269 | "mode": "none" |
| 1270 | }, |
| 1271 | "thresholdsStyle": { |
| 1272 | "mode": "off" |
| 1273 | } |
| 1274 | } |
| 1275 | }, |
| 1276 | "overrides": [] |
| 1277 | } |
| 1278 | } |
| 1279 | } |
| 1280 | } |
| 1281 | }, |
| 1282 | "panel-6": { |
| 1283 | "kind": "Panel", |
| 1284 | "spec": { |
| 1285 | "id": 6, |
| 1286 | "title": "Транзакции по типу действия", |
| 1287 | "description": "Число транзакций каталога, разбивка по action (commit / rollback / prepare commit / begin).", |
| 1288 | "links": [], |
| 1289 | "data": { |
| 1290 | "kind": "QueryGroup", |
| 1291 | "spec": { |
| 1292 | "queries": [ |
| 1293 | { |
| 1294 | "kind": "PanelQuery", |
| 1295 | "spec": { |
| 1296 | "query": { |
| 1297 | "kind": "DataQuery", |
| 1298 | "group": "influxdb", |
| 1299 | "version": "v0", |
| 1300 | "spec": { |
| 1301 | "groupBy": [], |
| 1302 | "measurement": "samba_dsdb_tx", |
| 1303 | "orderByTime": "ASC", |
| 1304 | "policy": "default", |
| 1305 | "query": "SELECT count(\"duration\") FROM \"samba_dsdb_tx\" WHERE $timeFilter GROUP BY time($interval), \"action\"::tag fill(null)", |
| 1306 | "rawQuery": true, |
| 1307 | "resultFormat": "time_series", |
| 1308 | "select": [], |
| 1309 | "tags": [] |
| 1310 | }, |
| 1311 | "labels": { |
| 1312 | "grafana.app/export-label": "influxdb-1" |
| 1313 | } |
| 1314 | }, |
| 1315 | "refId": "A", |
| 1316 | "hidden": false |
| 1317 | } |
| 1318 | } |
| 1319 | ], |
| 1320 | "transformations": [], |
| 1321 | "queryOptions": {} |
| 1322 | } |
| 1323 | }, |
| 1324 | "vizConfig": { |
| 1325 | "kind": "VizConfig", |
| 1326 | "group": "timeseries", |
| 1327 | "version": "13.0.1+security-01", |
| 1328 | "spec": { |
| 1329 | "options": { |
| 1330 | "annotations": { |
| 1331 | "clustering": -1, |
| 1332 | "multiLane": false |
| 1333 | }, |
| 1334 | "legend": { |
| 1335 | "calcs": [], |
| 1336 | "displayMode": "list", |
| 1337 | "placement": "bottom", |
| 1338 | "showLegend": true |
| 1339 | }, |
| 1340 | "tooltip": { |
| 1341 | "hideZeros": false, |
| 1342 | "mode": "multi", |
| 1343 | "sort": "desc" |
| 1344 | } |
| 1345 | }, |
| 1346 | "fieldConfig": { |
| 1347 | "defaults": { |
| 1348 | "thresholds": { |
| 1349 | "mode": "absolute", |
| 1350 | "steps": [ |
| 1351 | { |
| 1352 | "value": 0, |
| 1353 | "color": "green" |
| 1354 | }, |
| 1355 | { |
| 1356 | "value": 80, |
| 1357 | "color": "red" |
| 1358 | } |
| 1359 | ] |
| 1360 | }, |
| 1361 | "color": { |
| 1362 | "mode": "palette-classic" |
| 1363 | }, |
| 1364 | "custom": { |
| 1365 | "axisBorderShow": false, |
| 1366 | "axisCenteredZero": false, |
| 1367 | "axisColorMode": "text", |
| 1368 | "axisLabel": "", |
| 1369 | "axisPlacement": "auto", |
| 1370 | "barAlignment": 0, |
| 1371 | "barWidthFactor": 0.6, |
| 1372 | "drawStyle": "bars", |
| 1373 | "fillOpacity": 50, |
| 1374 | "gradientMode": "none", |
| 1375 | "hideFrom": { |
| 1376 | "legend": false, |
| 1377 | "tooltip": false, |
| 1378 | "viz": false |
| 1379 | }, |
| 1380 | "insertNulls": false, |
| 1381 | "lineInterpolation": "linear", |
| 1382 | "lineWidth": 1, |
| 1383 | "pointSize": 5, |
| 1384 | "scaleDistribution": { |
| 1385 | "type": "linear" |
| 1386 | }, |
| 1387 | "showPoints": "auto", |
| 1388 | "showValues": false, |
| 1389 | "spanNulls": false, |
| 1390 | "stacking": { |
| 1391 | "group": "A", |
| 1392 | "mode": "normal" |
| 1393 | }, |
| 1394 | "thresholdsStyle": { |
| 1395 | "mode": "off" |
| 1396 | } |
| 1397 | } |
| 1398 | }, |
| 1399 | "overrides": [] |
| 1400 | } |
| 1401 | } |
| 1402 | } |
| 1403 | } |
| 1404 | }, |
| 1405 | "panel-7": { |
| 1406 | "kind": "Panel", |
| 1407 | "spec": { |
| 1408 | "id": 7, |
| 1409 | "title": "SMB activity", |
| 1410 | "description": "", |
| 1411 | "links": [], |
| 1412 | "data": { |
| 1413 | "kind": "QueryGroup", |
| 1414 | "spec": { |
| 1415 | "queries": [ |
| 1416 | { |
| 1417 | "kind": "PanelQuery", |
| 1418 | "spec": { |
| 1419 | "query": { |
| 1420 | "kind": "DataQuery", |
| 1421 | "group": "influxdb", |
| 1422 | "version": "v0", |
| 1423 | "spec": { |
| 1424 | "alias": "user_smb", |
| 1425 | "groupBy": [ |
| 1426 | { |
| 1427 | "params": [ |
| 1428 | "$interval" |
| 1429 | ], |
| 1430 | "type": "time" |
| 1431 | }, |
| 1432 | { |
| 1433 | "params": [ |
| 1434 | "domain::tag" |
| 1435 | ], |
| 1436 | "type": "tag" |
| 1437 | }, |
| 1438 | { |
| 1439 | "params": [ |
| 1440 | "null" |
| 1441 | ], |
| 1442 | "type": "fill" |
| 1443 | } |
| 1444 | ], |
| 1445 | "measurement": "samba_authz", |
| 1446 | "orderByTime": "ASC", |
| 1447 | "policy": "default", |
| 1448 | "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)", |
| 1449 | "rawQuery": false, |
| 1450 | "resultFormat": "time_series", |
| 1451 | "select": [ |
| 1452 | [ |
| 1453 | { |
| 1454 | "params": [ |
| 1455 | "auth_type" |
| 1456 | ], |
| 1457 | "type": "field" |
| 1458 | }, |
| 1459 | { |
| 1460 | "params": [], |
| 1461 | "type": "count" |
| 1462 | } |
| 1463 | ] |
| 1464 | ], |
| 1465 | "tags": [ |
| 1466 | { |
| 1467 | "key": "service::tag", |
| 1468 | "operator": "=", |
| 1469 | "value": "SMB2" |
| 1470 | }, |
| 1471 | { |
| 1472 | "condition": "AND", |
| 1473 | "key": "auth_type::field", |
| 1474 | "operator": "=", |
| 1475 | "value": "krb5" |
| 1476 | }, |
| 1477 | { |
| 1478 | "condition": "AND", |
| 1479 | "key": "account::tag", |
| 1480 | "operator": "=~", |
| 1481 | "value": "/^user-/" |
| 1482 | } |
| 1483 | ] |
| 1484 | }, |
| 1485 | "labels": { |
| 1486 | "grafana.app/export-label": "influxdb-1" |
| 1487 | } |
| 1488 | }, |
| 1489 | "refId": "A", |
| 1490 | "hidden": false |
| 1491 | } |
| 1492 | }, |
| 1493 | { |
| 1494 | "kind": "PanelQuery", |
| 1495 | "spec": { |
| 1496 | "query": { |
| 1497 | "kind": "DataQuery", |
| 1498 | "group": "influxdb", |
| 1499 | "version": "v0", |
| 1500 | "spec": { |
| 1501 | "alias": "machine_smb", |
| 1502 | "groupBy": [ |
| 1503 | { |
| 1504 | "params": [ |
| 1505 | "$interval" |
| 1506 | ], |
| 1507 | "type": "time" |
| 1508 | }, |
| 1509 | { |
| 1510 | "params": [ |
| 1511 | "domain::tag" |
| 1512 | ], |
| 1513 | "type": "tag" |
| 1514 | }, |
| 1515 | { |
| 1516 | "params": [ |
| 1517 | "null" |
| 1518 | ], |
| 1519 | "type": "fill" |
| 1520 | } |
| 1521 | ], |
| 1522 | "measurement": "samba_authz", |
| 1523 | "orderByTime": "ASC", |
| 1524 | "policy": "default", |
| 1525 | "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)", |
| 1526 | "rawQuery": false, |
| 1527 | "resultFormat": "time_series", |
| 1528 | "select": [ |
| 1529 | [ |
| 1530 | { |
| 1531 | "params": [ |
| 1532 | "auth_type" |
| 1533 | ], |
| 1534 | "type": "field" |
| 1535 | }, |
| 1536 | { |
| 1537 | "params": [], |
| 1538 | "type": "count" |
| 1539 | } |
| 1540 | ] |
| 1541 | ], |
| 1542 | "tags": [ |
| 1543 | { |
| 1544 | "key": "service::tag", |
| 1545 | "operator": "=", |
| 1546 | "value": "SMB2" |
| 1547 | }, |
| 1548 | { |
| 1549 | "condition": "AND", |
| 1550 | "key": "auth_type::field", |
| 1551 | "operator": "=", |
| 1552 | "value": "krb5" |
| 1553 | }, |
| 1554 | { |
| 1555 | "condition": "AND", |
| 1556 | "key": "account::tag", |
| 1557 | "operator": "=~", |
| 1558 | "value": "/^MACHINE/" |
| 1559 | } |
| 1560 | ] |
| 1561 | }, |
| 1562 | "labels": { |
| 1563 | "grafana.app/export-label": "influxdb-1" |
| 1564 | } |
| 1565 | }, |
| 1566 | "refId": "B", |
| 1567 | "hidden": false |
| 1568 | } |
| 1569 | } |
| 1570 | ], |
| 1571 | "transformations": [], |
| 1572 | "queryOptions": {} |
| 1573 | } |
| 1574 | }, |
| 1575 | "vizConfig": { |
| 1576 | "kind": "VizConfig", |
| 1577 | "group": "timeseries", |
| 1578 | "version": "13.0.1+security-01", |
| 1579 | "spec": { |
| 1580 | "options": { |
| 1581 | "annotations": { |
| 1582 | "clustering": -1, |
| 1583 | "multiLane": false |
| 1584 | }, |
| 1585 | "legend": { |
| 1586 | "calcs": [], |
| 1587 | "displayMode": "list", |
| 1588 | "placement": "bottom", |
| 1589 | "showLegend": true |
| 1590 | }, |
| 1591 | "tooltip": { |
| 1592 | "hideZeros": false, |
| 1593 | "mode": "single", |
| 1594 | "sort": "none" |
| 1595 | } |
| 1596 | }, |
| 1597 | "fieldConfig": { |
| 1598 | "defaults": { |
| 1599 | "thresholds": { |
| 1600 | "mode": "absolute", |
| 1601 | "steps": [ |
| 1602 | { |
| 1603 | "value": 0, |
| 1604 | "color": "green" |
| 1605 | }, |
| 1606 | { |
| 1607 | "value": 80, |
| 1608 | "color": "red" |
| 1609 | } |
| 1610 | ] |
| 1611 | }, |
| 1612 | "color": { |
| 1613 | "mode": "palette-classic" |
| 1614 | }, |
| 1615 | "custom": { |
| 1616 | "axisBorderShow": false, |
| 1617 | "axisCenteredZero": false, |
| 1618 | "axisColorMode": "text", |
| 1619 | "axisLabel": "", |
| 1620 | "axisPlacement": "auto", |
| 1621 | "barAlignment": 0, |
| 1622 | "barWidthFactor": 0.6, |
| 1623 | "drawStyle": "line", |
| 1624 | "fillOpacity": 10, |
| 1625 | "gradientMode": "none", |
| 1626 | "hideFrom": { |
| 1627 | "legend": false, |
| 1628 | "tooltip": false, |
| 1629 | "viz": false |
| 1630 | }, |
| 1631 | "insertNulls": false, |
| 1632 | "lineInterpolation": "smooth", |
| 1633 | "lineWidth": 1, |
| 1634 | "pointSize": 5, |
| 1635 | "scaleDistribution": { |
| 1636 | "type": "linear" |
| 1637 | }, |
| 1638 | "showPoints": "auto", |
| 1639 | "showValues": false, |
| 1640 | "spanNulls": false, |
| 1641 | "stacking": { |
| 1642 | "group": "A", |
| 1643 | "mode": "none" |
| 1644 | }, |
| 1645 | "thresholdsStyle": { |
| 1646 | "mode": "off" |
| 1647 | } |
| 1648 | } |
| 1649 | }, |
| 1650 | "overrides": [] |
| 1651 | } |
| 1652 | } |
| 1653 | } |
| 1654 | } |
| 1655 | }, |
| 1656 | "panel-8": { |
| 1657 | "kind": "Panel", |
| 1658 | "spec": { |
| 1659 | "id": 8, |
| 1660 | "title": "DNS activity", |
| 1661 | "description": "", |
| 1662 | "links": [], |
| 1663 | "data": { |
| 1664 | "kind": "QueryGroup", |
| 1665 | "spec": { |
| 1666 | "queries": [ |
| 1667 | { |
| 1668 | "kind": "PanelQuery", |
| 1669 | "spec": { |
| 1670 | "query": { |
| 1671 | "kind": "DataQuery", |
| 1672 | "group": "influxdb", |
| 1673 | "version": "v0", |
| 1674 | "spec": { |
| 1675 | "alias": "rcode=0", |
| 1676 | "groupBy": [ |
| 1677 | { |
| 1678 | "params": [ |
| 1679 | "$interval" |
| 1680 | ], |
| 1681 | "type": "time" |
| 1682 | }, |
| 1683 | { |
| 1684 | "params": [ |
| 1685 | "null" |
| 1686 | ], |
| 1687 | "type": "fill" |
| 1688 | } |
| 1689 | ], |
| 1690 | "measurement": "samba_dns_rcode", |
| 1691 | "orderByTime": "ASC", |
| 1692 | "policy": "default", |
| 1693 | "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)", |
| 1694 | "rawQuery": false, |
| 1695 | "resultFormat": "time_series", |
| 1696 | "select": [ |
| 1697 | [ |
| 1698 | { |
| 1699 | "params": [ |
| 1700 | "rcode" |
| 1701 | ], |
| 1702 | "type": "field" |
| 1703 | }, |
| 1704 | { |
| 1705 | "params": [], |
| 1706 | "type": "count" |
| 1707 | } |
| 1708 | ] |
| 1709 | ], |
| 1710 | "tags": [ |
| 1711 | { |
| 1712 | "key": "rcode::field", |
| 1713 | "operator": "=", |
| 1714 | "value": "0" |
| 1715 | }, |
| 1716 | { |
| 1717 | "condition": "AND", |
| 1718 | "key": "direction::tag", |
| 1719 | "operator": "=", |
| 1720 | "value": "out_packet" |
| 1721 | } |
| 1722 | ] |
| 1723 | }, |
| 1724 | "labels": { |
| 1725 | "grafana.app/export-label": "influxdb-1" |
| 1726 | } |
| 1727 | }, |
| 1728 | "refId": "A", |
| 1729 | "hidden": false |
| 1730 | } |
| 1731 | }, |
| 1732 | { |
| 1733 | "kind": "PanelQuery", |
| 1734 | "spec": { |
| 1735 | "query": { |
| 1736 | "kind": "DataQuery", |
| 1737 | "group": "influxdb", |
| 1738 | "version": "v0", |
| 1739 | "spec": { |
| 1740 | "alias": "rcode=3", |
| 1741 | "groupBy": [ |
| 1742 | { |
| 1743 | "params": [ |
| 1744 | "$interval" |
| 1745 | ], |
| 1746 | "type": "time" |
| 1747 | }, |
| 1748 | { |
| 1749 | "params": [ |
| 1750 | "null" |
| 1751 | ], |
| 1752 | "type": "fill" |
| 1753 | } |
| 1754 | ], |
| 1755 | "measurement": "samba_dns_rcode", |
| 1756 | "orderByTime": "ASC", |
| 1757 | "policy": "default", |
| 1758 | "query": "SELECT count(\"client_account\") FROM \"samba_auth\" WHERE (\"status\"::tag = 'NT_STATUS_OK' AND \"account\"::tag =~ /^MACHINE/) AND $timeFilter GROUP BY time($interval), \"domain\"::tag fill(null)", |
| 1759 | "rawQuery": false, |
| 1760 | "resultFormat": "time_series", |
| 1761 | "select": [ |
| 1762 | [ |
| 1763 | { |
| 1764 | "params": [ |
| 1765 | "rcode" |
| 1766 | ], |
| 1767 | "type": "field" |
| 1768 | }, |
| 1769 | { |
| 1770 | "params": [], |
| 1771 | "type": "count" |
| 1772 | } |
| 1773 | ] |
| 1774 | ], |
| 1775 | "tags": [ |
| 1776 | { |
| 1777 | "key": "rcode::field", |
| 1778 | "operator": "=", |
| 1779 | "value": "3" |
| 1780 | }, |
| 1781 | { |
| 1782 | "condition": "AND", |
| 1783 | "key": "direction::tag", |
| 1784 | "operator": "=", |
| 1785 | "value": "out_packet" |
| 1786 | } |
| 1787 | ] |
| 1788 | }, |
| 1789 | "labels": { |
| 1790 | "grafana.app/export-label": "influxdb-1" |
| 1791 | } |
| 1792 | }, |
| 1793 | "refId": "B", |
| 1794 | "hidden": false |
| 1795 | } |
| 1796 | } |
| 1797 | ], |
| 1798 | "transformations": [], |
| 1799 | "queryOptions": {} |
| 1800 | } |
| 1801 | }, |
| 1802 | "vizConfig": { |
| 1803 | "kind": "VizConfig", |
| 1804 | "group": "timeseries", |
| 1805 | "version": "13.0.1+security-01", |
| 1806 | "spec": { |
| 1807 | "options": { |
| 1808 | "annotations": { |
| 1809 | "clustering": -1, |
| 1810 | "multiLane": false |
| 1811 | }, |
| 1812 | "legend": { |
| 1813 | "calcs": [], |
| 1814 | "displayMode": "list", |
| 1815 | "placement": "bottom", |
| 1816 | "showLegend": true |
| 1817 | }, |
| 1818 | "tooltip": { |
| 1819 | "hideZeros": false, |
| 1820 | "mode": "single", |
| 1821 | "sort": "none" |
| 1822 | } |
| 1823 | }, |
| 1824 | "fieldConfig": { |
| 1825 | "defaults": { |
| 1826 | "thresholds": { |
| 1827 | "mode": "absolute", |
| 1828 | "steps": [ |
| 1829 | { |
| 1830 | "value": 0, |
| 1831 | "color": "green" |
| 1832 | }, |
| 1833 | { |
| 1834 | "value": 80, |
| 1835 | "color": "red" |
| 1836 | } |
| 1837 | ] |
| 1838 | }, |
| 1839 | "color": { |
| 1840 | "mode": "palette-classic" |
| 1841 | }, |
| 1842 | "custom": { |
| 1843 | "axisBorderShow": false, |
| 1844 | "axisCenteredZero": false, |
| 1845 | "axisColorMode": "text", |
| 1846 | "axisLabel": "", |
| 1847 | "axisPlacement": "auto", |
| 1848 | "barAlignment": 0, |
| 1849 | "barWidthFactor": 0.6, |
| 1850 | "drawStyle": "line", |
| 1851 | "fillOpacity": 10, |
| 1852 | "gradientMode": "none", |
| 1853 | "hideFrom": { |
| 1854 | "legend": false, |
| 1855 | "tooltip": false, |
| 1856 | "viz": false |
| 1857 | }, |
| 1858 | "insertNulls": false, |
| 1859 | "lineInterpolation": "smooth", |
| 1860 | "lineWidth": 1, |
| 1861 | "pointSize": 5, |
| 1862 | "scaleDistribution": { |
| 1863 | "type": "linear" |
| 1864 | }, |
| 1865 | "showPoints": "auto", |
| 1866 | "showValues": false, |
| 1867 | "spanNulls": false, |
| 1868 | "stacking": { |
| 1869 | "group": "A", |
| 1870 | "mode": "none" |
| 1871 | }, |
| 1872 | "thresholdsStyle": { |
| 1873 | "mode": "off" |
| 1874 | } |
| 1875 | } |
| 1876 | }, |
| 1877 | "overrides": [] |
| 1878 | } |
| 1879 | } |
| 1880 | } |
| 1881 | } |
| 1882 | }, |
| 1883 | "panel-9": { |
| 1884 | "kind": "Panel", |
| 1885 | "spec": { |
| 1886 | "id": 9, |
| 1887 | "title": "SMB: клиентов сейчас", |
| 1888 | "description": "Текущее число подключённых SMB-клиентов (последний опрос smbstatus -v, первый блок).", |
| 1889 | "links": [], |
| 1890 | "data": { |
| 1891 | "kind": "QueryGroup", |
| 1892 | "spec": { |
| 1893 | "queries": [ |
| 1894 | { |
| 1895 | "kind": "PanelQuery", |
| 1896 | "spec": { |
| 1897 | "query": { |
| 1898 | "kind": "DataQuery", |
| 1899 | "group": "influxdb", |
| 1900 | "version": "v0", |
| 1901 | "spec": { |
| 1902 | "alias": "clients", |
| 1903 | "groupBy": [ |
| 1904 | { |
| 1905 | "params": [ |
| 1906 | "$interval" |
| 1907 | ], |
| 1908 | "type": "time" |
| 1909 | }, |
| 1910 | { |
| 1911 | "params": [ |
| 1912 | "null" |
| 1913 | ], |
| 1914 | "type": "fill" |
| 1915 | } |
| 1916 | ], |
| 1917 | "measurement": "samba_clients", |
| 1918 | "orderByTime": "ASC", |
| 1919 | "policy": "default", |
| 1920 | "query": "SELECT last(\"count\") FROM \"samba_clients\" WHERE $timeFilter GROUP BY time($interval) fill(null)", |
| 1921 | "rawQuery": false, |
| 1922 | "resultFormat": "time_series", |
| 1923 | "select": [ |
| 1924 | [ |
| 1925 | { |
| 1926 | "params": [ |
| 1927 | "count" |
| 1928 | ], |
| 1929 | "type": "field" |
| 1930 | }, |
| 1931 | { |
| 1932 | "params": [], |
| 1933 | "type": "last" |
| 1934 | } |
| 1935 | ] |
| 1936 | ], |
| 1937 | "tags": [] |
| 1938 | }, |
| 1939 | "labels": { |
| 1940 | "grafana.app/export-label": "influxdb-1" |
| 1941 | } |
| 1942 | }, |
| 1943 | "refId": "A", |
| 1944 | "hidden": false |
| 1945 | } |
| 1946 | } |
| 1947 | ], |
| 1948 | "transformations": [], |
| 1949 | "queryOptions": {} |
| 1950 | } |
| 1951 | }, |
| 1952 | "vizConfig": { |
| 1953 | "kind": "VizConfig", |
| 1954 | "group": "stat", |
| 1955 | "version": "13.0.1+security-01", |
| 1956 | "spec": { |
| 1957 | "options": { |
| 1958 | "colorMode": "value", |
| 1959 | "graphMode": "area", |
| 1960 | "justifyMode": "auto", |
| 1961 | "orientation": "auto", |
| 1962 | "percentChangeColorMode": "standard", |
| 1963 | "reduceOptions": { |
| 1964 | "calcs": [ |
| 1965 | "lastNotNull" |
| 1966 | ], |
| 1967 | "fields": "", |
| 1968 | "values": false |
| 1969 | }, |
| 1970 | "showPercentChange": false, |
| 1971 | "textMode": "auto", |
| 1972 | "wideLayout": true |
| 1973 | }, |
| 1974 | "fieldConfig": { |
| 1975 | "defaults": { |
| 1976 | "unit": "none", |
| 1977 | "thresholds": { |
| 1978 | "mode": "absolute", |
| 1979 | "steps": [ |
| 1980 | { |
| 1981 | "value": 0, |
| 1982 | "color": "green" |
| 1983 | }, |
| 1984 | { |
| 1985 | "value": null, |
| 1986 | "color": "red" |
| 1987 | } |
| 1988 | ] |
| 1989 | }, |
| 1990 | "color": { |
| 1991 | "mode": "palette-classic" |
| 1992 | } |
| 1993 | }, |
| 1994 | "overrides": [] |
| 1995 | } |
| 1996 | } |
| 1997 | } |
| 1998 | } |
| 1999 | } |
| 2000 | }, |
| 2001 | "layout": { |
| 2002 | "kind": "GridLayout", |
| 2003 | "spec": { |
| 2004 | "items": [ |
| 2005 | { |
| 2006 | "kind": "GridLayoutItem", |
| 2007 | "spec": { |
| 2008 | "x": 0, |
| 2009 | "y": 0, |
| 2010 | "width": 11, |
| 2011 | "height": 9, |
| 2012 | "element": { |
| 2013 | "kind": "ElementReference", |
| 2014 | "name": "panel-11" |
| 2015 | } |
| 2016 | } |
| 2017 | }, |
| 2018 | { |
| 2019 | "kind": "GridLayoutItem", |
| 2020 | "spec": { |
| 2021 | "x": 11, |
| 2022 | "y": 0, |
| 2023 | "width": 13, |
| 2024 | "height": 9, |
| 2025 | "element": { |
| 2026 | "kind": "ElementReference", |
| 2027 | "name": "panel-1" |
| 2028 | } |
| 2029 | } |
| 2030 | }, |
| 2031 | { |
| 2032 | "kind": "GridLayoutItem", |
| 2033 | "spec": { |
| 2034 | "x": 0, |
| 2035 | "y": 9, |
| 2036 | "width": 12, |
| 2037 | "height": 7, |
| 2038 | "element": { |
| 2039 | "kind": "ElementReference", |
| 2040 | "name": "panel-7" |
| 2041 | } |
| 2042 | } |
| 2043 | }, |
| 2044 | { |
| 2045 | "kind": "GridLayoutItem", |
| 2046 | "spec": { |
| 2047 | "x": 12, |
| 2048 | "y": 9, |
| 2049 | "width": 12, |
| 2050 | "height": 7, |
| 2051 | "element": { |
| 2052 | "kind": "ElementReference", |
| 2053 | "name": "panel-8" |
| 2054 | } |
| 2055 | } |
| 2056 | }, |
| 2057 | { |
| 2058 | "kind": "GridLayoutItem", |
| 2059 | "spec": { |
| 2060 | "x": 0, |
| 2061 | "y": 16, |
| 2062 | "width": 12, |
| 2063 | "height": 8, |
| 2064 | "element": { |
| 2065 | "kind": "ElementReference", |
| 2066 | "name": "panel-2" |
| 2067 | } |
| 2068 | } |
| 2069 | }, |
| 2070 | { |
| 2071 | "kind": "GridLayoutItem", |
| 2072 | "spec": { |
| 2073 | "x": 12, |
| 2074 | "y": 16, |
| 2075 | "width": 12, |
| 2076 | "height": 8, |
| 2077 | "element": { |
| 2078 | "kind": "ElementReference", |
| 2079 | "name": "panel-3" |
| 2080 | } |
| 2081 | } |
| 2082 | }, |
| 2083 | { |
| 2084 | "kind": "GridLayoutItem", |
| 2085 | "spec": { |
| 2086 | "x": 0, |
| 2087 | "y": 24, |
| 2088 | "width": 12, |
| 2089 | "height": 8, |
| 2090 | "element": { |
| 2091 | "kind": "ElementReference", |
| 2092 | "name": "panel-4" |
| 2093 | } |
| 2094 | } |
| 2095 | }, |
| 2096 | { |
| 2097 | "kind": "GridLayoutItem", |
| 2098 | "spec": { |
| 2099 | "x": 12, |
| 2100 | "y": 24, |
| 2101 | "width": 12, |
| 2102 | "height": 8, |
| 2103 | "element": { |
| 2104 | "kind": "ElementReference", |
| 2105 | "name": "panel-5" |
| 2106 | } |
| 2107 | } |
| 2108 | }, |
| 2109 | { |
| 2110 | "kind": "GridLayoutItem", |
| 2111 | "spec": { |
| 2112 | "x": 0, |
| 2113 | "y": 32, |
| 2114 | "width": 12, |
| 2115 | "height": 8, |
| 2116 | "element": { |
| 2117 | "kind": "ElementReference", |
| 2118 | "name": "panel-6" |
| 2119 | } |
| 2120 | } |
| 2121 | }, |
| 2122 | { |
| 2123 | "kind": "GridLayoutItem", |
| 2124 | "spec": { |
| 2125 | "x": 0, |
| 2126 | "y": 40, |
| 2127 | "width": 6, |
| 2128 | "height": 8, |
| 2129 | "element": { |
| 2130 | "kind": "ElementReference", |
| 2131 | "name": "panel-9" |
| 2132 | } |
| 2133 | } |
| 2134 | }, |
| 2135 | { |
| 2136 | "kind": "GridLayoutItem", |
| 2137 | "spec": { |
| 2138 | "x": 6, |
| 2139 | "y": 40, |
| 2140 | "width": 18, |
| 2141 | "height": 8, |
| 2142 | "element": { |
| 2143 | "kind": "ElementReference", |
| 2144 | "name": "panel-10" |
| 2145 | } |
| 2146 | } |
| 2147 | } |
| 2148 | ] |
| 2149 | } |
| 2150 | }, |
| 2151 | "links": [], |
| 2152 | "liveNow": false, |
| 2153 | "preload": false, |
| 2154 | "tags": [ |
| 2155 | "samba", |
| 2156 | "ad", |
| 2157 | "audit" |
| 2158 | ], |
| 2159 | "timeSettings": { |
| 2160 | "timezone": "browser", |
| 2161 | "from": "now-6h", |
| 2162 | "to": "now", |
| 2163 | "autoRefresh": "", |
| 2164 | "autoRefreshIntervals": [ |
| 2165 | "5s", |
| 2166 | "10s", |
| 2167 | "30s", |
| 2168 | "1m", |
| 2169 | "5m", |
| 2170 | "15m", |
| 2171 | "30m", |
| 2172 | "1h", |
| 2173 | "2h", |
| 2174 | "1d" |
| 2175 | ], |
| 2176 | "hideTimepicker": false, |
| 2177 | "fiscalYearStartMonth": 0 |
| 2178 | }, |
| 2179 | "title": "Samba AD audit2", |
| 2180 | "variables": [ |
| 2181 | { |
| 2182 | "kind": "IntervalVariable", |
| 2183 | "spec": { |
| 2184 | "name": "interval", |
| 2185 | "query": "1s,3s,5s,10s,30s,1m,10m,30m,1h,6h,12h,1d,7d,14d,30d", |
| 2186 | "current": { |
| 2187 | "text": "1m", |
| 2188 | "value": "1m" |
| 2189 | }, |
| 2190 | "options": [ |
| 2191 | { |
| 2192 | "selected": true, |
| 2193 | "text": "1m", |
| 2194 | "value": "1m" |
| 2195 | }, |
| 2196 | { |
| 2197 | "selected": false, |
| 2198 | "text": "10m", |
| 2199 | "value": "10m" |
| 2200 | }, |
| 2201 | { |
| 2202 | "selected": false, |
| 2203 | "text": "30m", |
| 2204 | "value": "30m" |
| 2205 | }, |
| 2206 | { |
| 2207 | "selected": false, |
| 2208 | "text": "1h", |
| 2209 | "value": "1h" |
| 2210 | }, |
| 2211 | { |
| 2212 | "selected": false, |
| 2213 | "text": "6h", |
| 2214 | "value": "6h" |
| 2215 | }, |
| 2216 | { |
| 2217 | "selected": false, |
| 2218 | "text": "12h", |
| 2219 | "value": "12h" |
| 2220 | }, |
| 2221 | { |
| 2222 | "selected": false, |
| 2223 | "text": "1d", |
| 2224 | "value": "1d" |
| 2225 | } |
| 2226 | ], |
| 2227 | "auto": false, |
| 2228 | "auto_min": "10s", |
| 2229 | "auto_count": 30, |
| 2230 | "refresh": "onTimeRangeChanged", |
| 2231 | "hide": "dontHide", |
| 2232 | "skipUrlSync": false |
| 2233 | } |
| 2234 | } |
| 2235 | ], |
| 2236 | "preferences": { |
| 2237 | "layout": { |
| 2238 | "kind": "GridLayout", |
| 2239 | "spec": { |
| 2240 | "items": [] |
| 2241 | } |
| 2242 | } |
| 2243 | } |
| 2244 | } |
| 2245 | } |