608 lines
17 KiB
JSON
608 lines
17 KiB
JSON
{
|
|
"__inputs": [],
|
|
"annotations": {
|
|
"list": []
|
|
},
|
|
"description": "",
|
|
"editable": true,
|
|
"gnetId": null,
|
|
"graphTooltip": 0,
|
|
"hideControls": false,
|
|
"id": null,
|
|
"links": [],
|
|
"panels": [],
|
|
"refresh": "5s",
|
|
"rows": [
|
|
{
|
|
"collapse": false,
|
|
"editable": true,
|
|
"height": "250px",
|
|
"panels": [
|
|
{
|
|
"cacheTimeout": null,
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"columns": [],
|
|
"datasource": "${datasource}",
|
|
"description": null,
|
|
"editable": true,
|
|
"error": false,
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"custom": {
|
|
"align": "auto",
|
|
"displayMode": "auto",
|
|
"filterable": true
|
|
},
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": null
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 80
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Value #max_rate"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "displayName",
|
|
"value": "Max Rate"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Value #total"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "displayName",
|
|
"value": "Total"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Value #allow"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "displayName",
|
|
"value": "Allow"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "Value #deny_last_15m"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "displayName",
|
|
"value": "Deny last 15m"
|
|
},
|
|
{
|
|
"id": "thresholds",
|
|
"value": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": null
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 1
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "custom.cellOptions",
|
|
"value": {
|
|
"mode": "gradient",
|
|
"type": "color-background"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"fontSize": "100%",
|
|
"gridPos": {
|
|
"h": 6,
|
|
"w": 10,
|
|
"x": 0,
|
|
"y": 42
|
|
},
|
|
"height": null,
|
|
"hideTimeOverride": false,
|
|
"id": 1,
|
|
"interval": null,
|
|
"links": [],
|
|
"mappings": [],
|
|
"maxDataPoints": 100,
|
|
"maxPerRow": null,
|
|
"minSpan": null,
|
|
"options": {
|
|
"showHeader": true
|
|
},
|
|
"repeat": null,
|
|
"repeatDirection": null,
|
|
"span": 6,
|
|
"targets": [
|
|
{
|
|
"datasource": null,
|
|
"expr": "max by(node, resource) (emqx_authentication_exec_max_rate{cluster=\"$cluster\", node=~\"$node\", resource=~\"$resource\"})",
|
|
"format": "table",
|
|
"hide": false,
|
|
"instant": true,
|
|
"interval": "",
|
|
"intervalFactor": 1,
|
|
"legendFormat": "Max Rate",
|
|
"metric": "",
|
|
"query": "max by(node, resource) (emqx_authentication_exec_max_rate{cluster=\"$cluster\", node=~\"$node\", resource=~\"$resource\"})",
|
|
"refId": "max_rate",
|
|
"step": 10,
|
|
"target": ""
|
|
},
|
|
{
|
|
"datasource": null,
|
|
"expr": "sum by(node, resource) (emqx_authentication_total{cluster=\"$cluster\", node=~\"$node\", resource=~\"$resource\"})",
|
|
"format": "table",
|
|
"hide": false,
|
|
"instant": true,
|
|
"interval": "",
|
|
"intervalFactor": 1,
|
|
"legendFormat": "Total",
|
|
"metric": "",
|
|
"query": "sum by(node, resource) (emqx_authentication_total{cluster=\"$cluster\", node=~\"$node\", resource=~\"$resource\"})",
|
|
"refId": "total",
|
|
"step": 10,
|
|
"target": ""
|
|
},
|
|
{
|
|
"datasource": null,
|
|
"expr": "sum by(node, resource) (emqx_authentication_allow_count{cluster=\"$cluster\", node=~\"$node\", resource=~\"$resource\"})",
|
|
"format": "table",
|
|
"hide": false,
|
|
"instant": true,
|
|
"interval": "",
|
|
"intervalFactor": 1,
|
|
"legendFormat": "Allow",
|
|
"metric": "",
|
|
"query": "sum by(node, resource) (emqx_authentication_allow_count{cluster=\"$cluster\", node=~\"$node\", resource=~\"$resource\"})",
|
|
"refId": "allow",
|
|
"step": 10,
|
|
"target": ""
|
|
},
|
|
{
|
|
"datasource": null,
|
|
"expr": "sum by(node, resource) (irate(emqx_authentication_deny_count{cluster=\"$cluster\", node=~\"$node\", resource=~\"$resource\"}[15m]))",
|
|
"format": "table",
|
|
"hide": false,
|
|
"instant": true,
|
|
"interval": "",
|
|
"intervalFactor": 1,
|
|
"legendFormat": "Deny last 15m",
|
|
"metric": "",
|
|
"query": "sum by(node, resource) (irate(emqx_authentication_deny_count{cluster=\"$cluster\", node=~\"$node\", resource=~\"$resource\"}[15m]))",
|
|
"refId": "deny_last_15m",
|
|
"step": 10,
|
|
"target": ""
|
|
}
|
|
],
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"title": "Authenticate Count",
|
|
"transformations": [
|
|
{
|
|
"id": "merge",
|
|
"options": {}
|
|
},
|
|
{
|
|
"id": "filterFieldsByName",
|
|
"options": {
|
|
"include": {
|
|
"names": [
|
|
"node",
|
|
"resource",
|
|
"Value #max_rate",
|
|
"Value #total",
|
|
"Value #allow",
|
|
"Value #deny_last_15m"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"transparent": false,
|
|
"type": "table"
|
|
},
|
|
{
|
|
"cacheTimeout": null,
|
|
"datasource": "${datasource}",
|
|
"description": null,
|
|
"editable": true,
|
|
"error": false,
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "palette-classic"
|
|
},
|
|
"custom": {
|
|
"axisLabel": "",
|
|
"axisPlacement": "auto",
|
|
"barAlignment": 0,
|
|
"drawStyle": "line",
|
|
"fillOpacity": 0,
|
|
"gradientMode": "opacity",
|
|
"hideFrom": {
|
|
"legend": false,
|
|
"tooltip": false,
|
|
"viz": false
|
|
},
|
|
"lineInterpolation": "linear",
|
|
"lineWidth": 1,
|
|
"pointSize": 5,
|
|
"scaleDistribution": {
|
|
"log": 2,
|
|
"type": "linear"
|
|
},
|
|
"showPoints": "never",
|
|
"spanNulls": false,
|
|
"stacking": {},
|
|
"thresholdsStyle": {
|
|
"mode": "off"
|
|
}
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": []
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 6,
|
|
"x": 0,
|
|
"y": 14
|
|
},
|
|
"height": null,
|
|
"hideTimeOverride": false,
|
|
"id": 2,
|
|
"interval": null,
|
|
"links": [],
|
|
"maxDataPoints": 100,
|
|
"maxPerRow": null,
|
|
"minSpan": null,
|
|
"options": {
|
|
"legend": {
|
|
"calcs": [],
|
|
"displayMode": "list",
|
|
"placement": "bottom"
|
|
},
|
|
"tooltip": {
|
|
"mode": "multi"
|
|
}
|
|
},
|
|
"repeat": null,
|
|
"repeatDirection": null,
|
|
"span": 4,
|
|
"targets": [
|
|
{
|
|
"datasource": null,
|
|
"expr": "sum by(node, resource) (emqx_authentication_exec_rate{cluster=\"$cluster\", node=~\"$node\", resource=~\"$resource\"})",
|
|
"format": "timeseries",
|
|
"hide": false,
|
|
"instant": false,
|
|
"interval": "",
|
|
"intervalFactor": 1,
|
|
"legendFormat": "{{node}} {{resource}}",
|
|
"metric": "",
|
|
"query": "sum by(node, resource) (emqx_authentication_exec_rate{cluster=\"$cluster\", node=~\"$node\", resource=~\"$resource\"})",
|
|
"refId": "{{node}}_{{resource}}",
|
|
"step": 10,
|
|
"target": ""
|
|
}
|
|
],
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"title": "Authenticate Current Exec Rate",
|
|
"transformations": [],
|
|
"transparent": false,
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"cacheTimeout": null,
|
|
"datasource": "${datasource}",
|
|
"description": null,
|
|
"editable": true,
|
|
"error": false,
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "palette-classic"
|
|
},
|
|
"custom": {
|
|
"axisLabel": "",
|
|
"axisPlacement": "auto",
|
|
"barAlignment": 0,
|
|
"drawStyle": "line",
|
|
"fillOpacity": 0,
|
|
"gradientMode": "opacity",
|
|
"hideFrom": {
|
|
"legend": false,
|
|
"tooltip": false,
|
|
"viz": false
|
|
},
|
|
"lineInterpolation": "linear",
|
|
"lineWidth": 1,
|
|
"pointSize": 5,
|
|
"scaleDistribution": {
|
|
"log": 2,
|
|
"type": "linear"
|
|
},
|
|
"showPoints": "never",
|
|
"spanNulls": false,
|
|
"stacking": {},
|
|
"thresholdsStyle": {
|
|
"mode": "off"
|
|
}
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": []
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 6,
|
|
"x": 0,
|
|
"y": 14
|
|
},
|
|
"height": null,
|
|
"hideTimeOverride": false,
|
|
"id": 3,
|
|
"interval": null,
|
|
"links": [],
|
|
"maxDataPoints": 100,
|
|
"maxPerRow": null,
|
|
"minSpan": null,
|
|
"options": {
|
|
"legend": {
|
|
"calcs": [],
|
|
"displayMode": "list",
|
|
"placement": "bottom"
|
|
},
|
|
"tooltip": {
|
|
"mode": "multi"
|
|
}
|
|
},
|
|
"repeat": null,
|
|
"repeatDirection": null,
|
|
"span": 4,
|
|
"targets": [
|
|
{
|
|
"datasource": null,
|
|
"expr": "sum by(node, resource) (emqx_authentication_exec_last5m_rate{cluster=\"$cluster\", node=~\"$node\", resource=~\"$resource\"})",
|
|
"format": "timeseries",
|
|
"hide": false,
|
|
"instant": false,
|
|
"interval": "",
|
|
"intervalFactor": 1,
|
|
"legendFormat": "{{node}} {{resource}}",
|
|
"metric": "",
|
|
"query": "sum by(node, resource) (emqx_authentication_exec_last5m_rate{cluster=\"$cluster\", node=~\"$node\", resource=~\"$resource\"})",
|
|
"refId": "{{node}}_{{resource}}",
|
|
"step": 10,
|
|
"target": ""
|
|
}
|
|
],
|
|
"timeFrom": null,
|
|
"timeShift": null,
|
|
"title": "Authenticate Last 5m Exec Rate",
|
|
"transformations": [],
|
|
"transparent": false,
|
|
"type": "timeseries"
|
|
}
|
|
],
|
|
"repeat": null,
|
|
"showTitle": true,
|
|
"title": "Connect Auth Subchart"
|
|
}
|
|
],
|
|
"schemaVersion": 12,
|
|
"sharedCrosshair": false,
|
|
"style": "dark",
|
|
"tags": [
|
|
"EMQX",
|
|
"MQTT"
|
|
],
|
|
"templating": {
|
|
"list": [
|
|
{
|
|
"allValue": null,
|
|
"auto": false,
|
|
"auto_count": 30,
|
|
"auto_min": "10s",
|
|
"current": {
|
|
"selected": false,
|
|
"tags": [],
|
|
"text": null,
|
|
"value": null
|
|
},
|
|
"datasource": null,
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"label": "datasource",
|
|
"multi": false,
|
|
"name": "datasource",
|
|
"options": [],
|
|
"query": "prometheus",
|
|
"refresh": 1,
|
|
"regex": "",
|
|
"sort": 1,
|
|
"tagValuesQuery": null,
|
|
"tagsQuery": null,
|
|
"type": "datasource",
|
|
"useTags": false
|
|
},
|
|
{
|
|
"allValue": null,
|
|
"auto": false,
|
|
"auto_count": 30,
|
|
"auto_min": "10s",
|
|
"current": {
|
|
"selected": false,
|
|
"tags": [],
|
|
"text": null,
|
|
"value": null
|
|
},
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "${datasource}"
|
|
},
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"label": null,
|
|
"multi": false,
|
|
"name": "cluster",
|
|
"options": [],
|
|
"query": {
|
|
"query": "label_values(up, cluster)",
|
|
"refId": "StandardVariableQuery"
|
|
},
|
|
"refresh": 1,
|
|
"regex": "",
|
|
"sort": 2,
|
|
"tagValuesQuery": null,
|
|
"tagsQuery": null,
|
|
"type": "query",
|
|
"useTags": false
|
|
},
|
|
{
|
|
"allValue": null,
|
|
"auto": false,
|
|
"auto_count": 30,
|
|
"auto_min": "10s",
|
|
"current": {
|
|
"selected": false,
|
|
"tags": [],
|
|
"text": null,
|
|
"value": null
|
|
},
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "${datasource}"
|
|
},
|
|
"hide": 0,
|
|
"includeAll": true,
|
|
"label": null,
|
|
"multi": true,
|
|
"name": "node",
|
|
"options": [],
|
|
"query": {
|
|
"query": "label_values({cluster=\"$cluster\", from=\"exporter\"}, node)",
|
|
"refId": "StandardVariableQuery"
|
|
},
|
|
"refresh": 2,
|
|
"regex": "",
|
|
"sort": 1,
|
|
"tagValuesQuery": null,
|
|
"tagsQuery": null,
|
|
"type": "query",
|
|
"useTags": false
|
|
},
|
|
{
|
|
"allValue": null,
|
|
"auto": false,
|
|
"auto_count": 30,
|
|
"auto_min": "10s",
|
|
"current": {
|
|
"selected": false,
|
|
"tags": [],
|
|
"text": null,
|
|
"value": null
|
|
},
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "${datasource}"
|
|
},
|
|
"hide": 0,
|
|
"includeAll": true,
|
|
"label": null,
|
|
"multi": true,
|
|
"name": "resource",
|
|
"options": [],
|
|
"query": {
|
|
"query": "label_values(emqx_authentication_resource_status{cluster=\"$cluster\"}, resource)",
|
|
"refId": "StandardVariableQuery"
|
|
},
|
|
"refresh": 1,
|
|
"regex": "",
|
|
"sort": 1,
|
|
"tagValuesQuery": null,
|
|
"tagsQuery": null,
|
|
"type": "query",
|
|
"useTags": false
|
|
}
|
|
]
|
|
},
|
|
"time": {
|
|
"from": "now-5m",
|
|
"to": "now"
|
|
},
|
|
"timepicker": {
|
|
"hidden": false,
|
|
"refresh_intervals": [
|
|
"5s",
|
|
"10s",
|
|
"30s",
|
|
"1m",
|
|
"5m",
|
|
"15m",
|
|
"30m",
|
|
"1h",
|
|
"2h",
|
|
"1d"
|
|
],
|
|
"time_options": [
|
|
"5m",
|
|
"15m",
|
|
"1h",
|
|
"6h",
|
|
"12h",
|
|
"24h",
|
|
"2d",
|
|
"7d",
|
|
"30d"
|
|
]
|
|
},
|
|
"timezone": "utc",
|
|
"title": "Connect Auth Subchart",
|
|
"uid": "authentication",
|
|
"version": 0
|
|
}
|