1
0
Fork 0
grafana-dashboards/emqx/rule-engine-count.json

996 lines
29 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 #topic_hit_cout"
},
"properties": [
{
"id": "displayName",
"value": "Topic Hit Cout"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #max_rate"
},
"properties": [
{
"id": "displayName",
"value": "Max Rate"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #exec_pass"
},
"properties": [
{
"id": "displayName",
"value": "Exec Pass"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #exec_exception_last_15m"
},
"properties": [
{
"id": "displayName",
"value": "Exec Exception 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"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #exec_no_result_15m"
},
"properties": [
{
"id": "displayName",
"value": "Exec No Result 15m"
},
{
"id": "thresholds",
"value": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "orange",
"value": 1
}
]
}
},
{
"id": "custom.cellOptions",
"value": {
"mode": "gradient",
"type": "color-background"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #call_action_total"
},
"properties": [
{
"id": "displayName",
"value": "Call Action Total"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #action_success"
},
"properties": [
{
"id": "displayName",
"value": "Action Success"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #action_failed_last_15m"
},
"properties": [
{
"id": "displayName",
"value": "Action Failed 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": 12,
"targets": [
{
"datasource": null,
"expr": "sum by(node, rule) (emqx_rule_topic_hit_count{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"})",
"format": "table",
"hide": false,
"instant": true,
"interval": "",
"intervalFactor": 1,
"legendFormat": "Topic Hit Cout",
"metric": "",
"query": "sum by(node, rule) (emqx_rule_topic_hit_count{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"})",
"refId": "topic_hit_cout",
"step": 10,
"target": ""
},
{
"datasource": null,
"expr": "max by(node, rule) (emqx_rule_exec_max_rate{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"})",
"format": "table",
"hide": false,
"instant": true,
"interval": "",
"intervalFactor": 1,
"legendFormat": "Max Rate",
"metric": "",
"query": "max by(node, rule) (emqx_rule_exec_max_rate{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"})",
"refId": "max_rate",
"step": 10,
"target": ""
},
{
"datasource": null,
"expr": "sum by(node, rule) (emqx_rule_exec_pass_count{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"})",
"format": "table",
"hide": false,
"instant": true,
"interval": "",
"intervalFactor": 1,
"legendFormat": "Exec Pass",
"metric": "",
"query": "sum by(node, rule) (emqx_rule_exec_pass_count{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"})",
"refId": "exec_pass",
"step": 10,
"target": ""
},
{
"datasource": null,
"expr": "sum by(node, rule) (irate(emqx_rule_exec_failure_count{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"}[15m]))",
"format": "table",
"hide": false,
"instant": true,
"interval": "",
"intervalFactor": 1,
"legendFormat": "Exec Exception last 15m",
"metric": "",
"query": "sum by(node, rule) (irate(emqx_rule_exec_failure_count{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"}[15m]))",
"refId": "exec_exception_last_15m",
"step": 10,
"target": ""
},
{
"datasource": null,
"expr": "sum by(node, rule) (emqx_rule_exec_no_result_count{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"})",
"format": "table",
"hide": false,
"instant": true,
"interval": "",
"intervalFactor": 1,
"legendFormat": "Exec No Result 15m",
"metric": "",
"query": "sum by(node, rule) (emqx_rule_exec_no_result_count{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"})",
"refId": "exec_no_result_15m",
"step": 10,
"target": ""
},
{
"datasource": null,
"expr": "sum by(node, rule) (emqx_rule_action_total{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"})",
"format": "table",
"hide": false,
"instant": true,
"interval": "",
"intervalFactor": 1,
"legendFormat": "Call Action Total",
"metric": "",
"query": "sum by(node, rule) (emqx_rule_action_total{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"})",
"refId": "call_action_total",
"step": 10,
"target": ""
},
{
"datasource": null,
"expr": "sum by(node, rule) (emqx_rule_action_success{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"})",
"format": "table",
"hide": false,
"instant": true,
"interval": "",
"intervalFactor": 1,
"legendFormat": "Action Success",
"metric": "",
"query": "sum by(node, rule) (emqx_rule_action_success{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"})",
"refId": "action_success",
"step": 10,
"target": ""
},
{
"datasource": null,
"expr": "sum by(node, rule) (increase(emqx_rule_action_failed{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"}[15m]))",
"format": "table",
"hide": false,
"instant": true,
"interval": "",
"intervalFactor": 1,
"legendFormat": "Action Failed last 15m",
"metric": "",
"query": "sum by(node, rule) (increase(emqx_rule_action_failed{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"}[15m]))",
"refId": "action_failed_last_15m",
"step": 10,
"target": ""
}
],
"timeFrom": null,
"timeShift": null,
"title": "Rule Engine Execute Count",
"transformations": [
{
"id": "merge",
"options": {}
},
{
"id": "filterFieldsByName",
"options": {
"include": {
"names": [
"node",
"rule",
"Value #topic_hit_cout",
"Value #max_rate",
"Value #exec_pass",
"Value #exec_exception_last_15m",
"Value #exec_no_result_15m",
"Value #call_action_total",
"Value #action_success",
"Value #action_failed_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": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"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": 3,
"targets": [
{
"datasource": null,
"expr": "sum by(rule) (irate(emqx_rule_exec_pass_count{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"}[$__rate_interval]))",
"format": "timeseries",
"hide": false,
"instant": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{ node }}:{{ rule }}",
"metric": "",
"query": "sum by(rule) (irate(emqx_rule_exec_pass_count{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"}[$__rate_interval]))",
"refId": "{{_node_}}:{{_rule_}}",
"step": 10,
"target": ""
}
],
"timeFrom": null,
"timeShift": null,
"title": "Rule Engine Exec Success",
"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": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"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": 3,
"targets": [
{
"datasource": null,
"expr": "sum by(rule) (irate(emqx_rule_exec_failure_count{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"}[$__rate_interval]))",
"format": "timeseries",
"hide": false,
"instant": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{ node }}:{{ rule }}",
"metric": "",
"query": "sum by(rule) (irate(emqx_rule_exec_failure_count{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"}[$__rate_interval]))",
"refId": "{{_node_}}:{{_rule_}}",
"step": 10,
"target": ""
}
],
"timeFrom": null,
"timeShift": null,
"title": "Rule Engine Exec Failure",
"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": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 0,
"y": 14
},
"height": null,
"hideTimeOverride": false,
"id": 4,
"interval": null,
"links": [],
"maxDataPoints": 100,
"maxPerRow": null,
"minSpan": null,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "multi"
}
},
"repeat": null,
"repeatDirection": null,
"span": 3,
"targets": [
{
"datasource": null,
"expr": "sum by(rule) (irate(emqx_rule_action_success{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"}[$__rate_interval]))",
"format": "timeseries",
"hide": false,
"instant": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{ node }}:{{ rule }}",
"metric": "",
"query": "sum by(rule) (irate(emqx_rule_action_success{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"}[$__rate_interval]))",
"refId": "{{_node_}}:{{_rule_}}",
"step": 10,
"target": ""
}
],
"timeFrom": null,
"timeShift": null,
"title": "Rule Engine Action Success",
"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": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 0,
"y": 14
},
"height": null,
"hideTimeOverride": false,
"id": 5,
"interval": null,
"links": [],
"maxDataPoints": 100,
"maxPerRow": null,
"minSpan": null,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "multi"
}
},
"repeat": null,
"repeatDirection": null,
"span": 3,
"targets": [
{
"datasource": null,
"expr": "sum by(rule) (irate(emqx_rule_action_success{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"}[$__rate_interval]))",
"format": "timeseries",
"hide": false,
"instant": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{ node }}:{{ rule }}",
"metric": "",
"query": "sum by(rule) (irate(emqx_rule_action_success{cluster=\"$cluster\", node=~\"$node\", rule=~\"$rule\"}[$__rate_interval]))",
"refId": "{{_node_}}:{{_rule_}}",
"step": 10,
"target": ""
}
],
"timeFrom": null,
"timeShift": null,
"title": "Rule Engine Action Failure",
"transformations": [],
"transparent": false,
"type": "timeseries"
}
],
"repeat": null,
"showTitle": true,
"title": "Rule Engine Count 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": "Rule Engine Count Subchart",
"uid": "rule-engine-count",
"version": 0
}