Skip to content

Instantly share code, notes, and snippets.

@zhangli2946
Created March 25, 2019 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhangli2946/b20e7f4921d77b3a4885707dfa506e0d to your computer and use it in GitHub Desktop.
Save zhangli2946/b20e7f4921d77b3a4885707dfa506e0d to your computer and use it in GitHub Desktop.
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "EMQ Exporter",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__requires": [
{
"type": "panel",
"id": "alertlist",
"name": "Alert List",
"version": "5.0.0"
},
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "5.4.3"
},
{
"type": "panel",
"id": "graph",
"name": "Graph",
"version": "5.0.0"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "5.0.0"
},
{
"type": "panel",
"id": "singlestat",
"name": "Singlestat",
"version": "5.0.0"
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "EMQ Status",
"editable": true,
"gnetId": 9963,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 42,
"panels": [],
"title": "基础信息",
"type": "row"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorPostfix": false,
"colorPrefix": false,
"colorValue": true,
"colors": [
"#bf1b00",
"rgba(237, 129, 40, 0.89)",
"#629e51"
],
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 4,
"x": 0,
"y": 1
},
"id": 4,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "__name__",
"targets": [
{
"expr": "emq_up",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"thresholds": "0,1",
"title": "EMQ 运行状态",
"transparent": true,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "运行中",
"value": "1"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 3,
"x": 4,
"y": 1
},
"id": 12,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"expr": "emq_monitoring_nodes_clients",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"thresholds": "",
"title": "EMQ 客户端连接数",
"transparent": true,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"format": "decbytes",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 4,
"x": 7,
"y": 1
},
"id": 38,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"expr": "emq_monitoring_metrics_bytes_received",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"thresholds": "",
"title": "EMQ 接收流量",
"transparent": true,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorPostfix": false,
"colorPrefix": false,
"colorValue": true,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"decimals": 0,
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 6,
"x": 11,
"y": 1
},
"id": 10,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "次",
"postfixFontSize": "30%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"expr": "emq_exporter_total_scrapes",
"format": "time_series",
"intervalFactor": 2,
"refId": "A"
}
],
"thresholds": "",
"title": "EMQ 采样次数",
"transparent": true,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"fill": 1,
"gridPos": {
"h": 7,
"w": 7,
"x": 17,
"y": 1
},
"id": 18,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": false,
"linewidth": 1,
"links": [],
"nullPointMode": "null as zero",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "irate(emq_monitoring_metrics_packets_connect[2m])",
"format": "time_series",
"hide": false,
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "connect",
"refId": "B"
},
{
"expr": "irate(emq_monitoring_metrics_packets_disconnect[2m])",
"format": "time_series",
"hide": false,
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "disconnect",
"refId": "C"
},
{
"expr": "irate(emq_monitoring_metrics_packets_connack[2m])",
"format": "time_series",
"hide": false,
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "connack",
"refId": "F"
},
{
"expr": "irate(emq_monitoring_metrics_packets_subscribe[2m])",
"format": "time_series",
"hide": false,
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "subscribe",
"refId": "A"
},
{
"expr": "irate(emq_monitoring_metrics_packets_suback[2m])",
"format": "time_series",
"hide": false,
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "suback",
"refId": "G"
},
{
"expr": "irate(emq_monitoring_metrics_packets_unsubscribe[2m])",
"format": "time_series",
"hide": false,
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "unsubscribe",
"refId": "H"
},
{
"expr": "irate(emq_monitoring_metrics_packets_unsuback[2m])",
"format": "time_series",
"hide": false,
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "unsuback",
"refId": "I"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "EMQ 功能消息",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": true,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"format": "percentunit",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 5,
"w": 4,
"x": 0,
"y": 3
},
"id": 6,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": true
},
"tableColumn": "",
"targets": [
{
"expr": "( emq_monitoring_nodes_memory_used / emq_monitoring_nodes_memory_total )",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"refId": "A"
}
],
"thresholds": "",
"title": "EMQ 内存使用率",
"transparent": true,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 3,
"x": 4,
"y": 3
},
"id": 32,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"expr": "emq_monitoring_stats_sessions_count",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"thresholds": "",
"title": "EMQ Session 计数",
"transparent": true,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"format": "decbytes",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 2,
"w": 4,
"x": 7,
"y": 3
},
"id": 36,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"expr": "emq_monitoring_metrics_bytes_sent",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "接收字节数",
"refId": "A"
}
],
"thresholds": "",
"title": "EMQ 发送流量",
"transparent": true,
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"alert": {
"conditions": [
{
"evaluator": {
"params": [
10000000
],
"type": "gt"
},
"operator": {
"type": "and"
},
"query": {
"params": [
"A",
"1m",
"now"
]
},
"reducer": {
"params": [],
"type": "avg"
},
"type": "query"
}
],
"executionErrorState": "alerting",
"for": "40s",
"frequency": "20s",
"handler": 1,
"name": "EMQ 瞬时上行流量",
"noDataState": "no_data",
"notifications": []
},
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fill": 1,
"gridPos": {
"h": 12,
"w": 6,
"x": 11,
"y": 3
},
"id": 8,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"hideEmpty": false,
"hideZero": false,
"max": true,
"min": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "null as zero",
"percentage": false,
"pointradius": 1,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "irate(emq_monitoring_metrics_bytes_sent[2m])",
"format": "time_series",
"instant": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "上传",
"refId": "A"
},
{
"expr": "irate(emq_monitoring_metrics_bytes_received[2m])",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "下载",
"refId": "C"
}
],
"thresholds": [
{
"colorMode": "critical",
"fill": true,
"line": true,
"op": "gt",
"value": 10000000
}
],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "EMQ 瞬时流量",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "Bps",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"alert": {
"conditions": [
{
"evaluator": {
"params": [
8
],
"type": "gt"
},
"operator": {
"type": "and"
},
"query": {
"params": [
"A",
"1m",
"now"
]
},
"reducer": {
"params": [],
"type": "max"
},
"type": "query"
}
],
"executionErrorState": "alerting",
"for": "2m",
"frequency": "20s",
"handler": 1,
"name": "1min 平均负载超过8 (0.05Hz-2min-1min)",
"noDataState": "alerting",
"notifications": []
},
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fill": 1,
"gridPos": {
"h": 10,
"w": 7,
"x": 4,
"y": 5
},
"id": 2,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "null as zero",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "emq_monitoring_nodes_load1",
"format": "time_series",
"interval": "10s",
"intervalFactor": 2,
"legendFormat": "1m",
"refId": "A"
},
{
"expr": "emq_monitoring_nodes_load5",
"format": "time_series",
"interval": "10s",
"intervalFactor": 2,
"legendFormat": "5m",
"refId": "B"
},
{
"expr": "emq_monitoring_nodes_load15",
"format": "time_series",
"interval": "10s",
"intervalFactor": 2,
"legendFormat": "15m",
"refId": "C"
}
],
"thresholds": [
{
"colorMode": "critical",
"fill": true,
"line": true,
"op": "gt",
"value": 8
}
],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "EMQ 平均负载",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"fill": 1,
"gridPos": {
"h": 7,
"w": 4,
"x": 0,
"y": 8
},
"id": 40,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"hideZero": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": true
},
"lines": false,
"linewidth": 1,
"links": [],
"nullPointMode": "null as zero",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "irate(emq_monitoring_metrics_packets_pingreq[2m])",
"format": "time_series",
"instant": false,
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "pingreq",
"refId": "A"
},
{
"expr": "irate(emq_monitoring_metrics_packets_pingresp[2m])",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "pingresp",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "EMQ Ping消息",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "none",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"dashboardFilter": "",
"dashboardTags": [],
"folderId": null,
"gridPos": {
"h": 7,
"w": 7,
"x": 17,
"y": 8
},
"id": 46,
"limit": "10",
"links": [],
"nameFilter": "",
"onlyAlertsOnDashboard": true,
"show": "current",
"sortOrder": 3,
"stateFilter": [],
"title": "告警项",
"transparent": true,
"type": "alertlist"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 15
},
"id": 44,
"panels": [],
"title": "消息监控",
"type": "row"
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"decimals": 2,
"fill": 2,
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 16
},
"id": 16,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"hideZero": false,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": false,
"linewidth": 3,
"links": [],
"nullPointMode": "null as zero",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "irate(emq_monitoring_metrics_messages_qos0_received[2m])",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "qos0_received",
"refId": "A"
},
{
"expr": "irate(emq_monitoring_metrics_messages_qos0_sent[2m])",
"format": "time_series",
"hide": false,
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "qos0_sent",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "QOS 0",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": false
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"decimals": 2,
"fill": 1,
"gridPos": {
"h": 20,
"w": 12,
"x": 12,
"y": 16
},
"id": 30,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": false,
"linewidth": 1,
"links": [],
"nullPointMode": "null as zero",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "irate(emq_monitoring_metrics_packets_pubcomp_received[2m])",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "pubcomp_received",
"refId": "A"
},
{
"expr": "irate(emq_monitoring_metrics_packets_pubcomp_sent[2m])",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "pubcomp_sent",
"refId": "B"
},
{
"expr": "irate(emq_monitoring_metrics_packets_pubcomp_missed[2m])",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "pubcomp_missed",
"refId": "C"
},
{
"expr": "irate(emq_monitoring_metrics_packets_pubrec_received[2m])\r\n",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "pubrec_received",
"refId": "D"
},
{
"expr": "irate(emq_monitoring_metrics_packets_pubrec_sent[2m])",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "pubrec_sent",
"refId": "E"
},
{
"expr": "irate(emq_monitoring_metrics_packets_pubrec_missed[2m])",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "pubrec_missed",
"refId": "F"
},
{
"expr": "irate(emq_monitoring_metrics_packets_pubrel_received[2m])\r\n",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "pubrel_received",
"refId": "G"
},
{
"expr": "irate(emq_monitoring_metrics_packets_pubrel_sent[2m])",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "pubrel_sent",
"refId": "H"
},
{
"expr": "irate(emq_monitoring_metrics_packets_pubrel_missed[2m])",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "pubrel_missed",
"refId": "I"
},
{
"expr": "irate(emq_monitoring_metrics_messages_qos2_sent[2m])",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "qos2_sent",
"refId": "J"
},
{
"expr": "irate(emq_monitoring_metrics_messages_qos2_received[2m])",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "qos2_received",
"refId": "K"
},
{
"expr": "irate(emq_monitoring_metrics_messages_qos2_dropped[2m])",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "qos2_dropped",
"refId": "L"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "QOS 2",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"decimals": 2,
"fill": 1,
"gridPos": {
"h": 11,
"w": 12,
"x": 0,
"y": 25
},
"id": 28,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": false,
"linewidth": 1,
"links": [],
"nullPointMode": "null as zero",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "irate(emq_monitoring_metrics_messages_qos1_sent[2m])",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "qos1_sent",
"refId": "A"
},
{
"expr": "irate(emq_monitoring_metrics_messages_qos1_received[2m])",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "qos1_received",
"refId": "B"
},
{
"expr": "irate(emq_monitoring_metrics_packets_puback_sent[2m])",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "puback_sent",
"refId": "C"
},
{
"expr": "irate(emq_monitoring_metrics_packets_puback_received[2m])",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "puback_received",
"refId": "D"
},
{
"expr": "irate(emq_monitoring_metrics_packets_puback_missed[2m])",
"format": "time_series",
"interval": "10s",
"intervalFactor": 4,
"legendFormat": "puback_missed",
"refId": "E"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "QOS 1",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": "10s",
"schemaVersion": 16,
"style": "dark",
"tags": [
"EMQ Exporter"
],
"templating": {
"list": []
},
"time": {
"from": "now-15m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "browser",
"title": "EMQ 服务指标看板",
"uid": "LQhSSf3ik",
"version": 64
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment