{
"annotations": {
"list": [
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
}
]
"description": "Nacos grafana dashboard",
"editable": true,
"fiscalYearStartMonth": 0,
"gnetId": 13221,
"graphTooltip": 0,
"id": 9,
"links": [
"icon": "external link",
"targetBlank": true,
"title": "Monitor Guide",
"type": "link",
"url": "https://nacos.io/zh-cn/docs/monitor-guide.html"
],
"liveNow": false,
"panels": [
"collapsed": false,
"type": "prometheus"
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
"id": 80,
"panels": [],
"targets": [
"refId": "A"
"title": "nacos monitor",
"type": "row"
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
"mappings": [
"options": {
"match": "null",
"result": {
"text": "N/A"
"type": "special"
"thresholds": {
"mode": "absolute",
"steps": [
"color": "green",
"value": null
"color": "red",
"value": 80
"unit": "none"
"overrides": []
"h": 3,
"w": 3,
"y": 1
"id": 89,
"links": [],
"maxDataPoints": 100,
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
"fields": "",
"values": false
"textMode": "auto"
"pluginVersion": "9.2.4",
"expr": "count(nacos_monitor{name=\"configCount\"})",
"format": "time_series",
"intervalFactor": 1,
"title": "UP",
"type": "stat"
"x": 3,
"id": 90,
"expr": "max(nacos_monitor{name='serviceCount'})",
"title": "service count",
"x": 6,
"id": 93,
"expr": "max(nacos_monitor{name='ipCount'})",
"title": "ip count",
"x": 9,
"id": 92,
"expr": "max(nacos_monitor{name='configCount', instance=~'$instance'})",
"title": "config count",
"x": 12,
"id": 91,
"expr": "sum(nacos_monitor{name='longPolling'})",
"title": "long polling",
"x": 15,
"id": 88,
"expr": "sum(nacos_monitor{name='getConfig', instance=~'$instance'}) by (name)",
"title": "config push total",
"w": 6,
"x": 18,
"id": 82,
"code": {
"language": "plaintext",
"showLineNumbers": false,
"showMiniMap": false
"content": "<center>\n <a href=\"https://nacos.io\">\n <img src=\"https://s1.ax1x.com/2020/10/22/BiuZRO.png\" style=\"height: 50px; margin-top:20px\" />\n </a>\n</center>",
"mode": "html"
"type": "text"
"max": 100,
"min": 0,
"color": "#299c46",
"color": "rgba(237, 129, 40, 0.89)",
"value": 50
"color": "#d44a3a",
"h": 4,
"w": 9,
"y": 4
"id": 33,
"interval": "",
"showThresholdLabels": false,
"showThresholdMarkers": true
"repeatDirection": "h",
"expr": "max(system_cpu_usage{instance=~'$instance'}) * 100",
"legendFormat": "",
"title": "cpu",
"type": "gauge"
"max": 70,
"value": 70
"id": 32,
"expr": "sum(jvm_memory_used_bytes{area=\"heap\", instance=~'$instance'})/sum(jvm_memory_max_bytes{area=\"heap\", instance=~'$instance'}) * 100",
"title": "memory",
"dashboardFilter": "",
"h": 16,
"id": 48,
"limit": 10,
"nameFilter": "",
"onlyAlertsOnDashboard": false,
"alertInstanceLabelFilter": "",
"alertName": "",
"dashboardAlerts": false,
"groupBy": [],
"groupMode": "default",
"maxItems": 20,
"sortOrder": 1,
"stateFilter": {
"error": true,
"firing": true,
"noData": false,
"normal": false,
"pending": true
"viewMode": "list"
"show": "current",
"stateFilter": [],
"title": "alert list",
"type": "alertlist"
"max": 1500,
"value": 800
"value": 1500
"y": 8
"id": 29,
"expr": "max(jvm_threads_daemon_threads{instance=~'$instance'})",
"title": "threads",
"max": 20,
"value": 5
"value": 10
"id": 30,
"expr": "max(system_load_average_1m{instance=~'$instance'})",
"title": "load",
"max": 5000,
"value": 3000
"value": 5000
"y": 12
"id": 61,
"expr": "sum(rate(nacos_timer_seconds_sum{instance=~'$instance'}[1m]))/sum(rate(nacos_timer_seconds_count{instance=~'$instance'}[1m])) * 1000",
"title": "notify rt",
"id": 26,
"expr": "sum(rate(http_server_requests_seconds_sum{instance=~'$instance'}[1m]))/sum(rate(http_server_requests_seconds_count{instance=~'$instance'}[1m])) * 1000",
"title": "rt",
"max": 2000,
"value": 1000
"value": 2000
"y": 16
"id": 25,
"expr": "sum(rate(http_server_requests_seconds_count{instance=~'$instance'}[1m]))",
"title": "qps",
"id": 70,
"expr": "max(nacos_monitor{name='avgPushCost', instance=~'$instance'})",
"title": "avgPushCost",
"y": 20
"id": 78,
"title": "nacos detail",
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fill": 1,
"fillGradient": 0,
"h": 5,
"w": 8,
"y": 21
"hiddenSeries": false,
"id": 20,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"alertThreshold": true
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"expr": "sum(rate(http_server_requests_seconds_sum{uri=~'/v1/cs/configs|/nacos/v1/ns', instance=~'$instance'}[1m])/rate(http_server_requests_seconds_count{uri=~'/v1/cs/configs|/nacos/v1/ns/instance|/nacos/v1/ns/health', instance=~'$instance'}[1m])) by (method,uri) * 1000",
"hide": false,
"legendFormat": "all",
"refId": "B"
"thresholds": [],
"timeRegions": [],
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
"type": "graph",
"xaxis": {
"mode": "time",
"values": []
"yaxes": [
"format": "short",
"logBase": 1,
"show": true
"yaxis": {
"align": false
"x": 8,
"id": 41,
"repeat": "group",
"expr": "sum(nacos_monitor{name='longPolling', instance=~'$instance'})",
"label": "",
"x": 16,
"id": 37,
"title": "load 1m",
"custom": {}
"y": 26
"id": 18,
"pluginVersion": "7.2.1",
"expr": "sum(rate(http_server_requests_seconds_count{uri=~'/v1/cs/configs|/nacos/v1/ns/instance|/nacos/v1/ns/health', instance=~'$instance'}[1m])) by (method,uri)",
"expr": "sum(rate(http_server_requests_seconds_count[1m]))",
"id": 52,
"expr": "sum(nacos_monitor{name='leaderStatus', instance=~'$instance'})",
"title": "leaderStatus",
"id": 50,
"expr": "sum(nacos_monitor{name='avgPushCost', instance=~'$instance'})",
"y": 31
"id": 53,
"expr": "max(nacos_monitor{name='maxPushCost', instance=~'$instance'})",
"title": "maxPushCost",
"id": 83,
"expr": "sum(nacos_monitor{name='publish', instance=~'$instance'}) by (name)",
"legendFormat": "publish config",
"legendFormat": "get config",
"title": "config statistics",
"id": 16,
"expr": "sum(rate(nacos_monitor{name=~'.*HealthCheck', instance=~'$instance'}[1m])) by (name) * 60",
"title": "health check",
"y": 36
"id": 74,
"title": "nacos alert",
"alert": {
"conditions": [
"evaluator": {
"params": [
50
"type": "gt"
"operator": {
"type": "and"
"query": {
"A",
"1m",
"now"
"reducer": {
"params": [],
"type": "avg"
"type": "query"
"executionErrorState": "keep_state",
"for": "1m",
"frequency": "1m",
"handler": 1,
"name": "cpu alert",
"noDataState": "ok",
"notifications": [
"id": 1
"y": 37
"id": 45,
"expr": "max(system_cpu_usage) * 100",
"thresholds": [
"colorMode": "critical",
"fill": true,
"line": true,
"op": "gt",
"title": "cpu alert",
15
"frequency": "60s",
"name": "load 1m alert",
"notifications": []
"id": 86,
"expr": "max(system_load_average_1m)",
"value": 15
"title": "load alert",
60
"5m",
"name": "memory alert",
"id": 46,
"expr": "sum(jvm_memory_used_bytes{area=\"heap\"})/sum(jvm_memory_max_bytes{area=\"heap\"}) * 100",
"value": 60
"title": "memory alert",
500
"name": "threads alert",
"y": 42
"id": 39,
"expr": "max(jvm_threads_daemon_threads)",
"value": 500
"title": "threads alert",
5
"message": "too many full gc",
"name": "gc alert",
"id": 38,
"expr": "max(rate(jvm_gc_pause_seconds_count{action=\"end of major GC\"}[5m])) * 300",
"title": "gc alert",
10
"name": "notify task alert",
"id": 49,
"expr": "sum(nacos_monitor{name='notifyTask'})",
"title": "notify task alert",
5000
"B",
"name": "rt alert",
"y": 47
"id": 85,
"expr": "sum(rate(http_server_requests_seconds_sum[1m]))/sum(rate(http_server_requests_seconds_count[1m])) * 1000",
"title": "rt alert",
"name": "long polling alert",
"id": 84,
"expr": "max(nacos_monitor{name='longPolling'})",
"title": "long polling alert",
1
"name": "config unhealth exception alert",
"id": 56,
"expr": "sum(rate(nacos_exception_total{name='unhealth'}[1m])) * 60",
"value": 1
"title": "config unhealth exception alert",
"name": "db exception alert",
"y": 52
"id": 54,
"expr": "sum(rate(nacos_exception_total{name='db'}[1m])) * 60",
"title": "db exception alert",
"name": "failedPush alert",
"id": 51,
"expr": "sum(nacos_monitor{name='failedPush'})",
"title": "failed push alert",
"name": "illegalArgument exception alert",
"id": 59,
"expr": "sum(rate(nacos_exception_total{name='illegalArgument'}[1m])) * 60",
"title": "illegalArgument exception alert",
"name": "naming disk exception alert",
"y": 57
"id": 57,
"expr": "sum(rate(nacos_exception_total{name='disk'}[1m])) * 60",
"title": "naming disk exception alert",
"name": "config notify exception alert",
"id": 55,
"expr": "sum(rate(nacos_exception_total{name='configNotify'}[1m])) * 60",
"title": "config notify exception alert",
"name": "naming leader send beat failed exception alert",
"id": 58,
"expr": "sum(rate(nacos_exception_total{name='leaderSendBeatFailed'}[1m])) * 60",
"title": "naming leader send beat failed exception alert",
"name": "nacos_exception alert",
"y": 62
"id": 60,
"expr": "sum(rate(nacos_exception_total{name='nacos'}[1m])) * 60",
"title": "nacos exception alert",
"refresh": false,
"schemaVersion": 37,
"style": "dark",
"templating": {
"allValue": "",
"current": {
"selected": false,
"text": "127.0.0.1:8848",
"value": "127.0.0.1:8848"
"definition": "label_values(jvm_classes_loaded_classes{job=\"Nacos\"},instance)",
"hide": 0,
"includeAll": false,
"label": "instance",
"multi": false,
"name": "instance",
"options": [],
"query": "label_values(jvm_classes_loaded_classes{job=\"Nacos\"},instance)",
"refId": "StandardVariableQuery"
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
"time": {
"from": "now-5m",
"to": "now"
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"15m",
"30m",
"1h",
"2h",
"1d"
"time_options": [
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
"timezone": "",
"title": "Nacos",
"uid": "Bz_QALEiz1",
"version": 7,
"weekStart": ""