diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml
index f67837b7ae3f36fd6c5bf02bd21e8f1cafe29e06..17369a19dce04d51133c3fe4afc094abfd804474 100644
--- a/docker/docker-compose.yaml
+++ b/docker/docker-compose.yaml
@@ -90,7 +90,6 @@ services:
WAIT_HOSTS: mysql:3306, redis:6379
volumes:
- ./n9eetc:/app/etc
- - ./integrations:/app/integrations
ports:
- "17000:17000"
networks:
diff --git a/docker/integrations/elasticsearch/dashboards/elasticsearch_by_exporter.json b/docker/integrations/elasticsearch/dashboards/elasticsearch_by_exporter.json
index 4239069398d8fac71de411703d51eefd09ade2da..06c11de8321b64b36e9ca7aae7746977d7e14d94 100644
--- a/docker/integrations/elasticsearch/dashboards/elasticsearch_by_exporter.json
+++ b/docker/integrations/elasticsearch/dashboards/elasticsearch_by_exporter.json
@@ -1,3274 +1,3436 @@
{
- "name": "ElasticSearch",
- "tags": "Prometheus ElasticSearch ES",
- "ident": "",
- "configs": {
- "var": [
- {
- "name": "cluster",
- "definition": "label_values(elasticsearch_indices_docs,cluster)",
- "options": [
- "elasticsearch-cluster"
- ]
- },
- {
- "name": "instance",
- "definition": "label_values(elasticsearch_indices_docs{cluster=\"$cluster\", name!=\"\"},instance)",
- "options": [
- "10.206.0.7:9200"
- ]
- },
- {
- "name": "name",
- "definition": "label_values(elasticsearch_indices_docs{instance=\"$instance\",cluster=\"$cluster\", name!=\"\"},name)",
- "options": [
- "node-2",
- "node-1",
- "node-3"
- ],
- "multi": true,
- "allOption": true
- }
- ],
- "version": "2.0.0",
- "panels": [
- {
- "id": "7d06624d-28be-4586-a804-11ca2f036964",
- "type": "row",
- "name": "KPI",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0,
- "i": "7d06624d-28be-4586-a804-11ca2f036964"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_cluster_health_number_of_nodes{instance=\"$instance\",cluster=\"$cluster\"}"
- }
- ],
- "name": "Data Nodes",
- "description": "集群数据节点数量",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 3,
- "x": 6,
- "y": 1,
- "i": "ae1ebc12-8639-4812-b5ae-9391a0ec4dbc"
- },
- "id": "ae1ebc12-8639-4812-b5ae-9391a0ec4dbc"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_cluster_health_number_of_nodes{instance=\"$instance\",cluster=\"$cluster\"}"
- }
- ],
- "name": "Nodes",
- "description": "集群节点数量",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 3,
- "x": 3,
- "y": 1,
- "i": "8648c6f9-ab82-4067-a02c-eebe84ae3a96"
- },
- "id": "8648c6f9-ab82-4067-a02c-eebe84ae3a96"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum (elasticsearch_process_cpu_percent{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"} ) / count (elasticsearch_process_cpu_percent{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"} )"
- }
- ],
- "name": "CPU usage Avg",
- "description": "平均CPU使用率",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "special": 80,
- "from": 80
- },
- "result": {
- "color": "#f90606"
- }
- },
- {
- "type": "range",
- "match": {
- "special": 70,
- "from": 70
- },
- "result": {
- "color": "#f5ac0f"
- }
- },
- {
- "type": "range",
- "match": {
- "to": 70
- },
- "result": {
- "color": "#21c00c"
- }
- }
- ],
- "standardOptions": {
- "util": "percent"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 3,
- "x": 9,
- "y": 1,
- "i": "20bf6dec-36cb-4e3a-a096-275a33e791b9"
- },
- "id": "20bf6dec-36cb-4e3a-a096-275a33e791b9"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum (elasticsearch_jvm_memory_used_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}) / sum (elasticsearch_jvm_memory_max_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}) * 100"
- }
- ],
- "name": "JVM memory used Avg",
- "description": "平均JVM内存使用率",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "special": 80,
- "from": 80
- },
- "result": {
- "color": "#f12c09"
- }
- },
- {
- "type": "range",
- "match": {
- "from": 70,
- "to": 80
- },
- "result": {
- "color": "#fbca18"
- }
- },
- {
- "type": "range",
- "match": {
- "to": 70
- },
- "result": {
- "color": "#21c00c"
- }
- }
- ],
- "standardOptions": {
- "util": "percent"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 3,
- "x": 12,
- "y": 1,
- "i": "6380e6f2-3aec-4d56-a07a-efe6106c492f"
- },
- "id": "6380e6f2-3aec-4d56-a07a-efe6106c492f"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum (elasticsearch_process_open_files_count{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"})"
- }
- ],
- "name": "Open file descriptors",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 3,
- "x": 15,
- "y": 1,
- "i": "de70ff1e-5ad6-4d68-b961-10eb78840d90"
- },
- "id": "de70ff1e-5ad6-4d68-b961-10eb78840d90"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(elasticsearch_breakers_tripped{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"})"
- }
- ],
- "name": "Tripped for breakers",
- "description": "集群断路器阻断总数",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "special",
- "result": {
- "text": "",
- "color": "#21c00c"
- },
- "match": {
- "special": 0
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 3,
- "x": 18,
- "y": 1,
- "i": "88631ba2-b3d4-45e1-966a-9c3eb12a1d49"
- },
- "id": "88631ba2-b3d4-45e1-966a-9c3eb12a1d49"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_cluster_health_number_of_pending_tasks{instance=\"$instance\",cluster=\"$cluster\"}"
- }
- ],
- "name": "Pending tasks",
- "description": "等待执行的集群变更任务数量",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "from": 5
- },
- "result": {
- "color": "#f24207"
- }
- },
- {
- "type": "range",
- "match": {
- "from": 1,
- "to": 5
- },
- "result": {
- "color": "#f9a006"
- }
- },
- {
- "type": "range",
- "match": {
- "to": 1
- },
- "result": {
- "color": "#21c00c"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 3,
- "x": 21,
- "y": 1,
- "i": "7b85a99f-9cee-4cda-936c-eedcd2409e42"
- },
- "id": "7b85a99f-9cee-4cda-936c-eedcd2409e42"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_cluster_health_status{instance=\"$instance\",cluster=\"$cluster\",color=\"red\"}==1 or (elasticsearch_cluster_health_status{instance=\"$instance\",cluster=\"$cluster\",color=\"green\"}==1)+4 or (elasticsearch_cluster_health_status{instance=\"$instance\",cluster=\"$cluster\",color=\"yellow\"}==1)+2"
- }
- ],
- "name": "Cluster health",
- "description": "绿色:健康,黄色:存在副本分片异常,红色:存在主分片异常",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "special",
- "result": {
- "text": "N/A"
- },
- "match": {}
- },
- {
- "type": "special",
- "match": {
- "special": 5
- },
- "result": {
- "text": "Green",
- "color": "#21c00c"
- }
- },
- {
- "type": "special",
- "match": {
- "special": 3
- },
- "result": {
- "text": "Yellow",
- "color": "#f9e406"
- }
- },
- {
- "type": "special",
- "match": {
- "special": 1
- },
- "result": {
- "text": "Red",
- "color": "#f43606"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 3,
- "x": 0,
- "y": 1,
- "i": "a9c1c7fa-2985-4a14-bbe9-2ee7db630e94"
- },
- "id": "a9c1c7fa-2985-4a14-bbe9-2ee7db630e94"
- },
- {
- "id": "12024030-3476-44b0-94b1-194629ce4efa",
- "type": "row",
- "name": "Shards",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 4,
- "i": "12024030-3476-44b0-94b1-194629ce4efa"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_cluster_health_active_shards{instance=\"$instance\",cluster=\"$cluster\"}"
- }
- ],
- "name": "Active shards",
- "description": "活跃分片数\nAggregate total of all shards across all indices, which includes replica shards",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 5,
- "i": "717067e8-5f9c-4485-8158-d977c217d620"
- },
- "id": "717067e8-5f9c-4485-8158-d977c217d620"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_cluster_health_active_primary_shards{instance=\"$instance\",cluster=\"$cluster\"}"
- }
- ],
- "name": "Active primary shards",
- "description": "活跃主分片数\nThe number of primary shards in your cluster. This is an aggregate total across all indices.",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 5,
- "i": "03e4fbef-93dd-488c-bb52-3eac620cc331"
- },
- "id": "03e4fbef-93dd-488c-bb52-3eac620cc331"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_cluster_health_initializing_shards{instance=\"$instance\",cluster=\"$cluster\"}"
- }
- ],
- "name": "Initializing shards",
- "description": "创建中分片数量\nCount of shards that are being freshly created",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 8,
- "y": 5,
- "i": "90b642aa-4815-492b-a821-94a8120f2dc9"
- },
- "id": "90b642aa-4815-492b-a821-94a8120f2dc9"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_cluster_health_relocating_shards{instance=\"$instance\",cluster=\"$cluster\"}"
- }
- ],
- "name": "Relocating shards",
- "description": "迁移中分片数量\nThe number of shards that are currently moving from one node to another node.",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 12,
- "y": 5,
- "i": "684d1be6-ebdf-4075-a7bc-6580c148b997"
- },
- "id": "684d1be6-ebdf-4075-a7bc-6580c148b997"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_cluster_health_unassigned_shards{instance=\"$instance\",cluster=\"$cluster\"}"
- }
- ],
- "name": "Unassigned shards",
- "description": "未分配的分片数量\nThe number of shards that exist in the cluster state, but cannot be found in the cluster itself",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 20,
- "y": 5,
- "i": "df959515-14fa-44e5-a16c-f40f87eacb01"
- },
- "id": "df959515-14fa-44e5-a16c-f40f87eacb01"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_cluster_health_delayed_unassigned_shards{instance=\"$instance\",cluster=\"$cluster\"}"
- }
- ],
- "name": "Delayed shards",
- "description": "暂缓分配的分片数量,当节点丢失,会发生选主和数据拷贝。为了较少网络抖动等原因导致的重分配情况,配置delay参数,该值为等待delay到期将被重分配的分片数量\nShards delayed to reduce reallocation overhead",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 16,
- "y": 5,
- "i": "f307f045-cfcf-4cd9-a39f-10d4360a85b2"
- },
- "id": "f307f045-cfcf-4cd9-a39f-10d4360a85b2"
- },
- {
- "id": "ff67d655-1664-4432-bcef-52c00f77ef33",
- "type": "row",
- "name": "JVM Garbage Collection",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 8,
- "i": "ff67d655-1664-4432-bcef-52c00f77ef33"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "irate(elasticsearch_jvm_gc_collection_seconds_count{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}} - {{gc}}"
- }
- ],
- "name": "GC count",
- "description": "GC运行次数",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 9,
- "i": "f39502b5-a6a8-4bed-93d7-be83096eecbf"
- },
- "id": "f39502b5-a6a8-4bed-93d7-be83096eecbf"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "irate(elasticsearch_jvm_gc_collection_seconds_sum{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}} - {{gc}}"
- }
- ],
- "name": "GC time",
- "description": "GC运行耗时(秒)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "seconds"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 9,
- "i": "df97e013-e810-4b78-8253-0a1fe7c96b3a"
- },
- "id": "df97e013-e810-4b78-8253-0a1fe7c96b3a"
- },
- {
- "id": "674eb58f-4afe-440b-81eb-2c007c5bf598",
- "type": "row",
- "name": "Translog",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 16,
- "i": "674eb58f-4afe-440b-81eb-2c007c5bf598"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "irate(elasticsearch_indices_translog_operations{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}"
- }
- ],
- "name": "Total translog operations",
- "description": "translog大小(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "none"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 17,
- "i": "47583195-3a48-4d76-8b36-c08c29be936e"
- },
- "id": "47583195-3a48-4d76-8b36-c08c29be936e"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "irate(elasticsearch_indices_translog_size_in_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}"
- }
- ],
- "name": "Total translog size in bytes",
- "description": "translog大小(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 17,
- "i": "dca13d7f-90ca-4302-afed-753c2c181cf5"
- },
- "id": "dca13d7f-90ca-4302-afed-753c2c181cf5"
- },
- {
- "id": "6c7202e2-b991-482b-a6d4-ad26cc97f6d2",
- "type": "row",
- "name": "Breakers",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 24,
- "i": "6c7202e2-b991-482b-a6d4-ad26cc97f6d2"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_breakers_tripped{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "legend": "{{name}}: {{breaker}}"
- }
- ],
- "name": "Tripped for breakers",
- "description": "节点断路器阻断总数",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 25,
- "i": "7040d182-228f-4a58-b4ce-1eb4addeb88f"
- },
- "id": "7040d182-228f-4a58-b4ce-1eb4addeb88f"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_breakers_estimated_size_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "legend": "{{name}}: {{breaker}}"
- },
- {
- "expr": "elasticsearch_breakers_limit_size_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "refId": "B",
- "legend": "{{name}}: limit for {{breaker}}"
- }
- ],
- "name": "Estimated size in bytes of breaker",
- "description": "预估内存大小和限制内存大小",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 25,
- "i": "31d1efe8-d58a-4f1c-b510-1854ec1f491a"
- },
- "id": "31d1efe8-d58a-4f1c-b510-1854ec1f491a"
- },
- {
- "id": "0df4ccb6-d6c1-4235-a186-6b596f68dc61",
- "type": "row",
- "name": "Cpu and Memory",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 32,
- "i": "0df4ccb6-d6c1-4235-a186-6b596f68dc61"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_os_load1{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "legend": "load1: {{name}}"
- },
- {
- "expr": "elasticsearch_os_load5{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "refId": "B",
- "legend": "load5: {{name}}"
- },
- {
- "expr": "elasticsearch_os_load15{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "refId": "C",
- "legend": "load15: {{name}}"
- }
- ],
- "name": "Load average",
- "description": "1m/5m/15m系统负载",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 33,
- "i": "1295b795-0e8a-4db7-afc1-5248e386062d"
- },
- "id": "1295b795-0e8a-4db7-afc1-5248e386062d"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_process_cpu_percent{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "legend": "{{name}}"
- }
- ],
- "name": "CPU usage",
- "description": "进程CPU占比",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "percent"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 33,
- "i": "356d363a-682b-41f9-9fdd-7212e943fc49"
- },
- "id": "356d363a-682b-41f9-9fdd-7212e943fc49"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_jvm_memory_used_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "legend": "{{name}} used: {{area}}"
- },
- {
- "expr": "elasticsearch_jvm_memory_max_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "refId": "B",
- "legend": "{{name}} max: {{area}}"
- },
- {
- "expr": "elasticsearch_jvm_memory_pool_peak_used_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "refId": "C",
- "legend": "{{name}} peak used pool: {{pool}}"
- }
- ],
- "name": "JVM memory usage",
- "description": "进程内存占用/限制/峰值(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 35,
- "i": "f0216c7e-ade7-47c0-aec1-6efab9543e58"
- },
- "id": "f0216c7e-ade7-47c0-aec1-6efab9543e58"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_jvm_memory_committed_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "legend": "{{name}} committed: {{area}}"
- },
- {
- "expr": "elasticsearch_jvm_memory_max_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "refId": "B",
- "legend": "{{name}} max: {{area}}"
- }
- ],
- "name": "JVM memory committed",
- "description": "JVM申请/限制内存(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 35,
- "i": "12bce6cc-a0fc-4e98-ba19-5cf5fdeb6332"
- },
- "id": "12bce6cc-a0fc-4e98-ba19-5cf5fdeb6332"
- },
- {
- "id": "df751a4b-72b5-4e4b-bc33-b89f8b4b8cac",
- "type": "row",
- "name": "Disk and Network",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 42,
- "i": "df751a4b-72b5-4e4b-bc33-b89f8b4b8cac"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "1-(elasticsearch_filesystem_data_available_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}/elasticsearch_filesystem_data_size_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"})",
- "legend": "{{name}}: {{path}}"
- }
- ],
- "name": "Disk usage",
- "description": "磁盘使用率",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "percentUnit"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 43,
- "i": "5de089e7-c5cd-4a01-9cd7-70e39feef131"
- },
- "id": "5de089e7-c5cd-4a01-9cd7-70e39feef131"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "irate(elasticsearch_transport_tx_size_bytes_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}: sent"
- },
- {
- "expr": "-irate(elasticsearch_transport_rx_size_bytes_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "B",
- "legend": "{{name}}: received"
- }
- ],
- "name": "Network usage",
- "description": "网络流量(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesSI"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 43,
- "i": "957402f9-2e17-4c67-8d6b-02a8cc6789d9"
- },
- "id": "957402f9-2e17-4c67-8d6b-02a8cc6789d9"
- },
- {
- "id": "f26bc1c8-5528-4faa-950d-075d39c023a8",
- "type": "row",
- "name": "Documents",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 50,
- "i": "f26bc1c8-5528-4faa-950d-075d39c023a8"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_docs{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "legend": "{{name}}"
- }
- ],
- "name": "Documents count on node",
- "description": "节点文档总数,不包含已删除文档和子文档以及刚索引的文档",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 51,
- "i": "6220138b-3452-4529-a008-c78e20672169"
- },
- "id": "6220138b-3452-4529-a008-c78e20672169"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "irate(elasticsearch_indices_indexing_index_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}"
- }
- ],
- "name": "Documents indexed rate",
- "description": "平均每秒索引文档数",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 51,
- "i": "242dff44-09b1-4468-856d-642e76048296"
- },
- "id": "242dff44-09b1-4468-856d-642e76048296"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "irate(elasticsearch_indices_docs_deleted{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}"
- }
- ],
- "name": "Documents deleted rate",
- "description": "平均每秒删除文档数",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 53,
- "i": "400efbe3-a4c5-49af-a0bf-eabf2511ebf5"
- },
- "id": "400efbe3-a4c5-49af-a0bf-eabf2511ebf5"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(elasticsearch_indices_merges_docs_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}"
- }
- ],
- "name": "Documents merged rate",
- "description": "平均每秒合并文档数",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 8,
- "y": 53,
- "i": "0b2d6480-6f50-413f-8552-f49109d2be59"
- },
- "id": "0b2d6480-6f50-413f-8552-f49109d2be59"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "irate(elasticsearch_indices_merges_total_size_bytes_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}"
- }
- ],
- "name": "Documents merged bytes",
- "description": "平均每秒合并文档大小",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesSI"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 53,
- "i": "981c2d24-56df-437c-bc43-77682008dd01"
- },
- "id": "981c2d24-56df-437c-bc43-77682008dd01"
- },
- {
- "id": "301ccb76-3b75-48a3-b37c-0ab035c2c2e9",
- "type": "row",
- "name": "Times",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 60,
- "i": "301ccb76-3b75-48a3-b37c-0ab035c2c2e9"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "irate(elasticsearch_indices_search_query_time_seconds{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}"
- }
- ],
- "name": "Query time",
- "description": "查询操作耗时(秒)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "seconds"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 61,
- "i": "e217b136-6021-473a-859e-7ac4218c4e86"
- },
- "id": "e217b136-6021-473a-859e-7ac4218c4e86"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "irate(elasticsearch_indices_indexing_index_time_seconds_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}"
- }
- ],
- "name": "Indexing time",
- "description": "索引操作耗时(秒)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "seconds"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 61,
- "i": "d51a4ef1-1fc5-4d1b-ba6c-a2fd483295ee"
- },
- "id": "d51a4ef1-1fc5-4d1b-ba6c-a2fd483295ee"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "irate(elasticsearch_indices_merges_total_time_seconds_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}"
- }
- ],
- "name": "Merging time",
- "description": "合并操作耗时(秒)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "seconds"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 63,
- "i": "20751b64-38da-4263-a055-02bc844bd416"
- },
- "id": "20751b64-38da-4263-a055-02bc844bd416"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "irate(elasticsearch_indices_store_throttle_time_seconds_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}"
- }
- ],
- "name": "Throttle time for index store",
- "description": "索引存储限制耗时(秒)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "seconds"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 63,
- "i": "d688b715-5959-433a-89b2-51bcd2b0b1f3"
- },
- "id": "d688b715-5959-433a-89b2-51bcd2b0b1f3"
- },
- {
- "id": "f83e7128-21d7-4d5d-9956-61c9537f9b20",
- "type": "row",
- "name": "Total Operations states",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 70,
- "i": "f83e7128-21d7-4d5d-9956-61c9537f9b20"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "irate(elasticsearch_indices_indexing_index_time_seconds_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}: indexing"
- },
- {
- "expr": "irate(elasticsearch_indices_search_query_time_seconds{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "B",
- "legend": "{{name}}: query"
- },
- {
- "expr": "irate(elasticsearch_indices_search_fetch_time_seconds{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "C",
- "legend": "{{name}}: fetch"
- },
- {
- "expr": "irate(elasticsearch_indices_merges_total_time_seconds_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "D",
- "legend": "{{name}}: merges"
- },
- {
- "expr": "irate(elasticsearch_indices_refresh_time_seconds_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "E",
- "legend": "{{name}}: refresh"
- },
- {
- "expr": "irate(elasticsearch_indices_flush_time_seconds{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "F",
- "legend": "{{name}}: flush"
- },
- {
- "expr": "irate(elasticsearch_indices_get_exists_time_seconds{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "G",
- "legend": "{{name}}: get_exists"
- },
- {
- "expr": "irate(elasticsearch_indices_get_time_seconds{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "H",
- "legend": "{{name}}: get_time"
- },
- {
- "expr": "irate(elasticsearch_indices_get_missing_time_seconds{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "I",
- "legend": "{{name}}: get_missing"
- },
- {
- "expr": "irate(elasticsearch_indices_indexing_delete_time_seconds_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "K",
- "legend": "{{name}}: indexing_delete"
- },
- {
- "expr": "irate(elasticsearch_indices_get_time_seconds{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "L",
- "legend": "{{name}}: get"
- }
- ],
- "name": "Total Operations time",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "seconds"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 71,
- "i": "9be3061f-ade2-43a5-ab5f-bfdc8861e4be"
- },
- "id": "9be3061f-ade2-43a5-ab5f-bfdc8861e4be"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(elasticsearch_indices_indexing_index_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}: indexing"
- },
- {
- "expr": "rate(elasticsearch_indices_search_query_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "B",
- "legend": "{{name}}: query"
- },
- {
- "expr": "rate(elasticsearch_indices_search_fetch_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "C",
- "legend": "{{name}}: fetch"
- },
- {
- "expr": "rate(elasticsearch_indices_merges_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "D",
- "legend": "{{name}}: merges"
- },
- {
- "expr": "rate(elasticsearch_indices_refresh_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "E",
- "legend": "{{name}}: refresh"
- },
- {
- "expr": "rate(elasticsearch_indices_flush_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "F",
- "legend": "{{name}}: flush"
- },
- {
- "expr": "rate(elasticsearch_indices_get_exists_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "G",
- "legend": "{{name}}: get_exists"
- },
- {
- "expr": "rate(elasticsearch_indices_get_missing_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "H",
- "legend": "{{name}}: get_missing"
- },
- {
- "expr": "rate(elasticsearch_indices_get_tota{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "I",
- "legend": "{{name}}: get"
- },
- {
- "expr": "rate(elasticsearch_indices_indexing_delete_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "refId": "K",
- "legend": "{{name}}: indexing_delete"
- }
- ],
- "name": "Total Operations rate",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 71,
- "i": "55cf0c8e-bf4f-430c-bc68-1eca72d7055d"
- },
- "id": "55cf0c8e-bf4f-430c-bc68-1eca72d7055d"
- },
- {
- "id": "7f948b8c-2881-416c-83b7-0819823c7b70",
- "type": "row",
- "name": "Thread Pool",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 78,
- "i": "7f948b8c-2881-416c-83b7-0819823c7b70"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "irate(elasticsearch_thread_pool_rejected_count{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}: {{ type }}"
- }
- ],
- "name": "Thread Pool operations rejected",
- "description": "线程池reject次数",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 0,
- "y": 79,
- "i": "d337f12c-6fbe-4463-9181-faecdc612a90"
- },
- "id": "d337f12c-6fbe-4463-9181-faecdc612a90"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_thread_pool_active_count{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "legend": "{{name}}: {{ type }}"
- }
- ],
- "name": "Thread Pool threads active",
- "description": "活跃线程数",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 79,
- "i": "1053fab0-f105-4a6b-9508-dc87c4f78956"
- },
- "id": "1053fab0-f105-4a6b-9508-dc87c4f78956"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_thread_pool_queue_count{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "legend": "{{name}}: {{ type }}"
- }
- ],
- "name": "Thread Pool threads queued",
- "description": "排队等待线程任务数量",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 12,
- "y": 79,
- "i": "aad51280-5725-4485-841d-c08f0277508f"
- },
- "id": "aad51280-5725-4485-841d-c08f0277508f"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "irate(elasticsearch_thread_pool_completed_count{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}: {{ type }}"
- }
- ],
- "name": "Thread Pool operations completed",
- "description": "线程池complete次数",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 18,
- "y": 79,
- "i": "76538cda-67f3-4040-b42e-be27078440e4"
- },
- "id": "76538cda-67f3-4040-b42e-be27078440e4"
- },
- {
- "id": "2f6f4c26-2203-4f94-a105-a166f35608da",
- "type": "row",
- "name": "Caches",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 86,
- "i": "2f6f4c26-2203-4f94-a105-a166f35608da"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_fielddata_memory_size_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "legend": "{{name}}"
- }
- ],
- "name": "Field data memory size",
- "description": "fielddata cache内存占用(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 87,
- "i": "100f8d6d-073b-46f4-a664-db11e889a111"
- },
- "id": "100f8d6d-073b-46f4-a664-db11e889a111"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(elasticsearch_indices_fielddata_evictions{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}"
- }
- ],
- "name": "Field data evictions",
- "description": "fielddata cache平均每秒内存剔除次数",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "none"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 87,
- "i": "4af09644-306e-404d-a1a0-174397b26c4e"
- },
- "id": "4af09644-306e-404d-a1a0-174397b26c4e"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_query_cache_memory_size_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "legend": "{{name}}"
- }
- ],
- "name": "Query cache size",
- "description": "query cache内存占用(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 89,
- "i": "e9632f58-8186-43bf-81b1-c57e91078e35"
- },
- "id": "e9632f58-8186-43bf-81b1-c57e91078e35"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(elasticsearch_indices_query_cache_evictions{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}"
- }
- ],
- "name": "Query cache evictions",
- "description": "query cache平均每秒内存剔除次数",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "none"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 8,
- "y": 89,
- "i": "e1145b0d-b839-4189-bd02-d955ae3dbcf3"
- },
- "id": "e1145b0d-b839-4189-bd02-d955ae3dbcf3"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(elasticsearch_indices_filter_cache_evictions{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
- "legend": "{{name}}"
- }
- ],
- "name": "Evictions from filter cache",
- "description": "老版本的filter cache内存剔除次数",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "none"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 89,
- "i": "14ce9ebf-5ff7-42da-9628-8746e18fe32b"
- },
- "id": "14ce9ebf-5ff7-42da-9628-8746e18fe32b"
- },
- {
- "id": "f645ba3f-d2eb-4335-a2ff-56037184c779",
- "type": "row",
- "name": "Segments",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 96,
- "i": "f645ba3f-d2eb-4335-a2ff-56037184c779"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segments_count{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "legend": "{{name}}"
- }
- ],
- "name": "Count of index segments",
- "description": "segment个数",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 97,
- "i": "7f3f74ca-a8ca-4d07-b17a-72bb198f9726"
- },
- "id": "7f3f74ca-a8ca-4d07-b17a-72bb198f9726"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segments_memory_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
- "legend": "{{name}}"
- }
- ],
- "name": "Current memory size of segments in bytes",
- "description": "segment内存占用(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 97,
- "i": "0d2bbc28-2211-4097-acbc-e1f72b3cad88"
- },
- "id": "0d2bbc28-2211-4097-acbc-e1f72b3cad88"
- },
- {
- "id": "6e28b8b4-dc24-45fb-9d60-351f08716296",
- "type": "row",
- "name": "Indices: Count of documents and Total size",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 104,
- "i": "6e28b8b4-dc24-45fb-9d60-351f08716296"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_docs_primary{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Count of documents with only primary shards",
- "description": "主分片文档数",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "stack": "off",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 105,
- "i": "8620f336-4e26-40db-8c85-6a336a5fb7c9"
- },
- "id": "8620f336-4e26-40db-8c85-6a336a5fb7c9"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_store_size_bytes_primary{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Total size of stored index data in bytes with only primary shards on all nodes",
- "description": "主分片索引容量(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 107,
- "i": "d4541f1a-136f-4b3e-b5e9-8cc92267aa8a"
- },
- "id": "d4541f1a-136f-4b3e-b5e9-8cc92267aa8a"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_store_size_bytes_total{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Total size of stored index data in bytes with all shards on all nodes",
- "description": "所有分片索引容量(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 109,
- "i": "66926f5a-d562-428e-b48b-d69b4d705b8f"
- },
- "id": "66926f5a-d562-428e-b48b-d69b4d705b8f"
- },
- {
- "id": "c92992cf-3b56-4472-9278-9103b8fe55b7",
- "type": "row",
- "name": "Indices: Index writer",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 116,
- "i": "c92992cf-3b56-4472-9278-9103b8fe55b7"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_index_writer_memory_bytes_primary{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Index writer with only primary shards on all nodes in bytes",
- "description": "主分片索引写入数据量(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 117,
- "i": "7837ae60-c490-4e8a-a604-133cdeb5a3e7"
- },
- "id": "7837ae60-c490-4e8a-a604-133cdeb5a3e7"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_index_writer_memory_bytes_total{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Index writer with all shards on all nodes in bytes",
- "description": "所有分片索引写入数据量(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 119,
- "i": "8f200ba5-8c9b-4a26-b7b3-307cdb504316"
- },
- "id": "8f200ba5-8c9b-4a26-b7b3-307cdb504316"
- },
- {
- "id": "fb8887c4-c0a4-44c1-83da-f077fa0feb9d",
- "type": "row",
- "name": "Indices: Segments",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 126,
- "i": "fb8887c4-c0a4-44c1-83da-f077fa0feb9d"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_count_primary{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Segments with only primary shards on all nodes",
- "description": "主分片segment数",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 127,
- "i": "d20fb2f9-0e51-4bd1-a580-1308349e0b71"
- },
- "id": "d20fb2f9-0e51-4bd1-a580-1308349e0b71"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_count_total{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Segments with all shards on all nodes",
- "description": "所有分片segment总数",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 129,
- "i": "b8f5151d-d7d9-4cf2-822e-56ce5b0f58b2"
- },
- "id": "b8f5151d-d7d9-4cf2-822e-56ce5b0f58b2"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_memory_bytes_primary{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Size of segments with only primary shards on all nodes in bytes",
- "description": "主分片segment容量",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 131,
- "i": "c6c1eee0-4c93-462e-8c53-f369fee48e46"
- },
- "id": "c6c1eee0-4c93-462e-8c53-f369fee48e46"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_memory_bytes_total{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Size of segments with all shards on all nodes in bytes",
- "description": "所有分片segment容量",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 133,
- "i": "d9b36d80-c753-4bde-8e6d-29af8c5a7e83"
- },
- "id": "d9b36d80-c753-4bde-8e6d-29af8c5a7e83"
- },
- {
- "id": "abf4df7c-975a-493e-8951-be33c7d3ec6b",
- "type": "row",
- "name": "Indices: Doc values",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 140,
- "i": "abf4df7c-975a-493e-8951-be33c7d3ec6b"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_doc_values_memory_bytes_primary{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Doc values with only primary shards on all nodes in bytes",
- "description": "主分片doc value内存占用(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 141,
- "i": "205f362a-ad57-4cb8-ac3f-7afdb5dc87d6"
- },
- "id": "205f362a-ad57-4cb8-ac3f-7afdb5dc87d6"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_doc_values_memory_bytes_total{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Doc values with all shards on all nodes in bytes",
- "description": "所有分片doc value内存占用(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 143,
- "i": "ea838448-825c-4627-a09d-19db6c1e4a14"
- },
- "id": "ea838448-825c-4627-a09d-19db6c1e4a14"
- },
- {
- "id": "43768cea-7ee8-430a-9aa3-e8c38817de55",
- "type": "row",
- "name": "Indices: Fields",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 150,
- "i": "43768cea-7ee8-430a-9aa3-e8c38817de55"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_fields_memory_bytes_primary{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Size of fields with only primary shards on all nodes in bytes",
- "description": "分片field内存占用(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 151,
- "i": "6f8efb01-aac1-427c-bf7b-d6b90a968185"
- },
- "id": "6f8efb01-aac1-427c-bf7b-d6b90a968185"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_fields_memory_bytes_total{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Size of fields with all shards on all nodes in bytes",
- "description": "所有分片field内存占用(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 153,
- "i": "b82b390b-8f72-427b-9d1f-37d279f94366"
- },
- "id": "b82b390b-8f72-427b-9d1f-37d279f94366"
- },
- {
- "id": "41285e05-696c-4a94-946f-f75021316665",
- "type": "row",
- "name": "Indices: Fixed bit",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 160,
- "i": "41285e05-696c-4a94-946f-f75021316665"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_fixed_bit_set_memory_bytes_primary{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Size of fixed bit with only primary shards on all nodes in bytes",
- "description": "主分片fixed bit set内存占用(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 161,
- "i": "707cfc5f-cdbe-43dc-9d1f-f79e306ca7ff"
- },
- "id": "707cfc5f-cdbe-43dc-9d1f-f79e306ca7ff"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_fixed_bit_set_memory_bytes_total{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Size of fixed bit with all shards on all nodes in bytes",
- "description": "所有分片fixed bit set内存占用(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 163,
- "i": "ee949fc8-2c50-4ca3-944f-b42030439968"
- },
- "id": "ee949fc8-2c50-4ca3-944f-b42030439968"
- },
- {
- "id": "23141b77-a525-44b1-a3b8-9ff4a65af597",
- "type": "row",
- "name": "Indices: Norms",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 170,
- "i": "23141b77-a525-44b1-a3b8-9ff4a65af597"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_norms_memory_bytes_primary{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Size of norms with only primary shards on all nodes in bytes",
- "description": "主分片normalization factor内存占用(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 171,
- "i": "167f10ca-179d-4dfd-ba1d-e2184be993be"
- },
- "id": "167f10ca-179d-4dfd-ba1d-e2184be993be"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_norms_memory_bytes_total{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Size of norms with all shards on all nodes in bytes",
- "description": "所有分片normalization factor内存占用(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 173,
- "i": "41fba22d-bbb0-4cbd-a8cd-c7910991cecf"
- },
- "id": "41fba22d-bbb0-4cbd-a8cd-c7910991cecf"
- },
- {
- "id": "1f40b15b-8f0e-4c57-a1fd-602242195863",
- "type": "row",
- "name": "Indices: Points",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 180,
- "i": "1f40b15b-8f0e-4c57-a1fd-602242195863"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_points_memory_bytes_primary{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Size of points with only primary shards on all nodes in bytes",
- "description": "主分片point内存占用(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 181,
- "i": "24e451cb-3835-4172-926b-54a33aa3b9b4"
- },
- "id": "24e451cb-3835-4172-926b-54a33aa3b9b4"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_points_memory_bytes_total{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Size of points with all shards on all nodes in bytes",
- "description": "所有分片point内存占用(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 183,
- "i": "79665ebe-5804-4809-af68-15d3a72a2c2c"
- },
- "id": "79665ebe-5804-4809-af68-15d3a72a2c2c"
- },
- {
- "id": "a62b3a9f-f3ac-4c4e-9d20-bde6c9eb3372",
- "type": "row",
- "name": "Indices: Terms",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 190,
- "i": "a62b3a9f-f3ac-4c4e-9d20-bde6c9eb3372"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_terms_memory_primary{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Size of terms with only primary shards on all nodes in bytes",
- "description": "主分片term内存占用(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 191,
- "i": "c464e467-a6cf-4d60-8108-fb0359c801d8"
- },
- "id": "c464e467-a6cf-4d60-8108-fb0359c801d8"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_terms_memory_total{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Number of terms with all shards on all nodes in bytes",
- "description": "所有分片term内存占用(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 193,
- "i": "b0befc26-33c8-44f3-aa3e-80a9ed99180a"
- },
- "id": "b0befc26-33c8-44f3-aa3e-80a9ed99180a"
- },
- {
- "id": "df60be90-b370-4995-93c6-b26ee8584e6f",
- "type": "row",
- "name": "Indices: Terms",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 200,
- "i": "df60be90-b370-4995-93c6-b26ee8584e6f"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_version_map_memory_bytes_primary{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Size of version map with only primary shards on all nodes in bytes",
- "description": "所有分片version map内存占用(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 201,
- "i": "a2778c3a-6473-4482-bade-398904922e2f"
- },
- "id": "a2778c3a-6473-4482-bade-398904922e2f"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "elasticsearch_indices_segment_version_map_memory_bytes_total{instance=~\"$instance\"}",
- "legend": "{{index}}"
- }
- ],
- "name": "Size of version map with all shards on all nodes in bytes",
- "description": "所有分片version map内存占用(byte)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 203,
- "i": "322b0c1b-982a-4654-8552-7f246f496480"
- },
- "id": "322b0c1b-982a-4654-8552-7f246f496480"
- }
- ]
- }
+ "name": "ElasticSearch",
+ "tags": "Prometheus ElasticSearch ES",
+ "ident": "",
+ "configs": {
+ "panels": [
+ {
+ "collapsed": true,
+ "id": "7d06624d-28be-4586-a804-11ca2f036964",
+ "layout": {
+ "h": 1,
+ "i": "7d06624d-28be-4586-a804-11ca2f036964",
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "name": "KPI",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "集群数据节点数量",
+ "id": "ae1ebc12-8639-4812-b5ae-9391a0ec4dbc",
+ "layout": {
+ "h": 3,
+ "i": "ae1ebc12-8639-4812-b5ae-9391a0ec4dbc",
+ "w": 3,
+ "x": 6,
+ "y": 1
+ },
+ "name": "Data Nodes",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_cluster_health_number_of_nodes{instance=\"$instance\",cluster=\"$cluster\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "集群节点数量",
+ "id": "8648c6f9-ab82-4067-a02c-eebe84ae3a96",
+ "layout": {
+ "h": 3,
+ "i": "8648c6f9-ab82-4067-a02c-eebe84ae3a96",
+ "w": 3,
+ "x": 3,
+ "y": 1
+ },
+ "name": "Nodes",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_cluster_health_number_of_nodes{instance=\"$instance\",cluster=\"$cluster\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "平均CPU使用率",
+ "id": "20bf6dec-36cb-4e3a-a096-275a33e791b9",
+ "layout": {
+ "h": 3,
+ "i": "20bf6dec-36cb-4e3a-a096-275a33e791b9",
+ "w": 3,
+ "x": 9,
+ "y": 1
+ },
+ "name": "CPU usage Avg",
+ "options": {
+ "standardOptions": {
+ "util": "percent"
+ },
+ "valueMappings": [
+ {
+ "match": {
+ "from": 80,
+ "special": 80
+ },
+ "result": {
+ "color": "#f90606"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 70,
+ "special": 70
+ },
+ "result": {
+ "color": "#f5ac0f"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "to": 70
+ },
+ "result": {
+ "color": "#21c00c"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "sum (elasticsearch_process_cpu_percent{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"} ) / count (elasticsearch_process_cpu_percent{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"} )",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "平均JVM内存使用率",
+ "id": "6380e6f2-3aec-4d56-a07a-efe6106c492f",
+ "layout": {
+ "h": 3,
+ "i": "6380e6f2-3aec-4d56-a07a-efe6106c492f",
+ "w": 3,
+ "x": 12,
+ "y": 1
+ },
+ "name": "JVM memory used Avg",
+ "options": {
+ "standardOptions": {
+ "util": "percent"
+ },
+ "valueMappings": [
+ {
+ "match": {
+ "from": 80,
+ "special": 80
+ },
+ "result": {
+ "color": "#f12c09"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 70,
+ "to": 80
+ },
+ "result": {
+ "color": "#fbca18"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "to": 70
+ },
+ "result": {
+ "color": "#21c00c"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "sum (elasticsearch_jvm_memory_used_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}) / sum (elasticsearch_jvm_memory_max_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}) * 100",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "de70ff1e-5ad6-4d68-b961-10eb78840d90",
+ "layout": {
+ "h": 3,
+ "i": "de70ff1e-5ad6-4d68-b961-10eb78840d90",
+ "w": 3,
+ "x": 15,
+ "y": 1
+ },
+ "name": "Open file descriptors",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "sum (elasticsearch_process_open_files_count{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"})",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "集群断路器阻断总数",
+ "id": "88631ba2-b3d4-45e1-966a-9c3eb12a1d49",
+ "layout": {
+ "h": 3,
+ "i": "88631ba2-b3d4-45e1-966a-9c3eb12a1d49",
+ "w": 3,
+ "x": 18,
+ "y": 1
+ },
+ "name": "Tripped for breakers",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "special": 0
+ },
+ "result": {
+ "color": "#21c00c",
+ "text": ""
+ },
+ "type": "special"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "sum(elasticsearch_breakers_tripped{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"})",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "等待执行的集群变更任务数量",
+ "id": "7b85a99f-9cee-4cda-936c-eedcd2409e42",
+ "layout": {
+ "h": 3,
+ "i": "7b85a99f-9cee-4cda-936c-eedcd2409e42",
+ "w": 3,
+ "x": 21,
+ "y": 1
+ },
+ "name": "Pending tasks",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "from": 5
+ },
+ "result": {
+ "color": "#f24207"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 1,
+ "to": 5
+ },
+ "result": {
+ "color": "#f9a006"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "to": 1
+ },
+ "result": {
+ "color": "#21c00c"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_cluster_health_number_of_pending_tasks{instance=\"$instance\",cluster=\"$cluster\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "绿色:健康,黄色:存在副本分片异常,红色:存在主分片异常",
+ "id": "a9c1c7fa-2985-4a14-bbe9-2ee7db630e94",
+ "layout": {
+ "h": 3,
+ "i": "a9c1c7fa-2985-4a14-bbe9-2ee7db630e94",
+ "w": 3,
+ "x": 0,
+ "y": 1
+ },
+ "name": "Cluster health",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {},
+ "result": {
+ "text": "N/A"
+ },
+ "type": "special"
+ },
+ {
+ "match": {
+ "special": 5
+ },
+ "result": {
+ "color": "#21c00c",
+ "text": "Green"
+ },
+ "type": "special"
+ },
+ {
+ "match": {
+ "special": 3
+ },
+ "result": {
+ "color": "#f9e406",
+ "text": "Yellow"
+ },
+ "type": "special"
+ },
+ {
+ "match": {
+ "special": 1
+ },
+ "result": {
+ "color": "#f43606",
+ "text": "Red"
+ },
+ "type": "special"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_cluster_health_status{instance=\"$instance\",cluster=\"$cluster\",color=\"red\"}==1 or (elasticsearch_cluster_health_status{instance=\"$instance\",cluster=\"$cluster\",color=\"green\"}==1)+4 or (elasticsearch_cluster_health_status{instance=\"$instance\",cluster=\"$cluster\",color=\"yellow\"}==1)+2",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "12024030-3476-44b0-94b1-194629ce4efa",
+ "layout": {
+ "h": 1,
+ "i": "12024030-3476-44b0-94b1-194629ce4efa",
+ "w": 24,
+ "x": 0,
+ "y": 4
+ },
+ "name": "Shards",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "活跃分片数\nAggregate total of all shards across all indices, which includes replica shards",
+ "id": "717067e8-5f9c-4485-8158-d977c217d620",
+ "layout": {
+ "h": 3,
+ "i": "717067e8-5f9c-4485-8158-d977c217d620",
+ "w": 4,
+ "x": 0,
+ "y": 5
+ },
+ "name": "Active shards",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_cluster_health_active_shards{instance=\"$instance\",cluster=\"$cluster\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "活跃主分片数\nThe number of primary shards in your cluster. This is an aggregate total across all indices.",
+ "id": "03e4fbef-93dd-488c-bb52-3eac620cc331",
+ "layout": {
+ "h": 3,
+ "i": "03e4fbef-93dd-488c-bb52-3eac620cc331",
+ "w": 4,
+ "x": 4,
+ "y": 5
+ },
+ "name": "Active primary shards",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_cluster_health_active_primary_shards{instance=\"$instance\",cluster=\"$cluster\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "创建中分片数量\nCount of shards that are being freshly created",
+ "id": "90b642aa-4815-492b-a821-94a8120f2dc9",
+ "layout": {
+ "h": 3,
+ "i": "90b642aa-4815-492b-a821-94a8120f2dc9",
+ "w": 4,
+ "x": 8,
+ "y": 5
+ },
+ "name": "Initializing shards",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_cluster_health_initializing_shards{instance=\"$instance\",cluster=\"$cluster\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "迁移中分片数量\nThe number of shards that are currently moving from one node to another node.",
+ "id": "684d1be6-ebdf-4075-a7bc-6580c148b997",
+ "layout": {
+ "h": 3,
+ "i": "684d1be6-ebdf-4075-a7bc-6580c148b997",
+ "w": 4,
+ "x": 12,
+ "y": 5
+ },
+ "name": "Relocating shards",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_cluster_health_relocating_shards{instance=\"$instance\",cluster=\"$cluster\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "未分配的分片数量\nThe number of shards that exist in the cluster state, but cannot be found in the cluster itself",
+ "id": "df959515-14fa-44e5-a16c-f40f87eacb01",
+ "layout": {
+ "h": 3,
+ "i": "df959515-14fa-44e5-a16c-f40f87eacb01",
+ "w": 4,
+ "x": 20,
+ "y": 5
+ },
+ "name": "Unassigned shards",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_cluster_health_unassigned_shards{instance=\"$instance\",cluster=\"$cluster\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "暂缓分配的分片数量,当节点丢失,会发生选主和数据拷贝。为了较少网络抖动等原因导致的重分配情况,配置delay参数,该值为等待delay到期将被重分配的分片数量\nShards delayed to reduce reallocation overhead",
+ "id": "f307f045-cfcf-4cd9-a39f-10d4360a85b2",
+ "layout": {
+ "h": 3,
+ "i": "f307f045-cfcf-4cd9-a39f-10d4360a85b2",
+ "w": 4,
+ "x": 16,
+ "y": 5
+ },
+ "name": "Delayed shards",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_cluster_health_delayed_unassigned_shards{instance=\"$instance\",cluster=\"$cluster\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "ff67d655-1664-4432-bcef-52c00f77ef33",
+ "layout": {
+ "h": 1,
+ "i": "ff67d655-1664-4432-bcef-52c00f77ef33",
+ "w": 24,
+ "x": 0,
+ "y": 8
+ },
+ "name": "JVM Garbage Collection",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "GC运行次数",
+ "id": "f39502b5-a6a8-4bed-93d7-be83096eecbf",
+ "layout": {
+ "h": 7,
+ "i": "f39502b5-a6a8-4bed-93d7-be83096eecbf",
+ "w": 12,
+ "x": 0,
+ "y": 9
+ },
+ "name": "GC count",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(elasticsearch_jvm_gc_collection_seconds_count{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}} - {{gc}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "GC运行耗时(秒)",
+ "id": "df97e013-e810-4b78-8253-0a1fe7c96b3a",
+ "layout": {
+ "h": 7,
+ "i": "df97e013-e810-4b78-8253-0a1fe7c96b3a",
+ "w": 12,
+ "x": 12,
+ "y": 9
+ },
+ "name": "GC time",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "seconds"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(elasticsearch_jvm_gc_collection_seconds_sum{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}} - {{gc}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "674eb58f-4afe-440b-81eb-2c007c5bf598",
+ "layout": {
+ "h": 1,
+ "i": "674eb58f-4afe-440b-81eb-2c007c5bf598",
+ "w": 24,
+ "x": 0,
+ "y": 16
+ },
+ "name": "Translog",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "translog大小(byte)",
+ "id": "47583195-3a48-4d76-8b36-c08c29be936e",
+ "layout": {
+ "h": 7,
+ "i": "47583195-3a48-4d76-8b36-c08c29be936e",
+ "w": 12,
+ "x": 0,
+ "y": 17
+ },
+ "name": "Total translog operations",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "none"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(elasticsearch_indices_translog_operations{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "translog大小(byte)",
+ "id": "dca13d7f-90ca-4302-afed-753c2c181cf5",
+ "layout": {
+ "h": 7,
+ "i": "dca13d7f-90ca-4302-afed-753c2c181cf5",
+ "w": 12,
+ "x": 12,
+ "y": 17
+ },
+ "name": "Total translog size in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(elasticsearch_indices_translog_size_in_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "6c7202e2-b991-482b-a6d4-ad26cc97f6d2",
+ "layout": {
+ "h": 1,
+ "i": "6c7202e2-b991-482b-a6d4-ad26cc97f6d2",
+ "w": 24,
+ "x": 0,
+ "y": 24
+ },
+ "name": "Breakers",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "节点断路器阻断总数",
+ "id": "7040d182-228f-4a58-b4ce-1eb4addeb88f",
+ "layout": {
+ "h": 7,
+ "i": "7040d182-228f-4a58-b4ce-1eb4addeb88f",
+ "w": 12,
+ "x": 0,
+ "y": 25
+ },
+ "name": "Tripped for breakers",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_breakers_tripped{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "{{name}}: {{breaker}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "预估内存大小和限制内存大小",
+ "id": "31d1efe8-d58a-4f1c-b510-1854ec1f491a",
+ "layout": {
+ "h": 7,
+ "i": "31d1efe8-d58a-4f1c-b510-1854ec1f491a",
+ "w": 12,
+ "x": 12,
+ "y": 25
+ },
+ "name": "Estimated size in bytes of breaker",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_breakers_estimated_size_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "{{name}}: {{breaker}}",
+ "refId": "A"
+ },
+ {
+ "expr": "elasticsearch_breakers_limit_size_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "{{name}}: limit for {{breaker}}",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "0df4ccb6-d6c1-4235-a186-6b596f68dc61",
+ "layout": {
+ "h": 1,
+ "i": "0df4ccb6-d6c1-4235-a186-6b596f68dc61",
+ "w": 24,
+ "x": 0,
+ "y": 32
+ },
+ "name": "Cpu and Memory",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "1m/5m/15m系统负载",
+ "id": "1295b795-0e8a-4db7-afc1-5248e386062d",
+ "layout": {
+ "h": 7,
+ "i": "1295b795-0e8a-4db7-afc1-5248e386062d",
+ "w": 12,
+ "x": 0,
+ "y": 33
+ },
+ "name": "Load average",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_os_load1{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "load1: {{name}}",
+ "refId": "A"
+ },
+ {
+ "expr": "elasticsearch_os_load5{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "load5: {{name}}",
+ "refId": "B"
+ },
+ {
+ "expr": "elasticsearch_os_load15{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "load15: {{name}}",
+ "refId": "C"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "进程CPU占比",
+ "id": "356d363a-682b-41f9-9fdd-7212e943fc49",
+ "layout": {
+ "h": 7,
+ "i": "356d363a-682b-41f9-9fdd-7212e943fc49",
+ "w": 12,
+ "x": 12,
+ "y": 33
+ },
+ "name": "CPU usage",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "percent"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_process_cpu_percent{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "进程内存占用/限制/峰值(byte)",
+ "id": "f0216c7e-ade7-47c0-aec1-6efab9543e58",
+ "layout": {
+ "h": 7,
+ "i": "f0216c7e-ade7-47c0-aec1-6efab9543e58",
+ "w": 12,
+ "x": 0,
+ "y": 35
+ },
+ "name": "JVM memory usage",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_jvm_memory_used_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "{{name}} used: {{area}}",
+ "refId": "A"
+ },
+ {
+ "expr": "elasticsearch_jvm_memory_max_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "{{name}} max: {{area}}",
+ "refId": "B"
+ },
+ {
+ "expr": "elasticsearch_jvm_memory_pool_peak_used_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "{{name}} peak used pool: {{pool}}",
+ "refId": "C"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "JVM申请/限制内存(byte)",
+ "id": "12bce6cc-a0fc-4e98-ba19-5cf5fdeb6332",
+ "layout": {
+ "h": 7,
+ "i": "12bce6cc-a0fc-4e98-ba19-5cf5fdeb6332",
+ "w": 12,
+ "x": 12,
+ "y": 35
+ },
+ "name": "JVM memory committed",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_jvm_memory_committed_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "{{name}} committed: {{area}}",
+ "refId": "A"
+ },
+ {
+ "expr": "elasticsearch_jvm_memory_max_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "{{name}} max: {{area}}",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "df751a4b-72b5-4e4b-bc33-b89f8b4b8cac",
+ "layout": {
+ "h": 1,
+ "i": "df751a4b-72b5-4e4b-bc33-b89f8b4b8cac",
+ "w": 24,
+ "x": 0,
+ "y": 42
+ },
+ "name": "Disk and Network",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "磁盘使用率",
+ "id": "5de089e7-c5cd-4a01-9cd7-70e39feef131",
+ "layout": {
+ "h": 7,
+ "i": "5de089e7-c5cd-4a01-9cd7-70e39feef131",
+ "w": 12,
+ "x": 0,
+ "y": 43
+ },
+ "name": "Disk usage",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "percentUnit"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "1-(elasticsearch_filesystem_data_available_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}/elasticsearch_filesystem_data_size_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"})",
+ "legend": "{{name}}: {{path}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "网络流量(byte)",
+ "id": "957402f9-2e17-4c67-8d6b-02a8cc6789d9",
+ "layout": {
+ "h": 7,
+ "i": "957402f9-2e17-4c67-8d6b-02a8cc6789d9",
+ "w": 12,
+ "x": 12,
+ "y": 43
+ },
+ "name": "Network usage",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesSI"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(elasticsearch_transport_tx_size_bytes_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: sent",
+ "refId": "A"
+ },
+ {
+ "expr": "-irate(elasticsearch_transport_rx_size_bytes_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: received",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "f26bc1c8-5528-4faa-950d-075d39c023a8",
+ "layout": {
+ "h": 1,
+ "i": "f26bc1c8-5528-4faa-950d-075d39c023a8",
+ "w": 24,
+ "x": 0,
+ "y": 50
+ },
+ "name": "Documents",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "节点文档总数,不包含已删除文档和子文档以及刚索引的文档",
+ "id": "6220138b-3452-4529-a008-c78e20672169",
+ "layout": {
+ "h": 7,
+ "i": "6220138b-3452-4529-a008-c78e20672169",
+ "w": 12,
+ "x": 0,
+ "y": 51
+ },
+ "name": "Documents count on node",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_docs{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "平均每秒索引文档数",
+ "id": "242dff44-09b1-4468-856d-642e76048296",
+ "layout": {
+ "h": 7,
+ "i": "242dff44-09b1-4468-856d-642e76048296",
+ "w": 12,
+ "x": 12,
+ "y": 51
+ },
+ "name": "Documents indexed rate",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(elasticsearch_indices_indexing_index_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "平均每秒删除文档数",
+ "id": "400efbe3-a4c5-49af-a0bf-eabf2511ebf5",
+ "layout": {
+ "h": 7,
+ "i": "400efbe3-a4c5-49af-a0bf-eabf2511ebf5",
+ "w": 8,
+ "x": 0,
+ "y": 53
+ },
+ "name": "Documents deleted rate",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(elasticsearch_indices_docs_deleted{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "平均每秒合并文档数",
+ "id": "0b2d6480-6f50-413f-8552-f49109d2be59",
+ "layout": {
+ "h": 7,
+ "i": "0b2d6480-6f50-413f-8552-f49109d2be59",
+ "w": 8,
+ "x": 8,
+ "y": 53
+ },
+ "name": "Documents merged rate",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(elasticsearch_indices_merges_docs_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "平均每秒合并文档大小",
+ "id": "981c2d24-56df-437c-bc43-77682008dd01",
+ "layout": {
+ "h": 7,
+ "i": "981c2d24-56df-437c-bc43-77682008dd01",
+ "w": 8,
+ "x": 16,
+ "y": 53
+ },
+ "name": "Documents merged bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesSI"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(elasticsearch_indices_merges_total_size_bytes_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "301ccb76-3b75-48a3-b37c-0ab035c2c2e9",
+ "layout": {
+ "h": 1,
+ "i": "301ccb76-3b75-48a3-b37c-0ab035c2c2e9",
+ "w": 24,
+ "x": 0,
+ "y": 60
+ },
+ "name": "Times",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "查询操作耗时(秒)",
+ "id": "e217b136-6021-473a-859e-7ac4218c4e86",
+ "layout": {
+ "h": 7,
+ "i": "e217b136-6021-473a-859e-7ac4218c4e86",
+ "w": 12,
+ "x": 0,
+ "y": 61
+ },
+ "name": "Query time",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "seconds"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(elasticsearch_indices_search_query_time_seconds{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "索引操作耗时(秒)",
+ "id": "d51a4ef1-1fc5-4d1b-ba6c-a2fd483295ee",
+ "layout": {
+ "h": 7,
+ "i": "d51a4ef1-1fc5-4d1b-ba6c-a2fd483295ee",
+ "w": 12,
+ "x": 12,
+ "y": 61
+ },
+ "name": "Indexing time",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "seconds"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(elasticsearch_indices_indexing_index_time_seconds_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "合并操作耗时(秒)",
+ "id": "20751b64-38da-4263-a055-02bc844bd416",
+ "layout": {
+ "h": 7,
+ "i": "20751b64-38da-4263-a055-02bc844bd416",
+ "w": 12,
+ "x": 0,
+ "y": 63
+ },
+ "name": "Merging time",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "seconds"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(elasticsearch_indices_merges_total_time_seconds_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "索引存储限制耗时(秒)",
+ "id": "d688b715-5959-433a-89b2-51bcd2b0b1f3",
+ "layout": {
+ "h": 7,
+ "i": "d688b715-5959-433a-89b2-51bcd2b0b1f3",
+ "w": 12,
+ "x": 12,
+ "y": 63
+ },
+ "name": "Throttle time for index store",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "seconds"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(elasticsearch_indices_store_throttle_time_seconds_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "f83e7128-21d7-4d5d-9956-61c9537f9b20",
+ "layout": {
+ "h": 1,
+ "i": "f83e7128-21d7-4d5d-9956-61c9537f9b20",
+ "w": 24,
+ "x": 0,
+ "y": 70
+ },
+ "name": "Total Operations states",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "9be3061f-ade2-43a5-ab5f-bfdc8861e4be",
+ "layout": {
+ "h": 7,
+ "i": "9be3061f-ade2-43a5-ab5f-bfdc8861e4be",
+ "w": 12,
+ "x": 0,
+ "y": 71
+ },
+ "name": "Total Operations time",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "seconds"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(elasticsearch_indices_indexing_index_time_seconds_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: indexing",
+ "refId": "A"
+ },
+ {
+ "expr": "irate(elasticsearch_indices_search_query_time_seconds{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: query",
+ "refId": "B"
+ },
+ {
+ "expr": "irate(elasticsearch_indices_search_fetch_time_seconds{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: fetch",
+ "refId": "C"
+ },
+ {
+ "expr": "irate(elasticsearch_indices_merges_total_time_seconds_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: merges",
+ "refId": "D"
+ },
+ {
+ "expr": "irate(elasticsearch_indices_refresh_time_seconds_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: refresh",
+ "refId": "E"
+ },
+ {
+ "expr": "irate(elasticsearch_indices_flush_time_seconds{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: flush",
+ "refId": "F"
+ },
+ {
+ "expr": "irate(elasticsearch_indices_get_exists_time_seconds{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: get_exists",
+ "refId": "G"
+ },
+ {
+ "expr": "irate(elasticsearch_indices_get_time_seconds{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: get_time",
+ "refId": "H"
+ },
+ {
+ "expr": "irate(elasticsearch_indices_get_missing_time_seconds{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: get_missing",
+ "refId": "I"
+ },
+ {
+ "expr": "irate(elasticsearch_indices_indexing_delete_time_seconds_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: indexing_delete",
+ "refId": "K"
+ },
+ {
+ "expr": "irate(elasticsearch_indices_get_time_seconds{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: get",
+ "refId": "L"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "55cf0c8e-bf4f-430c-bc68-1eca72d7055d",
+ "layout": {
+ "h": 7,
+ "i": "55cf0c8e-bf4f-430c-bc68-1eca72d7055d",
+ "w": 12,
+ "x": 12,
+ "y": 71
+ },
+ "name": "Total Operations rate",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(elasticsearch_indices_indexing_index_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: indexing",
+ "refId": "A"
+ },
+ {
+ "expr": "rate(elasticsearch_indices_search_query_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: query",
+ "refId": "B"
+ },
+ {
+ "expr": "rate(elasticsearch_indices_search_fetch_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: fetch",
+ "refId": "C"
+ },
+ {
+ "expr": "rate(elasticsearch_indices_merges_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: merges",
+ "refId": "D"
+ },
+ {
+ "expr": "rate(elasticsearch_indices_refresh_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: refresh",
+ "refId": "E"
+ },
+ {
+ "expr": "rate(elasticsearch_indices_flush_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: flush",
+ "refId": "F"
+ },
+ {
+ "expr": "rate(elasticsearch_indices_get_exists_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: get_exists",
+ "refId": "G"
+ },
+ {
+ "expr": "rate(elasticsearch_indices_get_missing_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: get_missing",
+ "refId": "H"
+ },
+ {
+ "expr": "rate(elasticsearch_indices_get_tota{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: get",
+ "refId": "I"
+ },
+ {
+ "expr": "rate(elasticsearch_indices_indexing_delete_total{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: indexing_delete",
+ "refId": "K"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "7f948b8c-2881-416c-83b7-0819823c7b70",
+ "layout": {
+ "h": 1,
+ "i": "7f948b8c-2881-416c-83b7-0819823c7b70",
+ "w": 24,
+ "x": 0,
+ "y": 78
+ },
+ "name": "Thread Pool",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "线程池reject次数",
+ "id": "d337f12c-6fbe-4463-9181-faecdc612a90",
+ "layout": {
+ "h": 7,
+ "i": "d337f12c-6fbe-4463-9181-faecdc612a90",
+ "w": 6,
+ "x": 0,
+ "y": 79
+ },
+ "name": "Thread Pool operations rejected",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(elasticsearch_thread_pool_rejected_count{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: {{ type }}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "活跃线程数",
+ "id": "1053fab0-f105-4a6b-9508-dc87c4f78956",
+ "layout": {
+ "h": 7,
+ "i": "1053fab0-f105-4a6b-9508-dc87c4f78956",
+ "w": 6,
+ "x": 6,
+ "y": 79
+ },
+ "name": "Thread Pool threads active",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_thread_pool_active_count{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "{{name}}: {{ type }}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "排队等待线程任务数量",
+ "id": "aad51280-5725-4485-841d-c08f0277508f",
+ "layout": {
+ "h": 7,
+ "i": "aad51280-5725-4485-841d-c08f0277508f",
+ "w": 6,
+ "x": 12,
+ "y": 79
+ },
+ "name": "Thread Pool threads queued",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_thread_pool_queue_count{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "{{name}}: {{ type }}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "线程池complete次数",
+ "id": "76538cda-67f3-4040-b42e-be27078440e4",
+ "layout": {
+ "h": 7,
+ "i": "76538cda-67f3-4040-b42e-be27078440e4",
+ "w": 6,
+ "x": 18,
+ "y": 79
+ },
+ "name": "Thread Pool operations completed",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(elasticsearch_thread_pool_completed_count{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}: {{ type }}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "2f6f4c26-2203-4f94-a105-a166f35608da",
+ "layout": {
+ "h": 1,
+ "i": "2f6f4c26-2203-4f94-a105-a166f35608da",
+ "w": 24,
+ "x": 0,
+ "y": 86
+ },
+ "name": "Caches",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "fielddata cache内存占用(byte)",
+ "id": "100f8d6d-073b-46f4-a664-db11e889a111",
+ "layout": {
+ "h": 7,
+ "i": "100f8d6d-073b-46f4-a664-db11e889a111",
+ "w": 12,
+ "x": 0,
+ "y": 87
+ },
+ "name": "Field data memory size",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_fielddata_memory_size_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "fielddata cache平均每秒内存剔除次数",
+ "id": "4af09644-306e-404d-a1a0-174397b26c4e",
+ "layout": {
+ "h": 7,
+ "i": "4af09644-306e-404d-a1a0-174397b26c4e",
+ "w": 12,
+ "x": 12,
+ "y": 87
+ },
+ "name": "Field data evictions",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "none"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(elasticsearch_indices_fielddata_evictions{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "query cache内存占用(byte)",
+ "id": "e9632f58-8186-43bf-81b1-c57e91078e35",
+ "layout": {
+ "h": 7,
+ "i": "e9632f58-8186-43bf-81b1-c57e91078e35",
+ "w": 8,
+ "x": 0,
+ "y": 89
+ },
+ "name": "Query cache size",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_query_cache_memory_size_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "query cache平均每秒内存剔除次数",
+ "id": "e1145b0d-b839-4189-bd02-d955ae3dbcf3",
+ "layout": {
+ "h": 7,
+ "i": "e1145b0d-b839-4189-bd02-d955ae3dbcf3",
+ "w": 8,
+ "x": 8,
+ "y": 89
+ },
+ "name": "Query cache evictions",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "none"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(elasticsearch_indices_query_cache_evictions{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "老版本的filter cache内存剔除次数",
+ "id": "14ce9ebf-5ff7-42da-9628-8746e18fe32b",
+ "layout": {
+ "h": 7,
+ "i": "14ce9ebf-5ff7-42da-9628-8746e18fe32b",
+ "w": 8,
+ "x": 16,
+ "y": 89
+ },
+ "name": "Evictions from filter cache",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "none"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(elasticsearch_indices_filter_cache_evictions{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}[5m])",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "f645ba3f-d2eb-4335-a2ff-56037184c779",
+ "layout": {
+ "h": 1,
+ "i": "f645ba3f-d2eb-4335-a2ff-56037184c779",
+ "w": 24,
+ "x": 0,
+ "y": 96
+ },
+ "name": "Segments",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "segment个数",
+ "id": "7f3f74ca-a8ca-4d07-b17a-72bb198f9726",
+ "layout": {
+ "h": 7,
+ "i": "7f3f74ca-a8ca-4d07-b17a-72bb198f9726",
+ "w": 12,
+ "x": 0,
+ "y": 97
+ },
+ "name": "Count of index segments",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segments_count{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "segment内存占用(byte)",
+ "id": "0d2bbc28-2211-4097-acbc-e1f72b3cad88",
+ "layout": {
+ "h": 7,
+ "i": "0d2bbc28-2211-4097-acbc-e1f72b3cad88",
+ "w": 12,
+ "x": 12,
+ "y": 97
+ },
+ "name": "Current memory size of segments in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segments_memory_bytes{instance=\"$instance\",cluster=\"$cluster\",name=~\"$name\"}",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "6e28b8b4-dc24-45fb-9d60-351f08716296",
+ "layout": {
+ "h": 1,
+ "i": "6e28b8b4-dc24-45fb-9d60-351f08716296",
+ "w": 24,
+ "x": 0,
+ "y": 104
+ },
+ "name": "Indices: Count of documents and Total size",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "主分片文档数",
+ "id": "8620f336-4e26-40db-8c85-6a336a5fb7c9",
+ "layout": {
+ "h": 7,
+ "i": "8620f336-4e26-40db-8c85-6a336a5fb7c9",
+ "w": 24,
+ "x": 0,
+ "y": 105
+ },
+ "name": "Count of documents with only primary shards",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_docs_primary{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "主分片索引容量(byte)",
+ "id": "d4541f1a-136f-4b3e-b5e9-8cc92267aa8a",
+ "layout": {
+ "h": 7,
+ "i": "d4541f1a-136f-4b3e-b5e9-8cc92267aa8a",
+ "w": 24,
+ "x": 0,
+ "y": 107
+ },
+ "name": "Total size of stored index data in bytes with only primary shards on all nodes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_store_size_bytes_primary{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "所有分片索引容量(byte)",
+ "id": "66926f5a-d562-428e-b48b-d69b4d705b8f",
+ "layout": {
+ "h": 7,
+ "i": "66926f5a-d562-428e-b48b-d69b4d705b8f",
+ "w": 24,
+ "x": 0,
+ "y": 109
+ },
+ "name": "Total size of stored index data in bytes with all shards on all nodes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_store_size_bytes_total{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "c92992cf-3b56-4472-9278-9103b8fe55b7",
+ "layout": {
+ "h": 1,
+ "i": "c92992cf-3b56-4472-9278-9103b8fe55b7",
+ "w": 24,
+ "x": 0,
+ "y": 116
+ },
+ "name": "Indices: Index writer",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "主分片索引写入数据量(byte)",
+ "id": "7837ae60-c490-4e8a-a604-133cdeb5a3e7",
+ "layout": {
+ "h": 7,
+ "i": "7837ae60-c490-4e8a-a604-133cdeb5a3e7",
+ "w": 24,
+ "x": 0,
+ "y": 117
+ },
+ "name": "Index writer with only primary shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_index_writer_memory_bytes_primary{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "所有分片索引写入数据量(byte)",
+ "id": "8f200ba5-8c9b-4a26-b7b3-307cdb504316",
+ "layout": {
+ "h": 7,
+ "i": "8f200ba5-8c9b-4a26-b7b3-307cdb504316",
+ "w": 24,
+ "x": 0,
+ "y": 119
+ },
+ "name": "Index writer with all shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_index_writer_memory_bytes_total{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "fb8887c4-c0a4-44c1-83da-f077fa0feb9d",
+ "layout": {
+ "h": 1,
+ "i": "fb8887c4-c0a4-44c1-83da-f077fa0feb9d",
+ "w": 24,
+ "x": 0,
+ "y": 126
+ },
+ "name": "Indices: Segments",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "主分片segment数",
+ "id": "d20fb2f9-0e51-4bd1-a580-1308349e0b71",
+ "layout": {
+ "h": 7,
+ "i": "d20fb2f9-0e51-4bd1-a580-1308349e0b71",
+ "w": 24,
+ "x": 0,
+ "y": 127
+ },
+ "name": "Segments with only primary shards on all nodes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_count_primary{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "所有分片segment总数",
+ "id": "b8f5151d-d7d9-4cf2-822e-56ce5b0f58b2",
+ "layout": {
+ "h": 7,
+ "i": "b8f5151d-d7d9-4cf2-822e-56ce5b0f58b2",
+ "w": 24,
+ "x": 0,
+ "y": 129
+ },
+ "name": "Segments with all shards on all nodes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_count_total{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "主分片segment容量",
+ "id": "c6c1eee0-4c93-462e-8c53-f369fee48e46",
+ "layout": {
+ "h": 7,
+ "i": "c6c1eee0-4c93-462e-8c53-f369fee48e46",
+ "w": 24,
+ "x": 0,
+ "y": 131
+ },
+ "name": "Size of segments with only primary shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_memory_bytes_primary{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "所有分片segment容量",
+ "id": "d9b36d80-c753-4bde-8e6d-29af8c5a7e83",
+ "layout": {
+ "h": 7,
+ "i": "d9b36d80-c753-4bde-8e6d-29af8c5a7e83",
+ "w": 24,
+ "x": 0,
+ "y": 133
+ },
+ "name": "Size of segments with all shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_memory_bytes_total{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "abf4df7c-975a-493e-8951-be33c7d3ec6b",
+ "layout": {
+ "h": 1,
+ "i": "abf4df7c-975a-493e-8951-be33c7d3ec6b",
+ "w": 24,
+ "x": 0,
+ "y": 140
+ },
+ "name": "Indices: Doc values",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "主分片doc value内存占用(byte)",
+ "id": "205f362a-ad57-4cb8-ac3f-7afdb5dc87d6",
+ "layout": {
+ "h": 7,
+ "i": "205f362a-ad57-4cb8-ac3f-7afdb5dc87d6",
+ "w": 24,
+ "x": 0,
+ "y": 141
+ },
+ "name": "Doc values with only primary shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_doc_values_memory_bytes_primary{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "所有分片doc value内存占用(byte)",
+ "id": "ea838448-825c-4627-a09d-19db6c1e4a14",
+ "layout": {
+ "h": 7,
+ "i": "ea838448-825c-4627-a09d-19db6c1e4a14",
+ "w": 24,
+ "x": 0,
+ "y": 143
+ },
+ "name": "Doc values with all shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_doc_values_memory_bytes_total{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "43768cea-7ee8-430a-9aa3-e8c38817de55",
+ "layout": {
+ "h": 1,
+ "i": "43768cea-7ee8-430a-9aa3-e8c38817de55",
+ "w": 24,
+ "x": 0,
+ "y": 150
+ },
+ "name": "Indices: Fields",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "分片field内存占用(byte)",
+ "id": "6f8efb01-aac1-427c-bf7b-d6b90a968185",
+ "layout": {
+ "h": 7,
+ "i": "6f8efb01-aac1-427c-bf7b-d6b90a968185",
+ "w": 24,
+ "x": 0,
+ "y": 151
+ },
+ "name": "Size of fields with only primary shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_fields_memory_bytes_primary{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "所有分片field内存占用(byte)",
+ "id": "b82b390b-8f72-427b-9d1f-37d279f94366",
+ "layout": {
+ "h": 7,
+ "i": "b82b390b-8f72-427b-9d1f-37d279f94366",
+ "w": 24,
+ "x": 0,
+ "y": 153
+ },
+ "name": "Size of fields with all shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_fields_memory_bytes_total{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "41285e05-696c-4a94-946f-f75021316665",
+ "layout": {
+ "h": 1,
+ "i": "41285e05-696c-4a94-946f-f75021316665",
+ "w": 24,
+ "x": 0,
+ "y": 160
+ },
+ "name": "Indices: Fixed bit",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "主分片fixed bit set内存占用(byte)",
+ "id": "707cfc5f-cdbe-43dc-9d1f-f79e306ca7ff",
+ "layout": {
+ "h": 7,
+ "i": "707cfc5f-cdbe-43dc-9d1f-f79e306ca7ff",
+ "w": 24,
+ "x": 0,
+ "y": 161
+ },
+ "name": "Size of fixed bit with only primary shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_fixed_bit_set_memory_bytes_primary{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "所有分片fixed bit set内存占用(byte)",
+ "id": "ee949fc8-2c50-4ca3-944f-b42030439968",
+ "layout": {
+ "h": 7,
+ "i": "ee949fc8-2c50-4ca3-944f-b42030439968",
+ "w": 24,
+ "x": 0,
+ "y": 163
+ },
+ "name": "Size of fixed bit with all shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_fixed_bit_set_memory_bytes_total{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "23141b77-a525-44b1-a3b8-9ff4a65af597",
+ "layout": {
+ "h": 1,
+ "i": "23141b77-a525-44b1-a3b8-9ff4a65af597",
+ "w": 24,
+ "x": 0,
+ "y": 170
+ },
+ "name": "Indices: Norms",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "主分片normalization factor内存占用(byte)",
+ "id": "167f10ca-179d-4dfd-ba1d-e2184be993be",
+ "layout": {
+ "h": 7,
+ "i": "167f10ca-179d-4dfd-ba1d-e2184be993be",
+ "w": 24,
+ "x": 0,
+ "y": 171
+ },
+ "name": "Size of norms with only primary shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_norms_memory_bytes_primary{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "所有分片normalization factor内存占用(byte)",
+ "id": "41fba22d-bbb0-4cbd-a8cd-c7910991cecf",
+ "layout": {
+ "h": 7,
+ "i": "41fba22d-bbb0-4cbd-a8cd-c7910991cecf",
+ "w": 24,
+ "x": 0,
+ "y": 173
+ },
+ "name": "Size of norms with all shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_norms_memory_bytes_total{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "1f40b15b-8f0e-4c57-a1fd-602242195863",
+ "layout": {
+ "h": 1,
+ "i": "1f40b15b-8f0e-4c57-a1fd-602242195863",
+ "w": 24,
+ "x": 0,
+ "y": 180
+ },
+ "name": "Indices: Points",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "主分片point内存占用(byte)",
+ "id": "24e451cb-3835-4172-926b-54a33aa3b9b4",
+ "layout": {
+ "h": 7,
+ "i": "24e451cb-3835-4172-926b-54a33aa3b9b4",
+ "w": 24,
+ "x": 0,
+ "y": 181
+ },
+ "name": "Size of points with only primary shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_points_memory_bytes_primary{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "所有分片point内存占用(byte)",
+ "id": "79665ebe-5804-4809-af68-15d3a72a2c2c",
+ "layout": {
+ "h": 7,
+ "i": "79665ebe-5804-4809-af68-15d3a72a2c2c",
+ "w": 24,
+ "x": 0,
+ "y": 183
+ },
+ "name": "Size of points with all shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_points_memory_bytes_total{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "a62b3a9f-f3ac-4c4e-9d20-bde6c9eb3372",
+ "layout": {
+ "h": 1,
+ "i": "a62b3a9f-f3ac-4c4e-9d20-bde6c9eb3372",
+ "w": 24,
+ "x": 0,
+ "y": 190
+ },
+ "name": "Indices: Terms",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "主分片term内存占用(byte)",
+ "id": "c464e467-a6cf-4d60-8108-fb0359c801d8",
+ "layout": {
+ "h": 7,
+ "i": "c464e467-a6cf-4d60-8108-fb0359c801d8",
+ "w": 24,
+ "x": 0,
+ "y": 191
+ },
+ "name": "Size of terms with only primary shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_terms_memory_primary{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "所有分片term内存占用(byte)",
+ "id": "b0befc26-33c8-44f3-aa3e-80a9ed99180a",
+ "layout": {
+ "h": 7,
+ "i": "b0befc26-33c8-44f3-aa3e-80a9ed99180a",
+ "w": 24,
+ "x": 0,
+ "y": 193
+ },
+ "name": "Number of terms with all shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_terms_memory_total{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "df60be90-b370-4995-93c6-b26ee8584e6f",
+ "layout": {
+ "h": 1,
+ "i": "df60be90-b370-4995-93c6-b26ee8584e6f",
+ "w": 24,
+ "x": 0,
+ "y": 200
+ },
+ "name": "Indices: Terms",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "所有分片version map内存占用(byte)",
+ "id": "a2778c3a-6473-4482-bade-398904922e2f",
+ "layout": {
+ "h": 7,
+ "i": "a2778c3a-6473-4482-bade-398904922e2f",
+ "w": 24,
+ "x": 0,
+ "y": 201
+ },
+ "name": "Size of version map with only primary shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_version_map_memory_bytes_primary{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "所有分片version map内存占用(byte)",
+ "id": "322b0c1b-982a-4654-8552-7f246f496480",
+ "layout": {
+ "h": 7,
+ "i": "322b0c1b-982a-4654-8552-7f246f496480",
+ "w": 24,
+ "x": 0,
+ "y": 203
+ },
+ "name": "Size of version map with all shards on all nodes in bytes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "elasticsearch_indices_segment_version_map_memory_bytes_total{instance=~\"$instance\"}",
+ "legend": "{{index}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "label_values(elasticsearch_indices_docs,cluster)",
+ "name": "cluster",
+ "options": [
+ "elasticsearch-cluster"
+ ],
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ },
+ {
+ "definition": "label_values(elasticsearch_indices_docs{cluster=\"$cluster\", name!=\"\"},instance)",
+ "name": "instance",
+ "options": [
+ "10.206.0.7:9200"
+ ],
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ },
+ {
+ "allOption": true,
+ "definition": "label_values(elasticsearch_indices_docs{instance=\"$instance\",cluster=\"$cluster\", name!=\"\"},name)",
+ "multi": true,
+ "name": "name",
+ "options": [
+ "node-2",
+ "node-1",
+ "node-3"
+ ],
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ }
+ ],
+ "version": "3.0.0"
+ }
}
\ No newline at end of file
diff --git a/docker/integrations/http/dashboards/http_response_by_categraf.json b/docker/integrations/http/dashboards/http_response_by_categraf.json
index d2728aa957012626852d5cf540fcc37e4fd59098..221945133ecd34729e3fb4a0b6bd66900b5f5520 100644
--- a/docker/integrations/http/dashboards/http_response_by_categraf.json
+++ b/docker/integrations/http/dashboards/http_response_by_categraf.json
@@ -1,112 +1,121 @@
{
- "name": "http detect",
- "tags": "",
- "ident": "",
- "configs": {
- "version": "2.0.0",
- "panels": [
- {
- "id": "0cd7c8aa-456c-4522-97ef-0b1710e7af8a",
- "type": "row",
- "name": "Default chart group",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0,
- "i": "0cd7c8aa-456c-4522-97ef-0b1710e7af8a"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "max(http_response_result_code) by (target)",
- "legend": "UP?"
- },
- {
- "expr": "max(http_response_response_code) by (target)",
- "refId": "B",
- "legend": "status code"
- },
- {
- "expr": "max(http_response_response_time) by (target)",
- "refId": "C",
- "legend": "latency(s)"
- },
- {
- "expr": "max(http_response_cert_expire_timestamp) by (target) - time()",
- "refId": "D",
- "legend": "cert expire"
- }
- ],
- "name": "URL Details",
- "custom": {
- "showHeader": true,
- "calc": "lastNotNull",
- "displayMode": "labelValuesToRows",
- "aggrDimension": "target"
- },
- "options": {
- "valueMappings": [],
- "standardOptions": {}
- },
- "overrides": [
- {
- "properties": {
- "valueMappings": [
- {
- "type": "special",
- "match": {
- "special": 0
- },
- "result": {
- "text": "UP",
- "color": "#417505"
- }
- },
- {
- "type": "range",
- "match": {
- "special": 1,
- "from": 1
- },
- "result": {
- "text": "DOWN",
- "color": "#e90f0f"
- }
- }
- ],
- "standardOptions": {}
- },
- "matcher": {
- "value": "A"
- }
- },
- {
- "type": "special",
- "matcher": {
- "value": "D"
- },
- "properties": {
- "standardOptions": {
- "util": "humantimeSeconds"
- }
- }
- }
- ],
- "version": "2.0.0",
- "type": "table",
- "layout": {
- "h": 15,
- "w": 24,
- "x": 0,
- "y": 1,
- "i": "3674dbfa-243a-49f6-baa5-b7f887c1afb0"
- },
- "id": "3674dbfa-243a-49f6-baa5-b7f887c1afb0"
- }
- ]
- }
+ "name": "http detect",
+ "tags": "",
+ "ident": "",
+ "configs": {
+ "panels": [
+ {
+ "collapsed": true,
+ "id": "0cd7c8aa-456c-4522-97ef-0b1710e7af8a",
+ "layout": {
+ "h": 1,
+ "i": "0cd7c8aa-456c-4522-97ef-0b1710e7af8a",
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "name": "Default chart group",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "aggrDimension": "target",
+ "calc": "lastNotNull",
+ "displayMode": "labelValuesToRows",
+ "showHeader": true
+ },
+ "id": "3674dbfa-243a-49f6-baa5-b7f887c1afb0",
+ "layout": {
+ "h": 15,
+ "i": "3674dbfa-243a-49f6-baa5-b7f887c1afb0",
+ "w": 24,
+ "x": 0,
+ "y": 1
+ },
+ "name": "URL Details",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": []
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "value": "A"
+ },
+ "properties": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "special": 0
+ },
+ "result": {
+ "color": "#417505",
+ "text": "UP"
+ },
+ "type": "special"
+ },
+ {
+ "match": {
+ "from": 1,
+ "special": 1
+ },
+ "result": {
+ "color": "#e90f0f",
+ "text": "DOWN"
+ },
+ "type": "range"
+ }
+ ]
+ }
+ },
+ {
+ "matcher": {
+ "value": "D"
+ },
+ "properties": {
+ "standardOptions": {
+ "util": "humantimeSeconds"
+ }
+ },
+ "type": "special"
+ }
+ ],
+ "targets": [
+ {
+ "expr": "max(http_response_result_code) by (target)",
+ "legend": "UP?",
+ "refId": "A"
+ },
+ {
+ "expr": "max(http_response_response_code) by (target)",
+ "legend": "status code",
+ "refId": "B"
+ },
+ {
+ "expr": "max(http_response_response_time) by (target)",
+ "legend": "latency(s)",
+ "refId": "C"
+ },
+ {
+ "expr": "max(http_response_cert_expire_timestamp) by (target) - time()",
+ "legend": "cert expire",
+ "refId": "D"
+ }
+ ],
+ "type": "table",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "version": "3.0.0",
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ }
+ ]
+ }
}
\ No newline at end of file
diff --git a/docker/integrations/jmx/dashboards/jmx_by_exporter.json b/docker/integrations/jmx/dashboards/jmx_by_exporter.json
index ea425c2cef1dd4cfe4a91377d3526722d4a034e5..23a6e670dbe23b3d18644b47929198291cd3b055 100644
--- a/docker/integrations/jmx/dashboards/jmx_by_exporter.json
+++ b/docker/integrations/jmx/dashboards/jmx_by_exporter.json
@@ -1,976 +1,1031 @@
{
- "name": "JMX",
- "tags": "Prometheus JMX",
- "ident": "",
- "configs": {
- "var": [
- {
- "name": "job",
- "definition": "jmx_exporter"
- },
- {
- "name": "instance",
- "definition": "label_values(jmx_scrape_error,instance)"
- }
- ],
- "version": "2.0.0",
- "panels": [
- {
- "id": "a26c5c3d-7b60-4746-bd1f-ca95581cf2fd",
- "type": "row",
- "name": "Basic Info",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0,
- "i": "a26c5c3d-7b60-4746-bd1f-ca95581cf2fd"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "up{job=\"$job\", instance=\"$instance\"}"
- }
- ],
- "name": "Status",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "special",
- "match": {
- "special": 1
- },
- "result": {
- "text": "UP",
- "color": "#1eac02"
- }
- },
- {
- "type": "special",
- "match": {
- "special": 0
- },
- "result": {
- "text": "DOWN",
- "color": "#f00a0a"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 0,
- "y": 1,
- "i": "0721ee76-816b-469f-9c49-2bef94a9299e"
- },
- "id": "0721ee76-816b-469f-9c49-2bef94a9299e"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "time() - process_start_time_seconds{job=\"$job\",instance=\"$instance\"}"
- }
- ],
- "name": "Uptime",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {
- "util": "humantimeSeconds"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 6,
- "y": 1,
- "i": "a55c40fc-dc25-4d2a-8e99-928e02c5ff5d"
- },
- "id": "a55c40fc-dc25-4d2a-8e99-928e02c5ff5d"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "os_available_processors{job=\"$job\",instance=\"$instance\"}"
- }
- ],
- "name": "Available CPUs",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 12,
- "y": 1,
- "i": "60c3389c-808d-4412-b74b-cb762e89a8ad"
- },
- "id": "60c3389c-808d-4412-b74b-cb762e89a8ad"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "os_open_file_descriptor_count{job=\"$job\",instance=\"$instance\"}"
- }
- ],
- "name": "Open file descriptors",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 18,
- "y": 1,
- "i": "1c9a8cca-3578-485e-837d-21618d383065"
- },
- "id": "1c9a8cca-3578-485e-837d-21618d383065"
- },
- {
- "id": "705c90e0-e8b6-4f1c-b35c-c8a785009a20",
- "type": "row",
- "name": "JVM Memory",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 4,
- "i": "705c90e0-e8b6-4f1c-b35c-c8a785009a20"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "jvm_memory_bytes_used{area=\"heap\",job=\"$job\",instance=\"$instance\"}",
- "legend": "Used"
- },
- {
- "expr": "jvm_memory_bytes_max{area=\"heap\",job=\"$job\",instance=\"$instance\"}",
- "refId": "B",
- "legend": "Max"
- }
- ],
- "name": "JVM Memory(heap)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 5,
- "i": "5455e2f2-f6bb-4888-9d88-240d7e12cce2"
- },
- "id": "5455e2f2-f6bb-4888-9d88-240d7e12cce2"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "jvm_memory_bytes_used{area=\"nonheap\",job=\"$job\",instance=\"$instance\"}",
- "legend": "Used"
- },
- {
- "expr": "jvm_memory_bytes_max{area=\"nonheap\",job=\"$job\",instance=\"$instance\"}",
- "refId": "B",
- "legend": "Max"
- }
- ],
- "name": "JVM Memory(nonheap)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 5,
- "i": "765b22a9-1ddc-4c08-8758-684e3c13252b"
- },
- "id": "765b22a9-1ddc-4c08-8758-684e3c13252b"
- },
- {
- "id": "c43aa6f5-7252-400f-bb9f-8c96e436151c",
- "type": "row",
- "name": "Memory Pool",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 12,
- "i": "c43aa6f5-7252-400f-bb9f-8c96e436151c"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "jvm_memory_pool_bytes_max{pool=\"CodeHeap 'non-nmethods'\", job=\"$job\",instance=\"$instance\"}",
- "legend": "Max"
- },
- {
- "expr": "jvm_memory_pool_bytes_used{pool=\"CodeHeap 'non-nmethods'\", job=\"$job\",instance=\"$instance\"}",
- "refId": "B",
- "legend": "Used"
- },
- {
- "expr": "jvm_memory_pool_bytes_committed{pool=\"CodeHeap 'non-nmethods'\", job=\"$job\",instance=\"$instance\"}",
- "refId": "C",
- "legend": "Committed"
- }
- ],
- "name": "CodeHeap 'non-nmethods'",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 0,
- "y": 13,
- "i": "5ab2434c-a905-43c1-a563-4cee2dc9dce9"
- },
- "id": "5ab2434c-a905-43c1-a563-4cee2dc9dce9"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "jvm_memory_pool_bytes_max{pool=\"CodeHeap 'profiled nmethods'\", job=\"$job\",instance=\"$instance\"}",
- "legend": "Max"
- },
- {
- "expr": "jvm_memory_pool_bytes_used{pool=\"CodeHeap 'profiled nmethods'\", job=\"$job\",instance=\"$instance\"}",
- "refId": "B",
- "legend": "Used"
- },
- {
- "expr": "jvm_memory_pool_bytes_committed{pool=\"CodeHeap 'profiled nmethods'\", job=\"$job\",instance=\"$instance\"}",
- "refId": "C",
- "legend": "Committed"
- }
- ],
- "name": "CodeHeap 'profiled nmethods'",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 13,
- "i": "bfe16d07-91ff-44e6-87bc-9d5d93d2ebd6"
- },
- "id": "bfe16d07-91ff-44e6-87bc-9d5d93d2ebd6"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "jvm_memory_pool_bytes_max{pool=\"CodeHeap 'non-profiled nmethods'\", job=\"$job\",instance=\"$instance\"}",
- "legend": "Max"
- },
- {
- "expr": "jvm_memory_pool_bytes_used{pool=\"CodeHeap 'non-profiled nmethods'\", job=\"$job\",instance=\"$instance\"}",
- "refId": "B",
- "legend": "Used"
- },
- {
- "expr": "jvm_memory_pool_bytes_committed{pool=\"CodeHeap 'non-profiled nmethods'\", job=\"$job\",instance=\"$instance\"}",
- "refId": "C",
- "legend": "Committed"
- }
- ],
- "name": "CodeHeap 'non-profiled nmethods'",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 12,
- "y": 13,
- "i": "18d10f97-5ab2-41c4-a3ad-09f2c7a03e1a"
- },
- "id": "18d10f97-5ab2-41c4-a3ad-09f2c7a03e1a"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "jvm_memory_pool_bytes_max{pool=\"G1 Eden Space\", job=\"$job\",instance=\"$instance\"}",
- "legend": "Max"
- },
- {
- "expr": "jvm_memory_pool_bytes_used{pool=\"G1 Eden Space\", job=\"$job\",instance=\"$instance\"}",
- "refId": "B",
- "legend": "Used"
- },
- {
- "expr": "jvm_memory_pool_bytes_committed{pool=\"G1 Eden Space\", job=\"$job\",instance=\"$instance\"}",
- "refId": "C",
- "legend": "Committed"
- }
- ],
- "name": "G1 Eden Space",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 18,
- "y": 13,
- "i": "314a3893-c1d4-4f85-bce0-33ecfda2f521"
- },
- "id": "314a3893-c1d4-4f85-bce0-33ecfda2f521"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "jvm_memory_pool_bytes_max{pool=\"Compressed Class Space\", job=\"$job\",instance=\"$instance\"}",
- "legend": "Max"
- },
- {
- "expr": "jvm_memory_pool_bytes_used{pool=\"Compressed Class Space\", job=\"$job\",instance=\"$instance\"}",
- "refId": "B",
- "legend": "Used"
- },
- {
- "expr": "jvm_memory_pool_bytes_committed{pool=\"Compressed Class Space\", job=\"$job\",instance=\"$instance\"}",
- "refId": "C",
- "legend": "Committed"
- }
- ],
- "name": "Compressed Class Space",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 0,
- "y": 15,
- "i": "1e5f03e7-af5d-447b-9c1b-23d81915e8df"
- },
- "id": "1e5f03e7-af5d-447b-9c1b-23d81915e8df"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "jvm_memory_pool_bytes_max{pool=\"G1 Survivor Space\", job=\"$job\",instance=\"$instance\"}",
- "legend": "Max"
- },
- {
- "expr": "jvm_memory_pool_bytes_used{pool=\"G1 Survivor Space\", job=\"$job\",instance=\"$instance\"}",
- "refId": "B",
- "legend": "Used"
- },
- {
- "expr": "jvm_memory_pool_bytes_committed{pool=\"G1 Survivor Space\", job=\"$job\",instance=\"$instance\"}",
- "refId": "C",
- "legend": "Committed"
- }
- ],
- "name": "G1 Survivor Space",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 15,
- "i": "86a68ff6-238c-4fc9-b77e-3b964e564500"
- },
- "id": "86a68ff6-238c-4fc9-b77e-3b964e564500"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "jvm_memory_pool_bytes_max{pool=\"G1 Old Gen\", job=\"$job\",instance=\"$instance\"}",
- "legend": "Max"
- },
- {
- "expr": "jvm_memory_pool_bytes_used{pool=\"G1 Old Gen\", job=\"$job\",instance=\"$instance\"}",
- "refId": "B",
- "legend": "Used"
- },
- {
- "expr": "jvm_memory_pool_bytes_committed{pool=\"G1 Old Gen\", job=\"$job\",instance=\"$instance\"}",
- "refId": "C",
- "legend": "Committed"
- }
- ],
- "name": "G1 Old Gen",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 12,
- "y": 15,
- "i": "595af7d1-e53c-43b5-8f62-ddb9b3a4ffcb"
- },
- "id": "595af7d1-e53c-43b5-8f62-ddb9b3a4ffcb"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "jvm_memory_pool_bytes_max{pool=\"Metaspace\", job=\"$job\",instance=\"$instance\"}",
- "legend": "Max"
- },
- {
- "expr": "jvm_memory_pool_bytes_used{pool=\"Metaspace\", job=\"$job\",instance=\"$instance\"}",
- "refId": "B",
- "legend": "Used"
- },
- {
- "expr": "jvm_memory_pool_bytes_committed{pool=\"Metaspace\", job=\"$job\",instance=\"$instance\"}",
- "refId": "C",
- "legend": "Committed"
- }
- ],
- "name": "Metaspace",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 18,
- "y": 15,
- "i": "380fdfcb-16a6-4131-abaa-a3911b7de6fa"
- },
- "id": "380fdfcb-16a6-4131-abaa-a3911b7de6fa"
- },
- {
- "id": "0aaf3516-4938-41e3-b7cb-323de6de75d9",
- "type": "row",
- "name": "GC",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 22,
- "i": "0aaf3516-4938-41e3-b7cb-323de6de75d9"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "increase(jvm_gc_collection_seconds_sum{job=\"$job\",instance=~\"$instance\"}[1m])"
- }
- ],
- "name": "过去一分钟GC耗时(秒)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "none"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 23,
- "i": "5303bda0-47c2-4aca-bb12-1da512500f4a"
- },
- "id": "5303bda0-47c2-4aca-bb12-1da512500f4a"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "increase(jvm_gc_collection_seconds_count{job=\"$job\",instance=\"$instance\"}[1m])",
- "legend": ""
- }
- ],
- "name": "过去一分钟GC次数",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "none"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 8,
- "y": 23,
- "i": "cf410459-b5df-4aca-a410-ecda091d6097"
- },
- "id": "cf410459-b5df-4aca-a410-ecda091d6097"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "increase(jvm_gc_collection_seconds_sum{job=\"$job\",instance=\"$instance\"}[1m])/increase(jvm_gc_collection_seconds_count{job=\"$job\",instance=\"$instance\"}[1m])",
- "legend": ""
- }
- ],
- "name": "过去一分钟每次GC平均耗时(秒)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "none"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "bars",
- "stack": "off",
- "fillOpacity": 1
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 23,
- "i": "30feb928-b7c3-4e71-aeeb-cc10994b313c"
- },
- "id": "30feb928-b7c3-4e71-aeeb-cc10994b313c"
- },
- {
- "id": "fd6d0772-40d7-4211-b9bb-601e35fb6431",
- "type": "row",
- "name": "Threads and Class loading",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 30,
- "i": "fd6d0772-40d7-4211-b9bb-601e35fb6431"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "jvm_threads_current{job=\"$job\",instance=\"$instance\"}",
- "legend": "current"
- },
- {
- "expr": "jvm_threads_daemon{job=\"$job\",instance=\"$instance\"}",
- "refId": "B",
- "legend": "daemon"
- },
- {
- "expr": "jvm_threads_deadlocked{job=\"$job\",instance=\"$instance\"}",
- "refId": "C",
- "legend": "deadlocked"
- }
- ],
- "name": "Threads",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 31,
- "i": "65c74a2b-5f01-4491-b45a-dffe4a9b678a"
- },
- "id": "65c74a2b-5f01-4491-b45a-dffe4a9b678a"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "jvm_classes_loaded{job=\"$job\", instance=\"$instance\"}"
- }
- ],
- "name": "Class loading",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 31,
- "i": "2da16907-adf7-4561-9338-4254c89a311b"
- },
- "id": "2da16907-adf7-4561-9338-4254c89a311b"
- },
- {
- "id": "12fe119e-54f0-4219-9846-ac982c1e9b4d",
- "type": "row",
- "name": "Physical memory",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 38,
- "i": "12fe119e-54f0-4219-9846-ac982c1e9b4d"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "os_total_physical_memory_bytes{job=\"$job\",instance=\"$instance\"}",
- "legend": "Total physical memory"
- },
- {
- "expr": "os_committed_virtual_memory_bytes{job=\"$job\",instance=\"$instance\"}",
- "refId": "B",
- "legend": "Committed virtual memory"
- },
- {
- "expr": "os_free_physical_memory_bytes{job=\"$job\",instance=\"$instance\"}",
- "refId": "C",
- "legend": "Free physical memory"
- }
- ],
- "name": "Physical memory",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 39,
- "i": "5a859147-edfc-4dac-9457-8a928213bc00"
- },
- "id": "5a859147-edfc-4dac-9457-8a928213bc00"
- }
- ]
- }
+ "name": "JMX",
+ "tags": "Prometheus JMX",
+ "ident": "",
+ "configs": {
+ "panels": [
+ {
+ "collapsed": true,
+ "id": "a26c5c3d-7b60-4746-bd1f-ca95581cf2fd",
+ "layout": {
+ "h": 1,
+ "i": "a26c5c3d-7b60-4746-bd1f-ca95581cf2fd",
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "name": "Basic Info",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "0721ee76-816b-469f-9c49-2bef94a9299e",
+ "layout": {
+ "h": 3,
+ "i": "0721ee76-816b-469f-9c49-2bef94a9299e",
+ "w": 6,
+ "x": 0,
+ "y": 1
+ },
+ "name": "Status",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "special": 1
+ },
+ "result": {
+ "color": "#1eac02",
+ "text": "UP"
+ },
+ "type": "special"
+ },
+ {
+ "match": {
+ "special": 0
+ },
+ "result": {
+ "color": "#f00a0a",
+ "text": "DOWN"
+ },
+ "type": "special"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "up{job=\"$job\", instance=\"$instance\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "a55c40fc-dc25-4d2a-8e99-928e02c5ff5d",
+ "layout": {
+ "h": 3,
+ "i": "a55c40fc-dc25-4d2a-8e99-928e02c5ff5d",
+ "w": 6,
+ "x": 6,
+ "y": 1
+ },
+ "name": "Uptime",
+ "options": {
+ "standardOptions": {
+ "util": "humantimeSeconds"
+ }
+ },
+ "targets": [
+ {
+ "expr": "time() - process_start_time_seconds{job=\"$job\",instance=\"$instance\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "60c3389c-808d-4412-b74b-cb762e89a8ad",
+ "layout": {
+ "h": 3,
+ "i": "60c3389c-808d-4412-b74b-cb762e89a8ad",
+ "w": 6,
+ "x": 12,
+ "y": 1
+ },
+ "name": "Available CPUs",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "os_available_processors{job=\"$job\",instance=\"$instance\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "1c9a8cca-3578-485e-837d-21618d383065",
+ "layout": {
+ "h": 3,
+ "i": "1c9a8cca-3578-485e-837d-21618d383065",
+ "w": 6,
+ "x": 18,
+ "y": 1
+ },
+ "name": "Open file descriptors",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "os_open_file_descriptor_count{job=\"$job\",instance=\"$instance\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "705c90e0-e8b6-4f1c-b35c-c8a785009a20",
+ "layout": {
+ "h": 1,
+ "i": "705c90e0-e8b6-4f1c-b35c-c8a785009a20",
+ "w": 24,
+ "x": 0,
+ "y": 4
+ },
+ "name": "JVM Memory",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "5455e2f2-f6bb-4888-9d88-240d7e12cce2",
+ "layout": {
+ "h": 7,
+ "i": "5455e2f2-f6bb-4888-9d88-240d7e12cce2",
+ "w": 12,
+ "x": 0,
+ "y": 5
+ },
+ "name": "JVM Memory(heap)",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "jvm_memory_bytes_used{area=\"heap\",job=\"$job\",instance=\"$instance\"}",
+ "legend": "Used",
+ "refId": "A"
+ },
+ {
+ "expr": "jvm_memory_bytes_max{area=\"heap\",job=\"$job\",instance=\"$instance\"}",
+ "legend": "Max",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "765b22a9-1ddc-4c08-8758-684e3c13252b",
+ "layout": {
+ "h": 7,
+ "i": "765b22a9-1ddc-4c08-8758-684e3c13252b",
+ "w": 12,
+ "x": 12,
+ "y": 5
+ },
+ "name": "JVM Memory(nonheap)",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "jvm_memory_bytes_used{area=\"nonheap\",job=\"$job\",instance=\"$instance\"}",
+ "legend": "Used",
+ "refId": "A"
+ },
+ {
+ "expr": "jvm_memory_bytes_max{area=\"nonheap\",job=\"$job\",instance=\"$instance\"}",
+ "legend": "Max",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "c43aa6f5-7252-400f-bb9f-8c96e436151c",
+ "layout": {
+ "h": 1,
+ "i": "c43aa6f5-7252-400f-bb9f-8c96e436151c",
+ "w": 24,
+ "x": 0,
+ "y": 12
+ },
+ "name": "Memory Pool",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "5ab2434c-a905-43c1-a563-4cee2dc9dce9",
+ "layout": {
+ "h": 7,
+ "i": "5ab2434c-a905-43c1-a563-4cee2dc9dce9",
+ "w": 6,
+ "x": 0,
+ "y": 13
+ },
+ "name": "CodeHeap 'non-nmethods'",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "jvm_memory_pool_bytes_max{pool=\"CodeHeap 'non-nmethods'\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Max",
+ "refId": "A"
+ },
+ {
+ "expr": "jvm_memory_pool_bytes_used{pool=\"CodeHeap 'non-nmethods'\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Used",
+ "refId": "B"
+ },
+ {
+ "expr": "jvm_memory_pool_bytes_committed{pool=\"CodeHeap 'non-nmethods'\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Committed",
+ "refId": "C"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "bfe16d07-91ff-44e6-87bc-9d5d93d2ebd6",
+ "layout": {
+ "h": 7,
+ "i": "bfe16d07-91ff-44e6-87bc-9d5d93d2ebd6",
+ "w": 6,
+ "x": 6,
+ "y": 13
+ },
+ "name": "CodeHeap 'profiled nmethods'",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "jvm_memory_pool_bytes_max{pool=\"CodeHeap 'profiled nmethods'\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Max",
+ "refId": "A"
+ },
+ {
+ "expr": "jvm_memory_pool_bytes_used{pool=\"CodeHeap 'profiled nmethods'\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Used",
+ "refId": "B"
+ },
+ {
+ "expr": "jvm_memory_pool_bytes_committed{pool=\"CodeHeap 'profiled nmethods'\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Committed",
+ "refId": "C"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "18d10f97-5ab2-41c4-a3ad-09f2c7a03e1a",
+ "layout": {
+ "h": 7,
+ "i": "18d10f97-5ab2-41c4-a3ad-09f2c7a03e1a",
+ "w": 6,
+ "x": 12,
+ "y": 13
+ },
+ "name": "CodeHeap 'non-profiled nmethods'",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "jvm_memory_pool_bytes_max{pool=\"CodeHeap 'non-profiled nmethods'\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Max",
+ "refId": "A"
+ },
+ {
+ "expr": "jvm_memory_pool_bytes_used{pool=\"CodeHeap 'non-profiled nmethods'\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Used",
+ "refId": "B"
+ },
+ {
+ "expr": "jvm_memory_pool_bytes_committed{pool=\"CodeHeap 'non-profiled nmethods'\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Committed",
+ "refId": "C"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "314a3893-c1d4-4f85-bce0-33ecfda2f521",
+ "layout": {
+ "h": 7,
+ "i": "314a3893-c1d4-4f85-bce0-33ecfda2f521",
+ "w": 6,
+ "x": 18,
+ "y": 13
+ },
+ "name": "G1 Eden Space",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "jvm_memory_pool_bytes_max{pool=\"G1 Eden Space\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Max",
+ "refId": "A"
+ },
+ {
+ "expr": "jvm_memory_pool_bytes_used{pool=\"G1 Eden Space\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Used",
+ "refId": "B"
+ },
+ {
+ "expr": "jvm_memory_pool_bytes_committed{pool=\"G1 Eden Space\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Committed",
+ "refId": "C"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "1e5f03e7-af5d-447b-9c1b-23d81915e8df",
+ "layout": {
+ "h": 7,
+ "i": "1e5f03e7-af5d-447b-9c1b-23d81915e8df",
+ "w": 6,
+ "x": 0,
+ "y": 15
+ },
+ "name": "Compressed Class Space",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "jvm_memory_pool_bytes_max{pool=\"Compressed Class Space\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Max",
+ "refId": "A"
+ },
+ {
+ "expr": "jvm_memory_pool_bytes_used{pool=\"Compressed Class Space\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Used",
+ "refId": "B"
+ },
+ {
+ "expr": "jvm_memory_pool_bytes_committed{pool=\"Compressed Class Space\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Committed",
+ "refId": "C"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "86a68ff6-238c-4fc9-b77e-3b964e564500",
+ "layout": {
+ "h": 7,
+ "i": "86a68ff6-238c-4fc9-b77e-3b964e564500",
+ "w": 6,
+ "x": 6,
+ "y": 15
+ },
+ "name": "G1 Survivor Space",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "jvm_memory_pool_bytes_max{pool=\"G1 Survivor Space\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Max",
+ "refId": "A"
+ },
+ {
+ "expr": "jvm_memory_pool_bytes_used{pool=\"G1 Survivor Space\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Used",
+ "refId": "B"
+ },
+ {
+ "expr": "jvm_memory_pool_bytes_committed{pool=\"G1 Survivor Space\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Committed",
+ "refId": "C"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "595af7d1-e53c-43b5-8f62-ddb9b3a4ffcb",
+ "layout": {
+ "h": 7,
+ "i": "595af7d1-e53c-43b5-8f62-ddb9b3a4ffcb",
+ "w": 6,
+ "x": 12,
+ "y": 15
+ },
+ "name": "G1 Old Gen",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "jvm_memory_pool_bytes_max{pool=\"G1 Old Gen\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Max",
+ "refId": "A"
+ },
+ {
+ "expr": "jvm_memory_pool_bytes_used{pool=\"G1 Old Gen\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Used",
+ "refId": "B"
+ },
+ {
+ "expr": "jvm_memory_pool_bytes_committed{pool=\"G1 Old Gen\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Committed",
+ "refId": "C"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "380fdfcb-16a6-4131-abaa-a3911b7de6fa",
+ "layout": {
+ "h": 7,
+ "i": "380fdfcb-16a6-4131-abaa-a3911b7de6fa",
+ "w": 6,
+ "x": 18,
+ "y": 15
+ },
+ "name": "Metaspace",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "jvm_memory_pool_bytes_max{pool=\"Metaspace\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Max",
+ "refId": "A"
+ },
+ {
+ "expr": "jvm_memory_pool_bytes_used{pool=\"Metaspace\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Used",
+ "refId": "B"
+ },
+ {
+ "expr": "jvm_memory_pool_bytes_committed{pool=\"Metaspace\", job=\"$job\",instance=\"$instance\"}",
+ "legend": "Committed",
+ "refId": "C"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "0aaf3516-4938-41e3-b7cb-323de6de75d9",
+ "layout": {
+ "h": 1,
+ "i": "0aaf3516-4938-41e3-b7cb-323de6de75d9",
+ "w": 24,
+ "x": 0,
+ "y": 22
+ },
+ "name": "GC",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "5303bda0-47c2-4aca-bb12-1da512500f4a",
+ "layout": {
+ "h": 7,
+ "i": "5303bda0-47c2-4aca-bb12-1da512500f4a",
+ "w": 8,
+ "x": 0,
+ "y": 23
+ },
+ "name": "过去一分钟GC耗时(秒)",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "none"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "increase(jvm_gc_collection_seconds_sum{job=\"$job\",instance=~\"$instance\"}[1m])",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "cf410459-b5df-4aca-a410-ecda091d6097",
+ "layout": {
+ "h": 7,
+ "i": "cf410459-b5df-4aca-a410-ecda091d6097",
+ "w": 8,
+ "x": 8,
+ "y": 23
+ },
+ "name": "过去一分钟GC次数",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "none"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "increase(jvm_gc_collection_seconds_count{job=\"$job\",instance=\"$instance\"}[1m])",
+ "legend": "",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "bars",
+ "fillOpacity": 1,
+ "stack": "off"
+ },
+ "id": "30feb928-b7c3-4e71-aeeb-cc10994b313c",
+ "layout": {
+ "h": 7,
+ "i": "30feb928-b7c3-4e71-aeeb-cc10994b313c",
+ "w": 8,
+ "x": 16,
+ "y": 23
+ },
+ "name": "过去一分钟每次GC平均耗时(秒)",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "none"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "increase(jvm_gc_collection_seconds_sum{job=\"$job\",instance=\"$instance\"}[1m])/increase(jvm_gc_collection_seconds_count{job=\"$job\",instance=\"$instance\"}[1m])",
+ "legend": "",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "fd6d0772-40d7-4211-b9bb-601e35fb6431",
+ "layout": {
+ "h": 1,
+ "i": "fd6d0772-40d7-4211-b9bb-601e35fb6431",
+ "w": 24,
+ "x": 0,
+ "y": 30
+ },
+ "name": "Threads and Class loading",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "65c74a2b-5f01-4491-b45a-dffe4a9b678a",
+ "layout": {
+ "h": 7,
+ "i": "65c74a2b-5f01-4491-b45a-dffe4a9b678a",
+ "w": 12,
+ "x": 0,
+ "y": 31
+ },
+ "name": "Threads",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "jvm_threads_current{job=\"$job\",instance=\"$instance\"}",
+ "legend": "current",
+ "refId": "A"
+ },
+ {
+ "expr": "jvm_threads_daemon{job=\"$job\",instance=\"$instance\"}",
+ "legend": "daemon",
+ "refId": "B"
+ },
+ {
+ "expr": "jvm_threads_deadlocked{job=\"$job\",instance=\"$instance\"}",
+ "legend": "deadlocked",
+ "refId": "C"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "2da16907-adf7-4561-9338-4254c89a311b",
+ "layout": {
+ "h": 7,
+ "i": "2da16907-adf7-4561-9338-4254c89a311b",
+ "w": 12,
+ "x": 12,
+ "y": 31
+ },
+ "name": "Class loading",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "jvm_classes_loaded{job=\"$job\", instance=\"$instance\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "12fe119e-54f0-4219-9846-ac982c1e9b4d",
+ "layout": {
+ "h": 1,
+ "i": "12fe119e-54f0-4219-9846-ac982c1e9b4d",
+ "w": 24,
+ "x": 0,
+ "y": 38
+ },
+ "name": "Physical memory",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "5a859147-edfc-4dac-9457-8a928213bc00",
+ "layout": {
+ "h": 7,
+ "i": "5a859147-edfc-4dac-9457-8a928213bc00",
+ "w": 24,
+ "x": 0,
+ "y": 39
+ },
+ "name": "Physical memory",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "os_total_physical_memory_bytes{job=\"$job\",instance=\"$instance\"}",
+ "legend": "Total physical memory",
+ "refId": "A"
+ },
+ {
+ "expr": "os_committed_virtual_memory_bytes{job=\"$job\",instance=\"$instance\"}",
+ "legend": "Committed virtual memory",
+ "refId": "B"
+ },
+ {
+ "expr": "os_free_physical_memory_bytes{job=\"$job\",instance=\"$instance\"}",
+ "legend": "Free physical memory",
+ "refId": "C"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "jmx_exporter",
+ "name": "job",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ },
+ {
+ "definition": "label_values(jmx_scrape_error,instance)",
+ "name": "instance",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ }
+ ],
+ "version": "3.0.0"
+ }
}
\ No newline at end of file
diff --git a/docker/integrations/kafka/dashboards/kafka_by_exporter.json b/docker/integrations/kafka/dashboards/kafka_by_exporter.json
index 9fefde5f71a6dd6668cb346e82ff2c5a0c345691..9d2ed98ab99e1c679a3e7f6f03494f80775166d0 100644
--- a/docker/integrations/kafka/dashboards/kafka_by_exporter.json
+++ b/docker/integrations/kafka/dashboards/kafka_by_exporter.json
@@ -3,357 +3,390 @@
"tags": "Kafka Prometheus ",
"ident": "",
"configs": {
- "var": [
- {
- "name": "instance",
- "definition": "label_values(kafka_brokers, instance)"
- },
- {
- "name": "job",
- "definition": "label_values(kafka_brokers, job)"
- }
- ],
- "version": "2.0.0",
"panels": [
{
+ "collapsed": true,
"id": "a3ac9979-6e3a-42ae-9d52-ebddb8960dc4",
- "type": "row",
- "name": "overview",
"layout": {
"h": 1,
+ "i": "a3ac9979-6e3a-42ae-9d52-ebddb8960dc4",
"w": 24,
"x": 0,
- "y": 0,
- "i": "a3ac9979-6e3a-42ae-9d52-ebddb8960dc4"
+ "y": 0
},
- "collapsed": true
+ "name": "overview",
+ "type": "row"
},
{
- "targets": [
- {
- "refId": "A",
- "expr": "count(count by (topic) (kafka_topic_partitions))"
- }
- ],
- "name": "topics",
"custom": {
- "textMode": "value",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
"textSize": {
"value": 50
}
},
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
+ "id": "ed68dc7b-4f01-4aef-ab10-20158aadfab7",
"layout": {
"h": 3,
+ "i": "ed68dc7b-4f01-4aef-ab10-20158aadfab7",
"w": 8,
"x": 8,
- "y": 1,
- "i": "ed68dc7b-4f01-4aef-ab10-20158aadfab7"
+ "y": 1
+ },
+ "name": "topics",
+ "options": {
+ "standardOptions": {}
},
- "id": "ed68dc7b-4f01-4aef-ab10-20158aadfab7"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "kafka_brokers"
+ "expr": "count(count by (topic) (kafka_topic_partitions))",
+ "refId": "A"
}
],
- "name": "brokers",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "value",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
"textSize": {
"value": 50
}
},
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
+ "id": "3678c9d7-cb0a-4114-a0cd-7a06b976f6b8",
"layout": {
"h": 3,
+ "i": "3678c9d7-cb0a-4114-a0cd-7a06b976f6b8",
"w": 8,
"x": 0,
- "y": 1,
- "i": "3678c9d7-cb0a-4114-a0cd-7a06b976f6b8"
+ "y": 1
+ },
+ "name": "brokers",
+ "options": {
+ "standardOptions": {}
},
- "id": "3678c9d7-cb0a-4114-a0cd-7a06b976f6b8"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "sum(kafka_topic_partitions)"
+ "expr": "kafka_brokers",
+ "refId": "A"
}
],
- "name": "partitions",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "value",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
"textSize": {
"value": 50
}
},
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
+ "id": "8adb0df0-13bc-452a-ac63-209ae3748d77",
"layout": {
"h": 3,
+ "i": "8adb0df0-13bc-452a-ac63-209ae3748d77",
"w": 8,
"x": 16,
- "y": 1,
- "i": "8adb0df0-13bc-452a-ac63-209ae3748d77"
+ "y": 1
+ },
+ "name": "partitions",
+ "options": {
+ "standardOptions": {}
},
- "id": "8adb0df0-13bc-452a-ac63-209ae3748d77"
+ "targets": [
+ {
+ "expr": "sum(kafka_topic_partitions)",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
+ "collapsed": true,
"id": "7071dc1f-9410-4899-9c43-206a11bfaab2",
- "type": "row",
- "name": "throughput",
"layout": {
"h": 1,
+ "i": "7071dc1f-9410-4899-9c43-206a11bfaab2",
"w": 24,
"x": 0,
- "y": 4,
- "i": "7071dc1f-9410-4899-9c43-206a11bfaab2"
+ "y": 4
},
- "collapsed": true
+ "name": "throughput",
+ "type": "row"
},
{
- "targets": [
- {
- "expr": "sum(rate(kafka_topic_partition_current_offset{instance=\"$instance\"}[1m])) by (topic)"
- }
- ],
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "b68719ad-ba54-4326-a956-43acaef10e2e",
+ "layout": {
+ "h": 7,
+ "i": "b68719ad-ba54-4326-a956-43acaef10e2e",
+ "w": 12,
+ "x": 0,
+ "y": 5
+ },
"name": "Message in per second",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "sum(rate(kafka_topic_partition_current_offset{instance=\"$instance\"}[1m])) by (topic)"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "bfd08ec7-a539-4c5e-8499-4e5c437b97d7",
"layout": {
"h": 7,
+ "i": "bfd08ec7-a539-4c5e-8499-4e5c437b97d7",
"w": 12,
"x": 0,
- "y": 5,
- "i": "b68719ad-ba54-4326-a956-43acaef10e2e"
+ "y": 7
},
- "id": "b68719ad-ba54-4326-a956-43acaef10e2e"
- },
- {
- "targets": [
- {
- "expr": "sum(kafka_consumer_lag_millis{instance=\"$instance\"}) by (consumergroup, topic) ",
- "legend": "{{consumergroup}} (topic: {{topic}})"
- }
- ],
"name": "Latency by Consumer Group",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
"util": "humantimeMilliseconds"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "sum(kafka_consumer_lag_millis{instance=\"$instance\"}) by (consumergroup, topic) ",
+ "legend": "{{consumergroup}} (topic: {{topic}})"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "9a42427a-0e01-432e-838d-a6baca6c42b2",
"layout": {
"h": 7,
+ "i": "9a42427a-0e01-432e-838d-a6baca6c42b2",
"w": 12,
- "x": 0,
- "y": 7,
- "i": "bfd08ec7-a539-4c5e-8499-4e5c437b97d7"
+ "x": 12,
+ "y": 5
},
- "id": "bfd08ec7-a539-4c5e-8499-4e5c437b97d7"
- },
- {
- "targets": [
- {
- "expr": "sum(rate(kafka_consumergroup_current_offset{instance=\"$instance\"}[1m])) by (topic)"
- }
- ],
"name": "Message consume per second",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "sum(rate(kafka_consumergroup_current_offset{instance=\"$instance\"}[1m])) by (topic)"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "7324f196-467b-4590-ae47-d56be683a0c3",
"layout": {
"h": 7,
+ "i": "7324f196-467b-4590-ae47-d56be683a0c3",
"w": 12,
"x": 12,
- "y": 5,
- "i": "9a42427a-0e01-432e-838d-a6baca6c42b2"
+ "y": 7
},
- "id": "9a42427a-0e01-432e-838d-a6baca6c42b2"
- },
- {
- "targets": [
- {
- "expr": "sum(kafka_topic_partition_current_offset{instance=\"$instance\"}) by (topic) - sum(kafka_consumergroup_current_offset{instance=\"$instance\"}) by (topic) ",
- "legend": "{{consumergroup}} (topic: {{topic}})"
- }
- ],
"name": "Lag by Consumer Group",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
- "version": "2.0.0",
+ "targets": [
+ {
+ "expr": "sum(kafka_topic_partition_current_offset{instance=\"$instance\"}) by (topic) - sum(kafka_consumergroup_current_offset{instance=\"$instance\"}) by (topic) ",
+ "legend": "{{consumergroup}} (topic: {{topic}})"
+ }
+ ],
"type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 7,
- "i": "7324f196-467b-4590-ae47-d56be683a0c3"
- },
- "id": "7324f196-467b-4590-ae47-d56be683a0c3"
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
+ "collapsed": true,
"id": "bd4d2d51-7b4d-4523-b586-0bf2b248d4d4",
- "type": "row",
- "name": "patition/replicate",
"layout": {
"h": 1,
+ "i": "bd4d2d51-7b4d-4523-b586-0bf2b248d4d4",
"w": 24,
"x": 0,
- "y": 14,
- "i": "bd4d2d51-7b4d-4523-b586-0bf2b248d4d4"
+ "y": 14
},
- "collapsed": true
+ "name": "patition/replicate",
+ "type": "row"
},
{
- "targets": [
- {
- "refId": "A",
- "expr": "kafka_topic_partitions{instance=\"$instance\"}",
- "legend": "{{topic}}"
- }
- ],
- "name": "Partitions per Topic",
"custom": {
- "showHeader": true,
"calc": "lastNotNull",
- "displayMode": "seriesToRows"
+ "displayMode": "seriesToRows",
+ "showHeader": true
+ },
+ "id": "04d1f6cc-40ec-4584-be17-a4d10cd5b6e9",
+ "layout": {
+ "h": 7,
+ "i": "04d1f6cc-40ec-4584-be17-a4d10cd5b6e9",
+ "w": 12,
+ "x": 0,
+ "y": 15
},
+ "name": "Partitions per Topic",
"options": {
"standardOptions": {}
},
"overrides": [
{}
],
- "version": "2.0.0",
- "type": "table",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 15,
- "i": "04d1f6cc-40ec-4584-be17-a4d10cd5b6e9"
- },
- "id": "04d1f6cc-40ec-4584-be17-a4d10cd5b6e9"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "kafka_topic_partition_under_replicated_partition",
- "legend": "{{topic}}-{{partition}}"
+ "expr": "kafka_topic_partitions{instance=\"$instance\"}",
+ "legend": "{{topic}}",
+ "refId": "A"
}
],
- "name": "Under Replicated",
- "description": "副本不同步预案\n1. Restart the Zookeeper leader.\n2. Restart the broker\\brokers that are not replicating some of the partitions.",
+ "type": "table",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "showHeader": true,
"calc": "lastNotNull",
- "displayMode": "seriesToRows"
+ "displayMode": "seriesToRows",
+ "showHeader": true
+ },
+ "description": "副本不同步预案\n1. Restart the Zookeeper leader.\n2. Restart the broker\\brokers that are not replicating some of the partitions.",
+ "id": "5b589c1c-fd35-4ce5-8b24-c0e05d307345",
+ "layout": {
+ "h": 7,
+ "i": "5b589c1c-fd35-4ce5-8b24-c0e05d307345",
+ "w": 12,
+ "x": 12,
+ "y": 15
},
+ "name": "Under Replicated",
"options": {
"standardOptions": {}
},
"overrides": [
{}
],
- "version": "2.0.0",
+ "targets": [
+ {
+ "expr": "kafka_topic_partition_under_replicated_partition",
+ "legend": "{{topic}}-{{partition}}",
+ "refId": "A"
+ }
+ ],
"type": "table",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 15,
- "i": "5b589c1c-fd35-4ce5-8b24-c0e05d307345"
- },
- "id": "5b589c1c-fd35-4ce5-8b24-c0e05d307345"
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "label_values(kafka_brokers, instance)",
+ "name": "instance",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ },
+ {
+ "definition": "label_values(kafka_brokers, job)",
+ "name": "job",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
}
- ]
+ ],
+ "version": "3.0.0"
}
}
\ No newline at end of file
diff --git a/docker/integrations/linux/dashboards/linux_by_categraf.json b/docker/integrations/linux/dashboards/linux_by_categraf.json
index d9ccc5c97b9b98be46446decfe348cd9672f8398..ff06bf2f91d2dc977a3b9a488291a14ee74a8019 100644
--- a/docker/integrations/linux/dashboards/linux_by_categraf.json
+++ b/docker/integrations/linux/dashboards/linux_by_categraf.json
@@ -1,637 +1,662 @@
{
"name": "Linux Host by Categraf",
"tags": "",
+ "ident": "",
"configs": {
- "var": [
- {
- "name": "ident",
- "definition": "label_values(system_load1,ident)"
- }
- ],
"links": [
{
+ "targetBlank": true,
"title": "n9e",
- "url": "https://n9e.github.io/",
- "targetBlank": true
+ "url": "https://n9e.github.io/"
},
{
+ "targetBlank": true,
"title": "author",
- "url": "http://flashcat.cloud/",
- "targetBlank": true
+ "url": "http://flashcat.cloud/"
}
],
- "version": "2.0.0",
"panels": [
{
+ "collapsed": true,
"id": "e5d14dd7-4417-42bd-b7ba-560f34d299a2",
- "type": "row",
- "name": "整体概况",
"layout": {
"h": 1,
+ "i": "e5d14dd7-4417-42bd-b7ba-560f34d299a2",
+ "isResizable": false,
"w": 24,
"x": 0,
- "y": 0,
- "i": "e5d14dd7-4417-42bd-b7ba-560f34d299a2",
- "isResizable": false
+ "y": 0
},
- "collapsed": true
+ "name": "整体概况",
+ "type": "row"
},
{
- "targets": [
- {
- "refId": "A",
- "expr": "count(system_load1)"
- }
- ],
- "name": "监控机器数",
"custom": {
- "textMode": "value",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
"textSize": {
"value": 50
}
},
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
+ "id": "41f37540-e695-492a-9d2f-24bfd2d36805",
"layout": {
"h": 3,
+ "i": "41f37540-e695-492a-9d2f-24bfd2d36805",
+ "isResizable": true,
"w": 3,
"x": 0,
- "y": 1,
- "i": "41f37540-e695-492a-9d2f-24bfd2d36805",
- "isResizable": true
+ "y": 1
+ },
+ "name": "监控机器数",
+ "options": {
+ "standardOptions": {}
},
- "id": "41f37540-e695-492a-9d2f-24bfd2d36805"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "topk(10, (mem_used_percent))",
- "legend": "{{ident}}"
+ "expr": "count(system_load1)",
+ "refId": "A"
}
],
- "name": "内存使用率 top10",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "calc": "lastNotNull",
"baseColor": "#cd75eb",
+ "calc": "lastNotNull",
"serieWidth": 20,
"sortOrder": "desc"
},
+ "id": "585bfc50-7c92-42b1-88ee-5b725b640418",
+ "layout": {
+ "h": 3,
+ "i": "585bfc50-7c92-42b1-88ee-5b725b640418",
+ "isResizable": true,
+ "w": 9,
+ "x": 3,
+ "y": 1
+ },
+ "name": "内存使用率 top10",
"options": {
+ "standardOptions": {},
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 60
+ },
"result": {
"color": "#f8070e"
},
- "match": {
- "from": 60
- }
+ "type": "range"
}
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "barGauge",
- "layout": {
- "h": 3,
- "w": 9,
- "x": 3,
- "y": 1,
- "i": "585bfc50-7c92-42b1-88ee-5b725b640418",
- "isResizable": true
+ ]
},
- "id": "585bfc50-7c92-42b1-88ee-5b725b640418"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "topk(10, (100-cpu_usage_idle{cpu=\"cpu-total\"}))"
+ "expr": "topk(10, (mem_used_percent))",
+ "legend": "{{ident}}",
+ "refId": "A"
}
],
- "name": "cpu使用率 top10",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
+ "type": "barGauge",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "60b1e833-3f03-45bb-9385-a3825904a0ac",
"layout": {
"h": 3,
+ "i": "60b1e833-3f03-45bb-9385-a3825904a0ac",
+ "isResizable": true,
"w": 12,
"x": 12,
- "y": 1,
- "i": "60b1e833-3f03-45bb-9385-a3825904a0ac",
- "isResizable": true
+ "y": 1
+ },
+ "name": "cpu使用率 top10",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
- "id": "60b1e833-3f03-45bb-9385-a3825904a0ac"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "topk(10, (disk_used_percent{path!~\"/var.*\"}))",
- "legend": "{{ident}} {{path}}"
+ "expr": "topk(10, (100-cpu_usage_idle{cpu=\"cpu-total\"}))",
+ "refId": "A"
}
],
- "name": "磁盘分区使用率 top10",
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "calc": "lastNotNull",
"baseColor": "#9470ff",
+ "calc": "lastNotNull",
"serieWidth": 20,
"sortOrder": "desc"
},
+ "id": "69351db9-e646-4e5d-925a-cba29823b00d",
+ "layout": {
+ "h": 3,
+ "i": "69351db9-e646-4e5d-925a-cba29823b00d",
+ "isResizable": true,
+ "w": 12,
+ "x": 0,
+ "y": 4
+ },
+ "name": "磁盘分区使用率 top10",
"options": {
+ "standardOptions": {},
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 85
+ },
"result": {
"color": "#f00404"
},
- "match": {
- "from": 85
- }
+ "type": "range"
}
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "barGauge",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 0,
- "y": 4,
- "i": "69351db9-e646-4e5d-925a-cba29823b00d",
- "isResizable": true
+ ]
},
- "id": "69351db9-e646-4e5d-925a-cba29823b00d"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "topk(10, (rate(diskio_io_time[1m])/10))",
- "legend": ""
+ "expr": "topk(10, (disk_used_percent{path!~\"/var.*\"}))",
+ "legend": "{{ident}} {{path}}",
+ "refId": "A"
}
],
- "name": "设备io util top10",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
+ "type": "barGauge",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "e3675ed9-6d3b-4a41-8d16-d6e82037dce3",
"layout": {
"h": 3,
+ "i": "e3675ed9-6d3b-4a41-8d16-d6e82037dce3",
+ "isResizable": true,
"w": 12,
"x": 12,
- "y": 4,
- "i": "e3675ed9-6d3b-4a41-8d16-d6e82037dce3",
- "isResizable": true
+ "y": 4
+ },
+ "name": "设备io util top10",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
- "id": "e3675ed9-6d3b-4a41-8d16-d6e82037dce3"
+ "targets": [
+ {
+ "expr": "topk(10, (rate(diskio_io_time[1m])/10))",
+ "legend": "",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
+ "collapsed": true,
"id": "2b2de3d1-65c8-4c39-9bea-02b754e0d751",
- "type": "row",
- "name": "单机概况",
"layout": {
"h": 1,
+ "i": "2b2de3d1-65c8-4c39-9bea-02b754e0d751",
+ "isResizable": false,
"w": 24,
"x": 0,
- "y": 7,
- "i": "2b2de3d1-65c8-4c39-9bea-02b754e0d751",
- "isResizable": false
+ "y": 7
},
- "collapsed": true
+ "name": "单机概况",
+ "type": "row"
},
{
- "targets": [
- {
- "refId": "A",
- "expr": "system_uptime{ident=\"$ident\"}/3600/24"
- }
- ],
- "name": "启动时长(单位:天)",
"custom": {
- "textMode": "value",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
"textSize": {
"value": 30
}
},
- "options": {
- "valueMappings": [],
- "standardOptions": {
- "util": "none",
- "decimals": 1
- }
- },
- "version": "2.0.0",
- "type": "stat",
+ "id": "deec579b-3090-4344-a9a6-c1455c4a8e50",
"layout": {
"h": 3,
+ "i": "deec579b-3090-4344-a9a6-c1455c4a8e50",
+ "isResizable": true,
"w": 6,
"x": 0,
- "y": 8,
- "i": "deec579b-3090-4344-a9a6-c1455c4a8e50",
- "isResizable": true
+ "y": 8
+ },
+ "name": "启动时长(单位:天)",
+ "options": {
+ "standardOptions": {
+ "decimals": 1,
+ "util": "none"
+ },
+ "valueMappings": []
},
- "id": "deec579b-3090-4344-a9a6-c1455c4a8e50"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "100-cpu_usage_idle{ident=\"$ident\",cpu=\"cpu-total\"}"
+ "expr": "system_uptime{ident=\"$ident\"}/3600/24",
+ "refId": "A"
}
],
- "name": "CPU使用率",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "value",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
"textSize": {
"value": 30
}
},
+ "id": "7a7bd5db-d12e-49f0-92a8-15958e99ee54",
+ "layout": {
+ "h": 3,
+ "i": "7a7bd5db-d12e-49f0-92a8-15958e99ee54",
+ "isResizable": true,
+ "w": 6,
+ "x": 6,
+ "y": 8
+ },
+ "name": "CPU使用率",
"options": {
+ "standardOptions": {
+ "decimals": 1,
+ "util": "percent"
+ },
"valueMappings": [
{
- "type": "range",
"match": {
"from": 0,
"to": 50
},
"result": {
"color": "#129b22"
- }
+ },
+ "type": "range"
},
{
- "type": "range",
"match": {
"from": 50,
"to": 100
},
"result": {
"color": "#f51919"
- }
+ },
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "percent",
- "decimals": 1
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 6,
- "y": 8,
- "i": "7a7bd5db-d12e-49f0-92a8-15958e99ee54",
- "isResizable": true
+ ]
},
- "id": "7a7bd5db-d12e-49f0-92a8-15958e99ee54"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "mem_used_percent{ident=\"$ident\"}"
+ "expr": "100-cpu_usage_idle{ident=\"$ident\",cpu=\"cpu-total\"}",
+ "refId": "A"
}
],
- "name": "内存使用率",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "value",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
"textSize": {
"value": 30
}
},
+ "id": "8a814265-54ad-419c-8cb7-e1f84a242de0",
+ "layout": {
+ "h": 3,
+ "i": "8a814265-54ad-419c-8cb7-e1f84a242de0",
+ "isResizable": true,
+ "w": 6,
+ "x": 12,
+ "y": 8
+ },
+ "name": "内存使用率",
"options": {
+ "standardOptions": {
+ "decimals": 1,
+ "util": "percent"
+ },
"valueMappings": [
{
- "type": "range",
"match": {
"from": 0,
"to": 50
},
"result": {
"color": "#129b22"
- }
+ },
+ "type": "range"
},
{
- "type": "range",
"match": {
"from": 50,
"to": 100
},
"result": {
"color": "#f51919"
- }
+ },
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "percent",
- "decimals": 1
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 12,
- "y": 8,
- "i": "8a814265-54ad-419c-8cb7-e1f84a242de0",
- "isResizable": true
+ ]
},
- "id": "8a814265-54ad-419c-8cb7-e1f84a242de0"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "linux_sysctl_fs_file_nr{ident=\"$ident\"}/linux_sysctl_fs_file_max{ident=\"$ident\"}*100"
+ "expr": "mem_used_percent{ident=\"$ident\"}",
+ "refId": "A"
}
],
- "name": "FD使用率",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "value",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
"textSize": {
"value": 25
}
},
+ "id": "d7d11972-5c5b-4bc6-98f8-bbbe9f018896",
+ "layout": {
+ "h": 3,
+ "i": "d7d11972-5c5b-4bc6-98f8-bbbe9f018896",
+ "isResizable": true,
+ "w": 3,
+ "x": 18,
+ "y": 8
+ },
+ "name": "FD使用率",
"options": {
+ "standardOptions": {
+ "decimals": 2,
+ "util": "percent"
+ },
"valueMappings": [
{
- "type": "range",
"match": {
"from": 0,
"to": 50
},
"result": {
"color": "#129b22"
- }
+ },
+ "type": "range"
},
{
- "type": "range",
"match": {
"from": 50,
"to": 100
},
"result": {
"color": "#f51919"
- }
+ },
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "percent",
- "decimals": 2
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 3,
- "x": 18,
- "y": 8,
- "i": "d7d11972-5c5b-4bc6-98f8-bbbe9f018896",
- "isResizable": true
+ ]
},
- "id": "d7d11972-5c5b-4bc6-98f8-bbbe9f018896"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "mem_swap_total{ident=\"$ident\"}-mem_swap_free{ident=\"$ident\"}"
+ "expr": "linux_sysctl_fs_file_nr{ident=\"$ident\"}/linux_sysctl_fs_file_max{ident=\"$ident\"}*100",
+ "refId": "A"
}
],
- "name": "SWAP使用",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "value",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
"textSize": {
"value": 40
}
},
- "options": {
- "valueMappings": [],
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- }
- },
- "version": "2.0.0",
- "type": "stat",
+ "id": "209d3aba-5e02-4b8f-a364-65f20ba92a2c",
"layout": {
"h": 3,
+ "i": "209d3aba-5e02-4b8f-a364-65f20ba92a2c",
+ "isResizable": true,
"w": 3,
"x": 21,
- "y": 8,
- "i": "209d3aba-5e02-4b8f-a364-65f20ba92a2c",
- "isResizable": true
+ "y": 8
},
- "id": "209d3aba-5e02-4b8f-a364-65f20ba92a2c"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "disk_used_percent{ident=\"$ident\"}",
- "legend": "{{path}}"
- }
- ],
- "name": "磁盘使用率",
+ "name": "SWAP使用",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
"standardOptions": {
- "util": "percent",
- "decimals": 1
+ "decimals": 1,
+ "util": "bytesIEC"
},
- "thresholds": {}
+ "valueMappings": []
},
+ "targets": [
+ {
+ "expr": "mem_swap_total{ident=\"$ident\"}-mem_swap_free{ident=\"$ident\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "b3c5dd9d-e82a-4b15-8b23-c510e2bee152",
"layout": {
"h": 3,
+ "i": "b3c5dd9d-e82a-4b15-8b23-c510e2bee152",
+ "isResizable": true,
"w": 8,
"x": 0,
- "y": 11,
- "i": "b3c5dd9d-e82a-4b15-8b23-c510e2bee152",
- "isResizable": true
+ "y": 11
},
- "id": "b3c5dd9d-e82a-4b15-8b23-c510e2bee152"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "disk_inodes_used{ident=\"$ident\"}/disk_inodes_total{ident=\"$ident\"}",
- "legend": "{{path}}"
- }
- ],
- "name": "inode使用率",
+ "name": "磁盘使用率",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
- "util": "percent",
- "decimals": 1
+ "decimals": 1,
+ "util": "percent"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "disk_used_percent{ident=\"$ident\"}",
+ "legend": "{{path}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "0de74cd9-cc74-4a96-bcb2-05d3a8bde2ea",
"layout": {
"h": 3,
+ "i": "0de74cd9-cc74-4a96-bcb2-05d3a8bde2ea",
+ "isResizable": true,
"w": 8,
"x": 8,
- "y": 11,
- "i": "0de74cd9-cc74-4a96-bcb2-05d3a8bde2ea",
- "isResizable": true
+ "y": 11
},
- "id": "0de74cd9-cc74-4a96-bcb2-05d3a8bde2ea"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(diskio_io_time{ident=\"$ident\"}[1m])/10",
- "legend": "{{name}}"
- }
- ],
- "name": "io_util",
+ "name": "inode使用率",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
- "util": "percent",
- "decimals": 1
+ "decimals": 1,
+ "util": "percent"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
+ "targets": [
+ {
+ "expr": "disk_inodes_used{ident=\"$ident\"}/disk_inodes_total{ident=\"$ident\"}",
+ "legend": "{{path}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "59afa167-434d-496c-a3ef-ceff6db7c1f6",
"layout": {
"h": 3,
+ "i": "59afa167-434d-496c-a3ef-ceff6db7c1f6",
+ "isResizable": true,
"w": 8,
"x": 16,
- "y": 11,
- "i": "59afa167-434d-496c-a3ef-ceff6db7c1f6",
- "isResizable": true
+ "y": 11
+ },
+ "name": "io_util",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "percent"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
- "id": "59afa167-434d-496c-a3ef-ceff6db7c1f6"
+ "targets": [
+ {
+ "expr": "rate(diskio_io_time{ident=\"$ident\"}[1m])/10",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
+ "collapsed": true,
"id": "aabb8263-1a9b-43fb-bee1-6c532f5012a3",
- "type": "row",
- "name": "系统指标",
"layout": {
"h": 1,
+ "i": "aabb8263-1a9b-43fb-bee1-6c532f5012a3",
+ "isResizable": false,
"w": 24,
"x": 0,
- "y": 14,
- "i": "aabb8263-1a9b-43fb-bee1-6c532f5012a3",
- "isResizable": false
+ "y": 14
},
- "collapsed": true
+ "name": "系统指标",
+ "type": "row"
},
{
- "targets": [
- {
- "refId": "A",
- "expr": "processes_total{ident=\"$ident\"}"
- }
- ],
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "1b4da538-29d4-4c58-b3f4-773fabb8616c",
+ "layout": {
+ "h": 7,
+ "i": "1b4da538-29d4-4c58-b3f4-773fabb8616c",
+ "isResizable": true,
+ "w": 8,
+ "x": 0,
+ "y": 15
+ },
"name": "进程总数",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
@@ -639,87 +664,90 @@
"thresholds": {
"steps": [
{
- "value": 2000,
- "color": "#fa2a05"
+ "color": "#fa2a05",
+ "value": 2000
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
+ "targets": [
+ {
+ "expr": "processes_total{ident=\"$ident\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "aa7adae0-ae3b-4e28-a8ce-801c65961552",
"layout": {
"h": 7,
+ "i": "aa7adae0-ae3b-4e28-a8ce-801c65961552",
+ "isResizable": true,
"w": 8,
- "x": 0,
- "y": 15,
- "i": "1b4da538-29d4-4c58-b3f4-773fabb8616c",
- "isResizable": true
+ "x": 8,
+ "y": 15
+ },
+ "name": "上下文切换/中断",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
- "id": "1b4da538-29d4-4c58-b3f4-773fabb8616c"
- },
- {
"targets": [
{
- "refId": "A",
"expr": "rate(kernel_context_switches{ident=\"$ident\"}[1m])",
- "legend": "context_switches"
+ "legend": "context_switches",
+ "refId": "A"
},
{
"expr": "rate(kernel_interrupts{ident=\"$ident\"}[1m])",
- "refId": "B",
- "legend": "kernel_interrupts"
+ "legend": "kernel_interrupts",
+ "refId": "B"
}
],
- "name": "上下文切换/中断",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "71e22f58-5b9a-4604-bca8-55bcef59b5fe",
"layout": {
"h": 7,
+ "i": "71e22f58-5b9a-4604-bca8-55bcef59b5fe",
+ "isResizable": true,
"w": 8,
- "x": 8,
- "y": 15,
- "i": "aa7adae0-ae3b-4e28-a8ce-801c65961552",
- "isResizable": true
+ "x": 16,
+ "y": 15
},
- "id": "aa7adae0-ae3b-4e28-a8ce-801c65961552"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "kernel_entropy_avail{ident=\"$ident\"}",
- "legend": "entropy_avail"
- }
- ],
"name": "熵池大小",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
@@ -727,58 +755,60 @@
"thresholds": {
"steps": [
{
- "value": 100,
- "color": "#f50505"
+ "color": "#f50505",
+ "value": 100
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
+ "targets": [
+ {
+ "expr": "kernel_entropy_avail{ident=\"$ident\"}",
+ "legend": "entropy_avail",
+ "refId": "A"
+ }
+ ],
"type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 15,
- "i": "71e22f58-5b9a-4604-bca8-55bcef59b5fe",
- "isResizable": true
- },
- "id": "71e22f58-5b9a-4604-bca8-55bcef59b5fe"
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
+ "collapsed": true,
"id": "10f34f8f-f94d-4a28-9551-16e6667e3833",
- "type": "row",
- "name": "CPU",
"layout": {
"h": 1,
+ "i": "10f34f8f-f94d-4a28-9551-16e6667e3833",
+ "isResizable": false,
"w": 24,
"x": 0,
- "y": 22,
- "i": "10f34f8f-f94d-4a28-9551-16e6667e3833",
- "isResizable": false
+ "y": 22
},
- "collapsed": true
+ "name": "CPU",
+ "type": "row"
},
{
- "targets": [
- {
- "refId": "A",
- "expr": "cpu_usage_idle{ident=\"$ident\",cpu=\"cpu-total\"}",
- "legend": "cpu_usage_idle"
- }
- ],
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "1559d880-7e26-4e42-9427-4e55fb6f67be",
+ "layout": {
+ "h": 7,
+ "i": "1559d880-7e26-4e42-9427-4e55fb6f67be",
+ "isResizable": true,
+ "w": 8,
+ "x": 0,
+ "y": 23
+ },
"name": "CPU空闲率",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
@@ -786,41 +816,66 @@
"thresholds": {
"steps": [
{
- "value": 10,
- "color": "#f20202"
+ "color": "#f20202",
+ "value": 10
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
+ "targets": [
+ {
+ "expr": "cpu_usage_idle{ident=\"$ident\",cpu=\"cpu-total\"}",
+ "legend": "cpu_usage_idle",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "043c26de-d19f-4fe8-a615-2b7c10ceb828",
"layout": {
"h": 7,
+ "i": "043c26de-d19f-4fe8-a615-2b7c10ceb828",
+ "isResizable": true,
"w": 8,
- "x": 0,
- "y": 23,
- "i": "1559d880-7e26-4e42-9427-4e55fb6f67be",
- "isResizable": true
+ "x": 8,
+ "y": 23
+ },
+ "name": "CPU使用率详情",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
- "id": "1559d880-7e26-4e42-9427-4e55fb6f67be"
- },
- {
"targets": [
{
- "refId": "A",
"expr": "cpu_usage_guest{ident=\"$ident\",cpu=\"cpu-total\"}",
- "legend": ""
+ "legend": "",
+ "refId": "A"
},
{
"expr": "cpu_usage_iowait{ident=\"$ident\",cpu=\"cpu-total\"}",
- "refId": "B",
- "legend": ""
+ "legend": "",
+ "refId": "B"
},
{
"expr": "cpu_usage_user{ident=\"$ident\",cpu=\"cpu-total\"}",
@@ -847,41 +902,43 @@
"refId": "H"
}
],
- "name": "CPU使用率详情",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "a420ce25-6968-47f8-8335-60cde70fd062",
"layout": {
"h": 7,
+ "i": "a420ce25-6968-47f8-8335-60cde70fd062",
+ "isResizable": true,
"w": 8,
- "x": 8,
- "y": 23,
- "i": "043c26de-d19f-4fe8-a615-2b7c10ceb828",
- "isResizable": true
+ "x": 16,
+ "y": 23
+ },
+ "name": "CPU负载",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
- "id": "043c26de-d19f-4fe8-a615-2b7c10ceb828"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "system_load15{ident=\"$ident\"}"
+ "expr": "system_load15{ident=\"$ident\"}",
+ "refId": "A"
},
{
"expr": "system_load1{ident=\"$ident\"}",
@@ -892,55 +949,58 @@
"refId": "C"
}
],
- "name": "CPU负载",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
"type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 23,
- "i": "a420ce25-6968-47f8-8335-60cde70fd062",
- "isResizable": true
- },
- "id": "a420ce25-6968-47f8-8335-60cde70fd062"
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
+ "collapsed": true,
"id": "b7a3c99f-a796-4b76-89b5-cbddd566f91c",
- "type": "row",
- "name": "内存详情",
"layout": {
"h": 1,
+ "i": "b7a3c99f-a796-4b76-89b5-cbddd566f91c",
+ "isResizable": false,
"w": 24,
"x": 0,
- "y": 30,
- "i": "b7a3c99f-a796-4b76-89b5-cbddd566f91c",
- "isResizable": false
+ "y": 30
},
- "collapsed": true
+ "name": "内存详情",
+ "type": "row"
},
{
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "内存指标可参考链接 [/PROC/MEMINFO之谜](http://linuxperf.com/?p=142) ",
+ "id": "239aacdf-1982-428b-b240-57f4ce7f946d",
+ "layout": {
+ "h": 7,
+ "i": "239aacdf-1982-428b-b240-57f4ce7f946d",
+ "isResizable": true,
+ "w": 12,
+ "x": 0,
+ "y": 31
+ },
+ "name": "用户态内存使用",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
"targets": [
{
- "refId": "A",
- "expr": "mem_active{ident=\"$ident\"}"
+ "expr": "mem_active{ident=\"$ident\"}",
+ "refId": "A"
},
{
"expr": "mem_cached{ident=\"$ident\"}",
@@ -967,42 +1027,43 @@
"refId": "G"
}
],
- "name": "用户态内存使用",
- "description": "内存指标可参考链接 [/PROC/MEMINFO之谜](http://linuxperf.com/?p=142) ",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "00ed6e4d-c979-4938-a20e-56d42ca452cf",
"layout": {
"h": 7,
+ "i": "00ed6e4d-c979-4938-a20e-56d42ca452cf",
+ "isResizable": true,
"w": 12,
- "x": 0,
- "y": 31,
- "i": "239aacdf-1982-428b-b240-57f4ce7f946d",
- "isResizable": true
+ "x": 12,
+ "y": 31
+ },
+ "name": "内核态内存使用",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
- "id": "239aacdf-1982-428b-b240-57f4ce7f946d"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "mem_slab{ident=\"$ident\"}"
+ "expr": "mem_slab{ident=\"$ident\"}",
+ "refId": "A"
},
{
"expr": "mem_sreclaimable{ident=\"$ident\"}",
@@ -1021,509 +1082,531 @@
"refId": "E"
}
],
- "name": "内核态内存使用",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
"type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 31,
- "i": "00ed6e4d-c979-4938-a20e-56d42ca452cf",
- "isResizable": true
- },
- "id": "00ed6e4d-c979-4938-a20e-56d42ca452cf"
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
+ "collapsed": true,
"id": "842a8c48-0e93-40bf-8f28-1b2f837e5c19",
- "type": "row",
- "name": "磁盘详情",
"layout": {
"h": 1,
+ "i": "842a8c48-0e93-40bf-8f28-1b2f837e5c19",
+ "isResizable": false,
"w": 24,
"x": 0,
- "y": 38,
- "i": "842a8c48-0e93-40bf-8f28-1b2f837e5c19",
- "isResizable": false
+ "y": 38
},
- "collapsed": true
+ "name": "磁盘详情",
+ "type": "row"
},
{
- "targets": [
- {
- "refId": "A",
- "expr": "disk_free{ident=\"$ident\"}"
- },
- {
- "expr": "disk_total{ident=\"$ident\"}",
- "refId": "B"
- },
- {
- "expr": "disk_used{ident=\"$ident\"}",
- "refId": "C"
- }
- ],
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "bc894871-1c03-4d12-91be-6867f394a8a6",
+ "layout": {
+ "h": 7,
+ "i": "bc894871-1c03-4d12-91be-6867f394a8a6",
+ "isResizable": true,
+ "w": 8,
+ "x": 0,
+ "y": 39
+ },
"name": "磁盘空间",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
- "util": "bytesIEC",
- "decimals": null
+ "decimals": null,
+ "util": "bytesIEC"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
+ "targets": [
+ {
+ "expr": "disk_free{ident=\"$ident\"}",
+ "refId": "A"
+ },
+ {
+ "expr": "disk_total{ident=\"$ident\"}",
+ "refId": "B"
+ },
+ {
+ "expr": "disk_used{ident=\"$ident\"}",
+ "refId": "C"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "d825671f-7dc5-46a2-89dc-4fff084a3ae0",
"layout": {
"h": 7,
+ "i": "d825671f-7dc5-46a2-89dc-4fff084a3ae0",
+ "isResizable": true,
"w": 8,
- "x": 0,
- "y": 39,
- "i": "bc894871-1c03-4d12-91be-6867f394a8a6",
- "isResizable": true
+ "x": 8,
+ "y": 39
+ },
+ "name": "fd使用",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
- "id": "bc894871-1c03-4d12-91be-6867f394a8a6"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "linux_sysctl_fs_file_max{ident=\"$ident\"}"
+ "expr": "linux_sysctl_fs_file_max{ident=\"$ident\"}",
+ "refId": "A"
},
{
"expr": "linux_sysctl_fs_file_nr{ident=\"$ident\"}",
"refId": "B"
}
],
- "name": "fd使用",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "d27b522f-9c70-42f2-9e31-fed3816fd675",
"layout": {
"h": 7,
+ "i": "d27b522f-9c70-42f2-9e31-fed3816fd675",
+ "isResizable": true,
"w": 8,
- "x": 8,
- "y": 39,
- "i": "d825671f-7dc5-46a2-89dc-4fff084a3ae0",
- "isResizable": true
+ "x": 16,
+ "y": 39
+ },
+ "name": "inode",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
- "id": "d825671f-7dc5-46a2-89dc-4fff084a3ae0"
- },
- {
"targets": [
{
- "refId": "A",
"expr": "disk_inodes_total{ident=\"$ident\",path!~\"/var.*\"}",
- "legend": "{{path}}-total"
+ "legend": "{{path}}-total",
+ "refId": "A"
},
{
"expr": "disk_inodes_used{ident=\"$ident\",path!~\"/var.*\"}",
- "refId": "B",
- "legend": "{{path}}-used"
+ "legend": "{{path}}-used",
+ "refId": "B"
}
],
- "name": "inode",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "f645741e-c632-4685-b267-c7ad26b5c10e",
"layout": {
"h": 7,
+ "i": "f645741e-c632-4685-b267-c7ad26b5c10e",
+ "isResizable": true,
"w": 8,
- "x": 16,
- "y": 39,
- "i": "d27b522f-9c70-42f2-9e31-fed3816fd675",
- "isResizable": true
+ "x": 0,
+ "y": 46
+ },
+ "name": "IOPS",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
- "id": "d27b522f-9c70-42f2-9e31-fed3816fd675"
- },
- {
"targets": [
{
- "refId": "A",
"expr": "rate(diskio_reads{ident=\"$ident\"}[1m])",
- "legend": "{{name}}-read"
+ "legend": "{{name}}-read",
+ "refId": "A"
},
{
"expr": "rate(diskio_writes{ident=\"$ident\"}[1m])",
- "refId": "B",
- "legend": "{{name}}-writes"
+ "legend": "{{name}}-writes",
+ "refId": "B"
}
],
- "name": "IOPS",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "bbd1ebda-99f6-419c-90a5-5f84973976dd",
"layout": {
"h": 7,
+ "i": "bbd1ebda-99f6-419c-90a5-5f84973976dd",
+ "isResizable": true,
"w": 8,
- "x": 0,
- "y": 46,
- "i": "f645741e-c632-4685-b267-c7ad26b5c10e",
- "isResizable": true
+ "x": 8,
+ "y": 46
},
- "id": "f645741e-c632-4685-b267-c7ad26b5c10e"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(diskio_read_bytes{ident=\"$ident\"}[1m])",
- "legend": "{{name}}-read"
- },
- {
- "expr": "rate(diskio_write_bytes{ident=\"$ident\"}[1m])",
- "refId": "B",
- "legend": "{{name}}-writes"
- }
- ],
"name": "IO吞吐量",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
- "util": "bytesIEC",
- "decimals": 0
+ "decimals": 0,
+ "util": "bytesIEC"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
+ "targets": [
+ {
+ "expr": "rate(diskio_read_bytes{ident=\"$ident\"}[1m])",
+ "legend": "{{name}}-read",
+ "refId": "A"
+ },
+ {
+ "expr": "rate(diskio_write_bytes{ident=\"$ident\"}[1m])",
+ "legend": "{{name}}-writes",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "d6b45598-54c6-4b36-a896-0a7529ac21f8",
"layout": {
"h": 7,
+ "i": "d6b45598-54c6-4b36-a896-0a7529ac21f8",
+ "isResizable": true,
"w": 8,
- "x": 8,
- "y": 46,
- "i": "bbd1ebda-99f6-419c-90a5-5f84973976dd",
- "isResizable": true
+ "x": 16,
+ "y": 46
},
- "id": "bbd1ebda-99f6-419c-90a5-5f84973976dd"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(diskio_write_time{ident=\"$ident\"}[1m])/rate(diskio_writes{ident=\"$ident\"}[1m])+rate(diskio_read_time{ident=\"$ident\"}[1m])/rate(diskio_reads{ident=\"$ident\"}[1m])",
- "legend": "{{name}}"
- }
- ],
"name": "iowait",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
- "version": "2.0.0",
+ "targets": [
+ {
+ "expr": "rate(diskio_write_time{ident=\"$ident\"}[1m])/rate(diskio_writes{ident=\"$ident\"}[1m])+rate(diskio_read_time{ident=\"$ident\"}[1m])/rate(diskio_reads{ident=\"$ident\"}[1m])",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
"type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 46,
- "i": "d6b45598-54c6-4b36-a896-0a7529ac21f8",
- "isResizable": true
- },
- "id": "d6b45598-54c6-4b36-a896-0a7529ac21f8"
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
+ "collapsed": true,
"id": "307152d2-708c-4736-98cf-08b886cbf7f2",
- "type": "row",
- "name": "网络详情",
"layout": {
"h": 1,
+ "i": "307152d2-708c-4736-98cf-08b886cbf7f2",
+ "isResizable": false,
"w": 24,
"x": 0,
- "y": 53,
- "i": "307152d2-708c-4736-98cf-08b886cbf7f2",
- "isResizable": false
+ "y": 53
},
- "collapsed": true
+ "name": "网络详情",
+ "type": "row"
},
{
- "targets": [
- {
- "refId": "A",
- "expr": "rate(net_bytes_recv{ident=\"$ident\"}[1m])*8",
- "legend": "{{interface}}-recv"
- },
- {
- "expr": "rate(net_bytes_sent{ident=\"$ident\"}[1m])*8",
- "refId": "B",
- "legend": "{{interface}}-sent"
- }
- ],
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "f2ee5d32-737c-4095-b6b7-b15b778ffdb9",
+ "layout": {
+ "h": 7,
+ "i": "f2ee5d32-737c-4095-b6b7-b15b778ffdb9",
+ "isResizable": true,
+ "w": 6,
+ "x": 0,
+ "y": 54
+ },
"name": "网络流量",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
- "util": "bytesIEC",
- "decimals": 0
+ "decimals": 0,
+ "util": "bytesIEC"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
+ "targets": [
+ {
+ "expr": "rate(net_bytes_recv{ident=\"$ident\"}[1m])*8",
+ "legend": "{{interface}}-recv",
+ "refId": "A"
+ },
+ {
+ "expr": "rate(net_bytes_sent{ident=\"$ident\"}[1m])*8",
+ "legend": "{{interface}}-sent",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "9113323a-98f5-4bff-a8ce-3b459e7e2190",
"layout": {
"h": 7,
+ "i": "9113323a-98f5-4bff-a8ce-3b459e7e2190",
+ "isResizable": true,
"w": 6,
- "x": 0,
- "y": 54,
- "i": "f2ee5d32-737c-4095-b6b7-b15b778ffdb9",
- "isResizable": true
+ "x": 6,
+ "y": 54
},
- "id": "f2ee5d32-737c-4095-b6b7-b15b778ffdb9"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(net_packets_recv{ident=\"$ident\"}[1m])",
- "legend": "{{interface}}-recv"
- },
- {
- "expr": "rate(net_packets_sent{ident=\"$ident\"}[1m])",
- "refId": "B",
- "legend": "{{interface}}-sent"
- }
- ],
"name": "packets",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
"decimals": 0
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
+ "targets": [
+ {
+ "expr": "rate(net_packets_recv{ident=\"$ident\"}[1m])",
+ "legend": "{{interface}}-recv",
+ "refId": "A"
+ },
+ {
+ "expr": "rate(net_packets_sent{ident=\"$ident\"}[1m])",
+ "legend": "{{interface}}-sent",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "9634c41c-e124-4d7f-9406-0f86753e8d70",
"layout": {
"h": 7,
+ "i": "9634c41c-e124-4d7f-9406-0f86753e8d70",
+ "isResizable": true,
"w": 6,
- "x": 6,
- "y": 54,
- "i": "9113323a-98f5-4bff-a8ce-3b459e7e2190",
- "isResizable": true
+ "x": 12,
+ "y": 54
},
- "id": "9113323a-98f5-4bff-a8ce-3b459e7e2190"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(net_err_in{ident=\"$ident\"}[1m])",
- "legend": "{{interface}}-in"
- },
- {
- "expr": "rate(net_err_out{ident=\"$ident\"}[1m])",
- "refId": "B",
- "legend": "{{interface}}-out"
- }
- ],
"name": "error",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
"decimals": 0
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
+ "targets": [
+ {
+ "expr": "rate(net_err_in{ident=\"$ident\"}[1m])",
+ "legend": "{{interface}}-in",
+ "refId": "A"
+ },
+ {
+ "expr": "rate(net_err_out{ident=\"$ident\"}[1m])",
+ "legend": "{{interface}}-out",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "4123f4c1-bf8e-400e-b267-8d7f6a92691a",
"layout": {
"h": 7,
+ "i": "4123f4c1-bf8e-400e-b267-8d7f6a92691a",
+ "isResizable": true,
"w": 6,
- "x": 12,
- "y": 54,
- "i": "9634c41c-e124-4d7f-9406-0f86753e8d70",
- "isResizable": true
+ "x": 18,
+ "y": 54
},
- "id": "9634c41c-e124-4d7f-9406-0f86753e8d70"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(net_drop_in{ident=\"$ident\"}[1m])",
- "legend": "{{interface}}-in"
- },
- {
- "expr": "rate(net_drop_out{ident=\"$ident\"}[1m])",
- "refId": "B",
- "legend": "{{interface}}-out"
- }
- ],
"name": "drop",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
"decimals": 0
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
+ "targets": [
+ {
+ "expr": "rate(net_drop_in{ident=\"$ident\"}[1m])",
+ "legend": "{{interface}}-in",
+ "refId": "A"
+ },
+ {
+ "expr": "rate(net_drop_out{ident=\"$ident\"}[1m])",
+ "legend": "{{interface}}-out",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "cfb80689-de7b-47fb-9155-052b796dd7f5",
"layout": {
"h": 7,
- "w": 6,
- "x": 18,
- "y": 54,
- "i": "4123f4c1-bf8e-400e-b267-8d7f6a92691a",
- "isResizable": true
+ "i": "cfb80689-de7b-47fb-9155-052b796dd7f5",
+ "isResizable": true,
+ "w": 24,
+ "x": 0,
+ "y": 61
+ },
+ "name": "tcp",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
- "id": "4123f4c1-bf8e-400e-b267-8d7f6a92691a"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "netstat_tcp_established{ident=\"$ident\"}"
+ "expr": "netstat_tcp_established{ident=\"$ident\"}",
+ "refId": "A"
},
{
"expr": "netstat_tcp_listen{ident=\"$ident\"}",
@@ -1534,36 +1617,28 @@
"refId": "C"
}
],
- "name": "tcp",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
"type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 61,
- "i": "cfb80689-de7b-47fb-9155-052b796dd7f5",
- "isResizable": true
- },
- "id": "cfb80689-de7b-47fb-9155-052b796dd7f5"
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "label_values(system_load1,ident)",
+ "name": "ident",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
}
- ]
+ ],
+ "version": "3.0.0"
}
}
\ No newline at end of file
diff --git a/docker/integrations/linux/dashboards/linux_by_exporter.json b/docker/integrations/linux/dashboards/linux_by_exporter.json
index b110ec704545c8e24070947d515a59d1fc5d76d1..7d58332fb51177941eda0a89261d8ac67f7e54bd 100644
--- a/docker/integrations/linux/dashboards/linux_by_exporter.json
+++ b/docker/integrations/linux/dashboards/linux_by_exporter.json
@@ -1,2064 +1,2160 @@
{
- "name": "HOST by Node Exporter",
- "tags": "Prometheus Host",
- "ident": "",
- "configs": {
- "var": [
- {
- "name": "node",
- "definition": "label_values(node_cpu_seconds_total, instance)",
- "selected": "$node",
- "options": [
- "tt-fc-es01.nj:12345",
- "tt-fc-es02.nj:12345",
- "tt-fc-dev01.nj:12345",
- "10.206.0.13:9100"
- ]
- }
- ],
- "links": [
- {
- "title": "n9e",
- "url": "https://n9e.gitee.io/",
- "targetBlank": true
- },
- {
- "title": "author",
- "url": "http://flashcat.cloud/",
- "targetBlank": true
- }
- ],
- "version": "2.0.0",
- "panels": [
- {
- "id": "3173366d-01a2-420e-8878-75124b0051b6",
- "type": "row",
- "name": "整体概况",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0,
- "i": "3173366d-01a2-420e-8878-75124b0051b6"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(10,100-(avg by (mode, instance)(rate(node_cpu_seconds_total{mode=\"idle\"}[1m])))*100)",
- "legend": "{{instance}}"
- }
- ],
- "name": "cpu使用率 top10",
- "links": [],
- "description": "",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 9,
- "x": 3,
- "y": 1,
- "i": "e1925fc8-cb05-467b-ba82-bb5cb6be7595"
- },
- "id": "e1925fc8-cb05-467b-ba82-bb5cb6be7595"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(10,(node_memory_MemTotal_bytes - node_memory_MemFree_bytes - (node_memory_Cached_bytes + node_memory_Buffers_bytes))/node_memory_MemTotal_bytes*100)",
- "legend": "{{instance}}"
- }
- ],
- "name": "内存使用率 top10",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 12,
- "y": 1,
- "i": "327b7e4b-6ec1-47e1-8840-d31cf4b5532b"
- },
- "id": "327b7e4b-6ec1-47e1-8840-d31cf4b5532b"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(10,(node_filesystem_avail_bytes{device!~'rootfs', device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"} * 100) / node_filesystem_size_bytes{device!~'rootfs', device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"})",
- "legend": "{{instance}}-{{mountpoint}}"
- }
- ],
- "name": "磁盘分区使用率 top10",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 0,
- "y": 2,
- "i": "5a9d4a65-3f73-42cc-859e-fc0b82791b59"
- },
- "id": "5a9d4a65-3f73-42cc-859e-fc0b82791b59"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(10,rate(node_disk_io_time_seconds_total[5m]) * 100)",
- "legend": "{{instance}}-{{device}}"
- }
- ],
- "name": "设备io util top10",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 12,
- "y": 2,
- "i": "fa764e4b-5ca9-45d8-b12e-604f8743f9d9"
- },
- "id": "fa764e4b-5ca9-45d8-b12e-604f8743f9d9"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "count(node_boot_time_seconds)"
- }
- ],
- "name": "监控机器数",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {
- "value": 40
- }
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 3,
- "x": 0,
- "y": 1,
- "i": "9a5e3292-b346-4ccf-a793-b83a2f8ac8c5"
- },
- "id": "9a5e3292-b346-4ccf-a793-b83a2f8ac8c5"
- },
- {
- "id": "396bf5e2-f204-4349-8e00-fb9d25ed7e79",
- "type": "row",
- "name": "单机概况",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 5,
- "i": "396bf5e2-f204-4349-8e00-fb9d25ed7e79"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "(node_memory_MemTotal_bytes{instance=\"$node\"} - node_memory_MemFree_bytes{instance=\"$node\"} - (node_memory_Cached_bytes{instance=\"$node\"} + node_memory_Buffers_bytes{instance=\"$node\"}))/node_memory_MemTotal_bytes{instance=\"$node\"}*100"
- }
- ],
- "name": "内存使用率",
- "description": "如果内存使用率超过50%,则需要扩容或者升级配置了",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {
- "value": 25
- }
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "result": {
- "color": "#369903"
- },
- "match": {
- "from": 0,
- "to": 50
- }
- },
- {
- "type": "range",
- "match": {
- "from": 50,
- "to": 100
- },
- "result": {
- "color": "#e3170d"
- }
- }
- ],
- "standardOptions": {
- "util": "percent",
- "decimals": 1
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 6,
- "y": 6,
- "i": "56dc011d-fc1c-4682-a903-1b778cbff9e8"
- },
- "id": "56dc011d-fc1c-4682-a903-1b778cbff9e8"
- },
- {
- "targets": [
- {
- "expr": "(((count(count(node_cpu_seconds_total{instance=\"$node\"}) by (cpu))) - avg(sum by (mode)(rate(node_cpu_seconds_total{mode='idle',instance=\"$node\"}[1m])))) * 100) / count(count(node_cpu_seconds_total{instance=\"$node\"}) by (cpu))"
- }
- ],
- "name": "CPU使用率",
- "description": "如果cpu使用率超过50%,可以通过top命令查看机器上是否有异常进程,如果没有异常进程,则说明服务需要扩容或者机器需要升级配置了",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {
- "value": 30
- }
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "result": {
- "color": "#369903"
- },
- "match": {
- "from": 0,
- "to": 50
- }
- },
- {
- "type": "range",
- "match": {
- "special": 50,
- "from": 50,
- "to": 100
- },
- "result": {
- "color": "#b22222"
- }
- }
- ],
- "standardOptions": {
- "util": "percent",
- "decimals": 1
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 0,
- "y": 6,
- "i": "639f4668-fb33-427d-8ec8-4f11127a1bf3"
- },
- "id": "639f4668-fb33-427d-8ec8-4f11127a1bf3"
- },
- {
- "targets": [
- {
- "expr": "max(100 - ((node_filesystem_avail_bytes{instance=\"$node\",} * 100) / node_filesystem_size_bytes{instance=\"$node\"}))",
- "legend": "{{mountpoint}}"
- }
- ],
- "name": "磁盘分区使用率最大值",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "percent",
- "decimals": 1
- },
- "thresholds": {
- "steps": [
- {
- "value": 90,
- "color": "#f90101"
- }
- ]
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 0,
- "y": 7,
- "i": "981e2271-2c6c-4410-b3fb-73c35049c11a"
- },
- "id": "981e2271-2c6c-4410-b3fb-73c35049c11a"
- },
- {
- "targets": [
- {
- "expr": "node_time_seconds{instance=\"$node\"} - node_boot_time_seconds{instance=\"$node\"}"
- }
- ],
- "name": "启动时长",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {
- "title": null,
- "value": 20
- }
- },
- "options": {
- "valueMappings": [],
- "standardOptions": {
- "util": "humantimeSeconds",
- "decimals": 1
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 3,
- "x": 21,
- "y": 6,
- "i": "534ca690-87e5-4c53-9c8a-d3afe0276bf5"
- },
- "id": "534ca690-87e5-4c53-9c8a-d3afe0276bf5"
- },
- {
- "targets": [
- {
- "expr": "(node_memory_SwapTotal_bytes{instance=\"$node\"} - node_memory_SwapFree_bytes{instance=\"$node\"})"
- }
- ],
- "name": "SWAP内存使用",
- "description": "swap使用过高,会影响系统io性能,如果内存够用但swap使用很高,可以调小swappiness的值",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {
- "value": 30
- }
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "result": {
- "color": "#369903"
- },
- "match": {
- "from": 0,
- "to": 50
- }
- },
- {
- "type": "range",
- "match": {
- "special": 50,
- "from": 50,
- "to": 80
- },
- "result": {
- "color": "#fb9b2d"
- }
- },
- {
- "type": "range",
- "match": {
- "from": 80,
- "to": 100000
- },
- "result": {
- "color": "#d10000"
- }
- }
- ],
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 3,
- "x": 12,
- "y": 6,
- "i": "69c96540-965b-4e87-9eb7-c24a0c974474"
- },
- "id": "69c96540-965b-4e87-9eb7-c24a0c974474"
- },
- {
- "targets": [
- {
- "expr": "rate(node_vmstat_oom_kill{instance=\"$node\"}[1m])",
- "legend": "OOM"
- }
- ],
- "name": "OOM次数",
- "description": "大于0,说明有进程内存不够用了,需要考虑扩容或升级配置了",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "decimals": 1
- },
- "thresholds": {
- "steps": [
- {
- "value": 1,
- "color": "#f90101"
- }
- ]
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 18,
- "y": 7,
- "i": "39715d51-4d18-4185-8584-68a4d44adf2b"
- },
- "id": "39715d51-4d18-4185-8584-68a4d44adf2b"
- },
- {
- "targets": [
- {
- "expr": "max(rate(node_disk_io_time_seconds_total{instance=\"$node\"}[5m]) * 100)",
- "legend": "{{device}}"
- }
- ],
- "name": "磁盘设备io util 最大值",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "percent",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 12,
- "y": 7,
- "i": "4a9ea87d-d650-43ff-bf1e-70f44afabace"
- },
- "id": "4a9ea87d-d650-43ff-bf1e-70f44afabace"
- },
- {
- "targets": [
- {
- "expr": "node_filefd_allocated{instance=\"$node\"}/node_filefd_maximum{instance=\"$node\"}*100"
- }
- ],
- "name": "FD使用率",
- "description": "如果超过80%,建议把文件描述符的最大个数调大,或者扩容",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {
- "value": 25
- }
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "result": {
- "color": "#369903"
- },
- "match": {
- "from": 0,
- "to": 50
- }
- },
- {
- "type": "range",
- "match": {
- "special": 50,
- "from": 50,
- "to": 80
- },
- "result": {
- "color": "#fb9b2d"
- }
- },
- {
- "type": "range",
- "match": {
- "from": 80,
- "to": 100
- },
- "result": {
- "color": "#d10000"
- }
- }
- ],
- "standardOptions": {
- "util": "percent",
- "decimals": 1
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 3,
- "x": 15,
- "y": 6,
- "i": "14caedd8-a1fd-412b-8c50-e35d3df57a2b"
- },
- "id": "14caedd8-a1fd-412b-8c50-e35d3df57a2b"
- },
- {
- "targets": [
- {
- "expr": "max(100 - ((node_filesystem_files_free{instance=\"$node\",mountpoint!~\"/var/lib/.*\",mountpoint!~\"/run/user.*\"} * 100) / node_filesystem_files{instance=\"$node\",mountpoint!~\"/var/lib/.*\",mountpoint!~\"/run/user.*\"}))",
- "legend": "{{mountpoint}}"
- }
- ],
- "name": "inode分区使用率最大值",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "percent",
- "decimals": 1
- },
- "thresholds": {
- "steps": [
- {
- "value": 50,
- "color": "#f90101"
- }
- ]
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 6,
- "y": 7,
- "i": "82310aef-8db6-46bf-96a0-fcad68ae7d9e"
- },
- "id": "82310aef-8db6-46bf-96a0-fcad68ae7d9e"
- },
- {
- "targets": [
- {
- "expr": "sum(node_filesystem_device_error{instance=\"$node\",mountpoint!~\"/var/lib/.*\",mountpoint!~\"/run.*\"})",
- "legend": "{{mountpoint}}"
- }
- ],
- "name": "写文件错误数总和",
- "custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {
- "value": 30
- }
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "from": 0,
- "to": 0
- },
- "result": {
- "color": "#369903"
- }
- },
- {
- "type": "range",
- "match": {
- "from": 1,
- "to": 10000
- },
- "result": {
- "color": "#f0310f"
- }
- }
- ],
- "standardOptions": {
- "decimals": 1
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 3,
- "x": 18,
- "y": 6,
- "i": "84b04d6b-1f97-47b8-86ff-77e6b1af4f1d"
- },
- "id": "84b04d6b-1f97-47b8-86ff-77e6b1af4f1d"
- },
- {
- "id": "22df4dfe-6f93-4f44-b7ea-254a690922a5",
- "type": "row",
- "name": "系统指标",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 10,
- "i": "22df4dfe-6f93-4f44-b7ea-254a690922a5"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "node_procs_running{instance=\"$node\"}",
- "legend": "{{mountpoint}}"
- }
- ],
- "name": "进程数",
- "description": "进程数超过2000,可以考虑扩容了",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {
- "steps": [
- {
- "value": 2000,
- "color": "#ff0000"
- }
- ]
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 0,
- "y": 11,
- "i": "7c4fede9-18b6-4a45-9278-76b6f724716e"
- },
- "id": "7c4fede9-18b6-4a45-9278-76b6f724716e"
- },
- {
- "targets": [
- {
- "expr": "node_timex_offset_seconds{instance=\"$node\"}",
- "legend": "ntp偏移"
- }
- ],
- "name": "NTP偏移",
- "description": "",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {
- "steps": []
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 18,
- "y": 11,
- "i": "077b1181-00e2-44ce-9295-7528a8b829d5"
- },
- "id": "077b1181-00e2-44ce-9295-7528a8b829d5"
- },
- {
- "targets": [
- {
- "expr": "rate(node_intr_total{instance=\"$node\"}[1m])",
- "legend": "Interrupts"
- },
- {
- "expr": "irate(node_context_switches_total{instance=\"$node\"}[1m])",
- "legend": "context switches"
- }
- ],
- "name": "上下文切换/中断",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 11,
- "i": "28f96d86-79ed-4564-84c9-8e8c58d66985"
- },
- "id": "28f96d86-79ed-4564-84c9-8e8c58d66985"
- },
- {
- "targets": [
- {
- "expr": "node_entropy_available_bits{instance=\"$node\"}",
- "legend": "entropy"
- }
- ],
- "name": "熵池大小",
- "description": "熵池太小 ,程序使用随机函数会阻塞,可以安装 rng-tools 工具增加熵池大小,可参考\nhttps://codeantenna.com/a/Ab6aMd3NSA ",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {
- "steps": [
- {
- "value": 100,
- "color": "#f70202"
- }
- ]
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 12,
- "y": 11,
- "i": "1a16c5ad-1a71-4771-9f50-f3dcc4524f71"
- },
- "id": "1a16c5ad-1a71-4771-9f50-f3dcc4524f71"
- },
- {
- "id": "406a3fd8-52fb-4935-9971-d7a8f37437df",
- "type": "row",
- "name": "CPU详情",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 18,
- "i": "406a3fd8-52fb-4935-9971-d7a8f37437df"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": " (avg by (mode)(rate(node_cpu_seconds_total{instance=\"$node\",mode!=\"idle\"}[1m])))*100",
- "legend": "{{mode}}"
- }
- ],
- "name": "CPU使用率详情",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 8,
- "y": 19,
- "i": "bb2b0b33-2f78-428d-8847-d900d0bbdf25"
- },
- "id": "bb2b0b33-2f78-428d-8847-d900d0bbdf25"
- },
- {
- "targets": [
- {
- "expr": " (avg by (mode)(rate(node_cpu_seconds_total{instance=\"$node\",mode=\"idle\"}[1m])))*100",
- "legend": "cpu_idle"
- }
- ],
- "name": "CPU空闲率",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {
- "steps": [
- {
- "value": 10,
- "color": "#f90101"
- }
- ]
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 19,
- "i": "28f582ca-dd5c-41a8-8cc8-bcc88f755253"
- },
- "id": "28f582ca-dd5c-41a8-8cc8-bcc88f755253"
- },
- {
- "targets": [
- {
- "expr": "node_load1{instance=\"$node\"}",
- "legend": "load1"
- },
- {
- "expr": "node_load5{instance=\"$node\"}",
- "legend": "load5"
- },
- {
- "expr": "node_load15{instance=\"$node\"}",
- "legend": "load15"
- }
- ],
- "name": "CPU负载",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {
- "steps": []
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 19,
- "i": "51e95b78-940e-4e5e-9cf5-7c8515209de0"
- },
- "id": "51e95b78-940e-4e5e-9cf5-7c8515209de0"
- },
- {
- "id": "f3ab98b2-318b-451b-868e-d967555b7925",
- "type": "row",
- "name": "内存详情",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 26,
- "i": "f3ab98b2-318b-451b-868e-d967555b7925"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "node_memory_HugePages_Total{instance=\"$node\"}",
- "legend": "HugePages_Total"
- },
- {
- "expr": "node_memory_Hugepagesize_bytes{instance=\"$node\"}",
- "legend": "HugePages_Size"
- },
- {
- "expr": "node_memory_HugePages_Surp{instance=\"$node\"}",
- "legend": "HugePages_Surp "
- },
- {
- "expr": "node_memory_HugePages_Free{instance=\"$node\"}",
- "legend": "HugePages_Free"
- },
- {
- "expr": "node_memory_HugePages_Rsvd{instance=\"$node\"}",
- "legend": "HugePages_Rsvd"
- },
- {
- "expr": "node_memory_AnonHugePages_bytes{instance=\"$node\"}",
- "legend": "AnonHugePages"
- },
- {
- "expr": "node_memory_Inactive_file_bytes{instance=\"$node\"}",
- "legend": "Inactive_file"
- },
- {
- "expr": "node_memory_Inactive_anon_bytes{instance=\"$node\"}",
- "legend": "Inactive_anon"
- },
- {
- "expr": "node_memory_Active_file_bytes{instance=\"$node\"}",
- "legend": "Active_file"
- },
- {
- "expr": "node_memory_Active_anon_bytes{instance=\"$node\"}",
- "legend": "Active_anon"
- },
- {
- "expr": "node_memory_Unevictable_bytes{instance=\"$node\"}",
- "legend": "Unevictable"
- },
- {
- "expr": "node_memory_AnonPages_bytes{instance=\"$node\"}",
- "legend": "AnonPages"
- },
- {
- "expr": "node_memory_Shmem_bytes{instance=\"$node\"}",
- "legend": "Shmem"
- },
- {
- "expr": "node_memory_Mapped_bytes{instance=\"$node\"}",
- "legend": "Mapped"
- },
- {
- "expr": "node_memory_Cached_bytes{instance=\"$node\"} ",
- "legend": "Cache"
- },
- {
- "expr": "node_memory_SwapCached_bytes{instance=\"$node\"}",
- "legend": "SwapCache"
- },
- {
- "expr": "node_memory_Mlocked_bytes{instance=\"$node\"}",
- "legend": "Mlocked"
- },
- {
- "expr": "node_memory_Buffers_bytes{instance=\"$node\"}",
- "legend": "Buffers"
- }
- ],
- "name": "用户态内存使用",
- "description": "内存指标可参考链接 [/PROC/MEMINFO之谜](http://linuxperf.com/?p=142) ",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.35,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 27,
- "i": "6b084867-c1a4-4e7f-a0d7-5dd24524f82d"
- },
- "id": "6b084867-c1a4-4e7f-a0d7-5dd24524f82d"
- },
- {
- "targets": [
- {
- "expr": "node_memory_Slab_bytes{instance=\"$node\"}",
- "legend": "Slab "
- },
- {
- "expr": "node_memory_SReclaimable_bytes{instance=\"$node\"}",
- "legend": "SReclaimable "
- },
- {
- "expr": "node_memory_SUnreclaim_bytes{instance=\"$node\"}",
- "legend": "SUnreclaim "
- },
- {
- "expr": "node_memory_VmallocUsed_bytes{instance=\"$node\"}",
- "legend": "VmallocUsed"
- },
- {
- "expr": "node_memory_VmallocChunk_bytes{instance=\"$node\"}",
- "legend": "VmallocChunk"
- },
- {
- "expr": "node_memory_KernelStack_bytes{instance=\"$node\"}",
- "legend": "KernelStack"
- },
- {
- "expr": "node_memory_Bounce_bytes{instance=\"$node\"}",
- "legend": "Bounce "
- }
- ],
- "name": "内核态内存使用",
- "description": "内存指标可参考链接 [/PROC/MEMINFO之谜](http://linuxperf.com/?p=142) ",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 27,
- "i": "10b1dde7-7cad-4992-be3f-7e8c8aac8c03"
- },
- "id": "10b1dde7-7cad-4992-be3f-7e8c8aac8c03"
- },
- {
- "targets": [
- {
- "expr": "node_memory_DirectMap1G_bytes{instance=\"$node\"}",
- "legend": "DirectMap1G"
- },
- {
- "expr": "node_memory_DirectMap2M_bytes{instance=\"$node\"}",
- "legend": "DirectMap2M"
- },
- {
- "expr": "node_memory_DirectMap4k_bytes{instance=\"$node\"}",
- "legend": "DirectMap4K"
- }
- ],
- "name": "TLB效率",
- "description": "/proc/meminfo中的DirectMap所统计的不是关于内存的使用,而是一个反映TLB效率的指标。TLB(Translation Lookaside Buffer)是位于CPU上的缓存,用于将内存的虚拟地址翻译成物理地址,由于TLB的大小有限,不能缓存的地址就需要访问内存里的page table来进行翻译,速度慢很多。为了尽可能地将地址放进TLB缓存,新的CPU硬件支持比4k更大的页面从而达到减少地址数量的目的, 比如2MB,4MB,甚至1GB的内存页,视不同的硬件而定。”DirectMap4k”表示映射为4kB的内存数量, “DirectMap2M”表示映射为2MB的内存数量,以此类推。所以DirectMap其实是一个反映TLB效率的指标",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 29,
- "i": "ea5480e7-ec20-41e5-a007-74c846fae91a"
- },
- "id": "ea5480e7-ec20-41e5-a007-74c846fae91a"
- },
- {
- "targets": [
- {
- "expr": "node_memory_NFS_Unstable_bytes{instance=\"$node\"}",
- "legend": "NFS Unstable"
- },
- {
- "expr": "node_memory_Writeback_bytes{instance=\"$node\"}",
- "legend": "memory_Writeback"
- },
- {
- "expr": "node_memory_Dirty_bytes{instance=\"$node\"}",
- "legend": "memory_Dirty"
- }
- ],
- "name": "dirty page",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 29,
- "i": "8d31c2aa-38c9-434e-8c93-4cbae4e1bd8d"
- },
- "id": "8d31c2aa-38c9-434e-8c93-4cbae4e1bd8d"
- },
- {
- "id": "88aeb766-214b-43a9-85f3-9ec6368f0da0",
- "type": "row",
- "name": "磁盘详情",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 36,
- "i": "88aeb766-214b-43a9-85f3-9ec6368f0da0"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "node_filesystem_avail_bytes{instance=\"$node\",device!~'rootfs', device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"}",
- "legend": "{{mountpoint}} - Available"
- },
- {
- "expr": "node_filesystem_free_bytes{instance=\"$node\",device!~'rootfs',device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"}",
- "legend": "{{mountpoint}} - Free"
- },
- {
- "expr": "node_filesystem_size_bytes{instance=\"$node\",device!~'rootfs',device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"}",
- "legend": "{{mountpoint}} - Total"
- }
- ],
- "name": "磁盘空间",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": null
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 0,
- "y": 37,
- "i": "d30cf6d8-b40b-4be3-bc97-fa71f788602f"
- },
- "id": "d30cf6d8-b40b-4be3-bc97-fa71f788602f"
- },
- {
- "targets": [
- {
- "expr": "node_filesystem_files{instance=\"$node\",device!~'rootfs',device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"}",
- "legend": "{{mountpoint}} - total"
- },
- {
- "expr": "node_filesystem_files_free{instance=\"$node\",device!~'rootfs',device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"}",
- "legend": "{{mountpoint}} - free"
- }
- ],
- "name": "inode",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 12,
- "y": 37,
- "i": "985e4bef-dc1e-4b8d-9e46-66edd4cada3c"
- },
- "id": "985e4bef-dc1e-4b8d-9e46-66edd4cada3c"
- },
- {
- "targets": [
- {
- "expr": "node_filefd_maximum{instance=\"$node\"}",
- "legend": "Max open files"
- },
- {
- "expr": "node_filefd_allocated{instance=\"$node\"}",
- "legend": "Open files"
- }
- ],
- "name": "fd使用",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 37,
- "i": "a6ca862a-f704-4ce9-8402-016468657093"
- },
- "id": "a6ca862a-f704-4ce9-8402-016468657093"
- },
- {
- "targets": [
- {
- "expr": "node_filesystem_readonly{instance=\"$node\",device!~'rootfs',device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"}",
- "legend": "{{mountpoint}} - ReadOnly"
- },
- {
- "expr": "node_filesystem_device_error{instance=\"$node\",device!~'rootfs',device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"}",
- "legend": "{{mountpoint}} - Device error"
- }
- ],
- "name": "读写错误",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 18,
- "y": 37,
- "i": "362bfd2d-2ef2-49a0-b64e-14264495672c"
- },
- "id": "362bfd2d-2ef2-49a0-b64e-14264495672c"
- },
- {
- "targets": [
- {
- "expr": "rate(node_disk_reads_completed_total{instance=\"$node\"}[1m])",
- "legend": "{{device}}-reads"
- },
- {
- "expr": "rate(node_disk_writes_completed_total{instance=\"$node\"}[1m])",
- "legend": "{{device}} - Writes"
- },
- {
- "expr": "rate(node_disk_reads_merged_total{instance=\"$node\"}[1m])",
- "legend": "{{device}} - Read merged"
- },
- {
- "expr": "rate(node_disk_writes_merged_total{instance=\"$node\"}[1m])",
- "legend": "{{device}} - Write merged"
- }
- ],
- "name": "IO/Merged次数",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 18,
- "y": 39,
- "i": "b118aac2-217d-4fb3-881a-7926f0e8078e"
- },
- "id": "b118aac2-217d-4fb3-881a-7926f0e8078e"
- },
- {
- "targets": [
- {
- "expr": "rate(node_disk_read_bytes_total{instance=\"$node\"}[1m])",
- "legend": "{{device}}-Read bytes"
- },
- {
- "expr": "rate(node_disk_written_bytes_total{instance=\"$node\"}[1m])",
- "legend": "{{device}} - Written bytes"
- }
- ],
- "name": "读写数据大小",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 0
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 12,
- "y": 39,
- "i": "b516483d-ea9b-4f4c-9fdc-5ac70fe159d2"
- },
- "id": "b516483d-ea9b-4f4c-9fdc-5ac70fe159d2"
- },
- {
- "targets": [
- {
- "expr": "rate(node_disk_io_time_seconds_total{instance=\"$node\"}[1m])",
- "legend": "{{device}}"
- }
- ],
- "name": "io util",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 0,
- "y": 39,
- "i": "1572a36a-d5ac-403d-a5dd-21590bc8f5bf"
- },
- "id": "1572a36a-d5ac-403d-a5dd-21590bc8f5bf"
- },
- {
- "targets": [
- {
- "expr": "(rate(node_disk_read_time_seconds_total{instance=\"$node\"}[1m]) / rate(node_disk_reads_completed_total{instance=\"$node\"}[1m])+rate(node_disk_write_time_seconds_total{instance=\"$node\"}[1m]) / rate(node_disk_writes_completed_total{instance=\"$node\"}[1m]))*1000",
- "legend": "{{device}}"
- }
- ],
- "name": "io await",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.64,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 39,
- "i": "c06c49fa-60ce-4982-bfe5-1d5012dc4af1"
- },
- "id": "c06c49fa-60ce-4982-bfe5-1d5012dc4af1"
- },
- {
- "targets": [
- {
- "expr": "(rate(node_disk_read_bytes_total{instance=\"$node\"}[1m]) + rate(node_disk_written_bytes_total{instance=\"$node\"}[1m]))\n/\n(rate(node_disk_reads_completed_total{instance=\"$node\"}[1m]) + rate(node_disk_writes_completed_total{instance=\"$node\"}[1m]))",
- "legend": "avgrq-sz"
- }
- ],
- "name": "avgrq-sz",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 41,
- "i": "1c19b6ae-95fb-4358-bd01-bb0beec8d619"
- },
- "id": "1c19b6ae-95fb-4358-bd01-bb0beec8d619"
- },
- {
- "targets": [
- {
- "expr": "rate(node_disk_io_time_weighted_seconds_total{instance=\"$node\"}[1m])\n",
- "legend": "{{device}}"
- }
- ],
- "name": "avgqu-sz",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 41,
- "i": "8da1e948-283d-4e68-990f-8e6c9af22d05"
- },
- "id": "8da1e948-283d-4e68-990f-8e6c9af22d05"
- },
- {
- "id": "8fb70dca-4296-45a6-8dd3-770fc898ee65",
- "type": "row",
- "name": "网络详情",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 48,
- "i": "8fb70dca-4296-45a6-8dd3-770fc898ee65"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "rate(node_network_receive_bytes_total{instance=\"$node\",device=~\"e.*\"}[1m])*8",
- "legend": "{{device}} - in"
- },
- {
- "expr": "rate(node_network_transmit_bytes_total{instance=\"$node\",device=~\"e.*\"}[1m])*8",
- "legend": "{{device}} - out"
- }
- ],
- "name": "出入流量大小",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 0,
- "y": 49,
- "i": "ae5d7236-c89f-4fb3-ae5c-e70cb03cb168"
- },
- "id": "ae5d7236-c89f-4fb3-ae5c-e70cb03cb168"
- },
- {
- "targets": [
- {
- "expr": "rate(node_network_receive_packets_total{instance=\"$node\",device=~\"e.*\"}[1m])",
- "legend": "{{device}} - in"
- },
- {
- "expr": "rate(node_network_transmit_packets_total{instance=\"$node\",device=~\"e.*\"}[1m])",
- "legend": "{{device}} - out"
- }
- ],
- "name": "packets",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 49,
- "i": "9cc72d79-c0bd-440d-849a-bf8af74a2b6c"
- },
- "id": "9cc72d79-c0bd-440d-849a-bf8af74a2b6c"
- },
- {
- "targets": [
- {
- "expr": "rate(node_network_receive_errs_total{instance=\"$node\",device=~\"e.*\"}[1m])",
- "legend": "{{device}} - in"
- },
- {
- "expr": "rate(node_network_transmit_errs_total{instance=\"$node\",device=~\"e.*\"}[1m])",
- "legend": "{{device}} - out"
- }
- ],
- "name": "error",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 12,
- "y": 49,
- "i": "8b54d503-daa0-4bea-bb00-d9c723123efd"
- },
- "id": "8b54d503-daa0-4bea-bb00-d9c723123efd"
- },
- {
- "targets": [
- {
- "expr": "rate(node_network_receive_drop_total{instance=\"$node\",device=~\"e.*\"}[1m])",
- "legend": "{{device}} - in"
- },
- {
- "expr": "rate(node_network_transmit_drop_total{instance=\"$node\",device=~\"e.*\"}[1m])",
- "legend": "{{device}} - out"
- }
- ],
- "name": "drop",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 18,
- "y": 49,
- "i": "293fc82f-1e25-412b-93cc-f8daceb61bd9"
- },
- "id": "293fc82f-1e25-412b-93cc-f8daceb61bd9"
- },
- {
- "targets": [
- {
- "expr": "node_nf_conntrack_entries{instance=\"$node\"}",
- "legend": "NF conntrack entries"
- },
- {
- "expr": "node_nf_conntrack_entries_limit{instance=\"$node\"}",
- "legend": "NF conntrack limit"
- }
- ],
- "name": "nf_conntrack",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 51,
- "i": "8fe595ad-f393-4d1c-a523-888071ca41b9"
- },
- "id": "8fe595ad-f393-4d1c-a523-888071ca41b9"
- },
- {
- "targets": [
- {
- "expr": "node_sockstat_TCP_alloc{instance=\"$node\"}",
- "legend": "TCP_alloc"
- },
- {
- "expr": "node_sockstat_TCP_inuse{instance=\"$node\"}",
- "legend": "TCP_inuse"
- },
- {
- "expr": "node_sockstat_TCP_orphan{instance=\"$node\"}",
- "legend": "TCP_orphan"
- },
- {
- "expr": "node_sockstat_TCP_tw{instance=\"$node\"}",
- "legend": "TCP_tw"
- },
- {
- "expr": "node_netstat_Tcp_CurrEstab{instance=\"$node\"}",
- "legend": "TCP_CurrEstab"
- }
- ],
- "name": "tcp",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.27,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 8,
- "y": 51,
- "i": "64b815bc-b041-40f3-aaf2-21861836ab1d"
- },
- "id": "64b815bc-b041-40f3-aaf2-21861836ab1d"
- },
- {
- "targets": [
- {
- "expr": "node_sockstat_sockets_used{instance=\"$node\"}",
- "legend": "Sockets_used"
- }
- ],
- "name": "socket",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 51,
- "i": "d089d8a2-dbbf-4dbf-89a8-b463522b1c1d"
- },
- "id": "d089d8a2-dbbf-4dbf-89a8-b463522b1c1d"
- }
- ]
- }
+ "name": "HOST by Node Exporter",
+ "tags": "Prometheus Host",
+ "ident": "",
+ "configs": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "n9e",
+ "url": "https://n9e.gitee.io/"
+ },
+ {
+ "targetBlank": true,
+ "title": "author",
+ "url": "http://flashcat.cloud/"
+ }
+ ],
+ "panels": [
+ {
+ "collapsed": true,
+ "id": "3173366d-01a2-420e-8878-75124b0051b6",
+ "layout": {
+ "h": 1,
+ "i": "3173366d-01a2-420e-8878-75124b0051b6",
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "name": "整体概况",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "",
+ "id": "e1925fc8-cb05-467b-ba82-bb5cb6be7595",
+ "layout": {
+ "h": 3,
+ "i": "e1925fc8-cb05-467b-ba82-bb5cb6be7595",
+ "w": 9,
+ "x": 3,
+ "y": 1
+ },
+ "links": [],
+ "name": "cpu使用率 top10",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(10,100-(avg by (mode, instance)(rate(node_cpu_seconds_total{mode=\"idle\"}[1m])))*100)",
+ "legend": "{{instance}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "327b7e4b-6ec1-47e1-8840-d31cf4b5532b",
+ "layout": {
+ "h": 3,
+ "i": "327b7e4b-6ec1-47e1-8840-d31cf4b5532b",
+ "w": 12,
+ "x": 12,
+ "y": 1
+ },
+ "name": "内存使用率 top10",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(10,(node_memory_MemTotal_bytes - node_memory_MemFree_bytes - (node_memory_Cached_bytes + node_memory_Buffers_bytes))/node_memory_MemTotal_bytes*100)",
+ "legend": "{{instance}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "5a9d4a65-3f73-42cc-859e-fc0b82791b59",
+ "layout": {
+ "h": 3,
+ "i": "5a9d4a65-3f73-42cc-859e-fc0b82791b59",
+ "w": 12,
+ "x": 0,
+ "y": 2
+ },
+ "name": "磁盘分区使用率 top10",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(10,(node_filesystem_avail_bytes{device!~'rootfs', device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"} * 100) / node_filesystem_size_bytes{device!~'rootfs', device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"})",
+ "legend": "{{instance}}-{{mountpoint}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "fa764e4b-5ca9-45d8-b12e-604f8743f9d9",
+ "layout": {
+ "h": 3,
+ "i": "fa764e4b-5ca9-45d8-b12e-604f8743f9d9",
+ "w": 12,
+ "x": 12,
+ "y": 2
+ },
+ "name": "设备io util top10",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(10,rate(node_disk_io_time_seconds_total[5m]) * 100)",
+ "legend": "{{instance}}-{{device}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {
+ "value": 40
+ }
+ },
+ "id": "9a5e3292-b346-4ccf-a793-b83a2f8ac8c5",
+ "layout": {
+ "h": 3,
+ "i": "9a5e3292-b346-4ccf-a793-b83a2f8ac8c5",
+ "w": 3,
+ "x": 0,
+ "y": 1
+ },
+ "name": "监控机器数",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "count(node_boot_time_seconds)",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "396bf5e2-f204-4349-8e00-fb9d25ed7e79",
+ "layout": {
+ "h": 1,
+ "i": "396bf5e2-f204-4349-8e00-fb9d25ed7e79",
+ "w": 24,
+ "x": 0,
+ "y": 5
+ },
+ "name": "单机概况",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {
+ "value": 25
+ }
+ },
+ "description": "如果内存使用率超过50%,则需要扩容或者升级配置了",
+ "id": "56dc011d-fc1c-4682-a903-1b778cbff9e8",
+ "layout": {
+ "h": 3,
+ "i": "56dc011d-fc1c-4682-a903-1b778cbff9e8",
+ "w": 6,
+ "x": 6,
+ "y": 6
+ },
+ "name": "内存使用率",
+ "options": {
+ "standardOptions": {
+ "decimals": 1,
+ "util": "percent"
+ },
+ "valueMappings": [
+ {
+ "match": {
+ "from": 0,
+ "to": 50
+ },
+ "result": {
+ "color": "#369903"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 50,
+ "to": 100
+ },
+ "result": {
+ "color": "#e3170d"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "(node_memory_MemTotal_bytes{instance=\"$node\"} - node_memory_MemFree_bytes{instance=\"$node\"} - (node_memory_Cached_bytes{instance=\"$node\"} + node_memory_Buffers_bytes{instance=\"$node\"}))/node_memory_MemTotal_bytes{instance=\"$node\"}*100"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {
+ "value": 30
+ }
+ },
+ "description": "如果cpu使用率超过50%,可以通过top命令查看机器上是否有异常进程,如果没有异常进程,则说明服务需要扩容或者机器需要升级配置了",
+ "id": "639f4668-fb33-427d-8ec8-4f11127a1bf3",
+ "layout": {
+ "h": 3,
+ "i": "639f4668-fb33-427d-8ec8-4f11127a1bf3",
+ "w": 6,
+ "x": 0,
+ "y": 6
+ },
+ "name": "CPU使用率",
+ "options": {
+ "standardOptions": {
+ "decimals": 1,
+ "util": "percent"
+ },
+ "valueMappings": [
+ {
+ "match": {
+ "from": 0,
+ "to": 50
+ },
+ "result": {
+ "color": "#369903"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 50,
+ "special": 50,
+ "to": 100
+ },
+ "result": {
+ "color": "#b22222"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "(((count(count(node_cpu_seconds_total{instance=\"$node\"}) by (cpu))) - avg(sum by (mode)(rate(node_cpu_seconds_total{mode='idle',instance=\"$node\"}[1m])))) * 100) / count(count(node_cpu_seconds_total{instance=\"$node\"}) by (cpu))"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "981e2271-2c6c-4410-b3fb-73c35049c11a",
+ "layout": {
+ "h": 3,
+ "i": "981e2271-2c6c-4410-b3fb-73c35049c11a",
+ "w": 6,
+ "x": 0,
+ "y": 7
+ },
+ "name": "磁盘分区使用率最大值",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "percent"
+ },
+ "thresholds": {
+ "steps": [
+ {
+ "color": "#f90101",
+ "value": 90
+ }
+ ]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "max(100 - ((node_filesystem_avail_bytes{instance=\"$node\",} * 100) / node_filesystem_size_bytes{instance=\"$node\"}))",
+ "legend": "{{mountpoint}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {
+ "title": null,
+ "value": 20
+ }
+ },
+ "id": "534ca690-87e5-4c53-9c8a-d3afe0276bf5",
+ "layout": {
+ "h": 3,
+ "i": "534ca690-87e5-4c53-9c8a-d3afe0276bf5",
+ "w": 3,
+ "x": 21,
+ "y": 6
+ },
+ "name": "启动时长",
+ "options": {
+ "standardOptions": {
+ "decimals": 1,
+ "util": "humantimeSeconds"
+ },
+ "valueMappings": []
+ },
+ "targets": [
+ {
+ "expr": "node_time_seconds{instance=\"$node\"} - node_boot_time_seconds{instance=\"$node\"}"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {
+ "value": 30
+ }
+ },
+ "description": "swap使用过高,会影响系统io性能,如果内存够用但swap使用很高,可以调小swappiness的值",
+ "id": "69c96540-965b-4e87-9eb7-c24a0c974474",
+ "layout": {
+ "h": 3,
+ "i": "69c96540-965b-4e87-9eb7-c24a0c974474",
+ "w": 3,
+ "x": 12,
+ "y": 6
+ },
+ "name": "SWAP内存使用",
+ "options": {
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "valueMappings": [
+ {
+ "match": {
+ "from": 0,
+ "to": 50
+ },
+ "result": {
+ "color": "#369903"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 50,
+ "special": 50,
+ "to": 80
+ },
+ "result": {
+ "color": "#fb9b2d"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 80,
+ "to": 100000
+ },
+ "result": {
+ "color": "#d10000"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "(node_memory_SwapTotal_bytes{instance=\"$node\"} - node_memory_SwapFree_bytes{instance=\"$node\"})"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "大于0,说明有进程内存不够用了,需要考虑扩容或升级配置了",
+ "id": "39715d51-4d18-4185-8584-68a4d44adf2b",
+ "layout": {
+ "h": 3,
+ "i": "39715d51-4d18-4185-8584-68a4d44adf2b",
+ "w": 6,
+ "x": 18,
+ "y": 7
+ },
+ "name": "OOM次数",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1
+ },
+ "thresholds": {
+ "steps": [
+ {
+ "color": "#f90101",
+ "value": 1
+ }
+ ]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(node_vmstat_oom_kill{instance=\"$node\"}[1m])",
+ "legend": "OOM"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "4a9ea87d-d650-43ff-bf1e-70f44afabace",
+ "layout": {
+ "h": 3,
+ "i": "4a9ea87d-d650-43ff-bf1e-70f44afabace",
+ "w": 6,
+ "x": 12,
+ "y": 7
+ },
+ "name": "磁盘设备io util 最大值",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "percent"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "max(rate(node_disk_io_time_seconds_total{instance=\"$node\"}[5m]) * 100)",
+ "legend": "{{device}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {
+ "value": 25
+ }
+ },
+ "description": "如果超过80%,建议把文件描述符的最大个数调大,或者扩容",
+ "id": "14caedd8-a1fd-412b-8c50-e35d3df57a2b",
+ "layout": {
+ "h": 3,
+ "i": "14caedd8-a1fd-412b-8c50-e35d3df57a2b",
+ "w": 3,
+ "x": 15,
+ "y": 6
+ },
+ "name": "FD使用率",
+ "options": {
+ "standardOptions": {
+ "decimals": 1,
+ "util": "percent"
+ },
+ "valueMappings": [
+ {
+ "match": {
+ "from": 0,
+ "to": 50
+ },
+ "result": {
+ "color": "#369903"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 50,
+ "special": 50,
+ "to": 80
+ },
+ "result": {
+ "color": "#fb9b2d"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 80,
+ "to": 100
+ },
+ "result": {
+ "color": "#d10000"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "node_filefd_allocated{instance=\"$node\"}/node_filefd_maximum{instance=\"$node\"}*100"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "82310aef-8db6-46bf-96a0-fcad68ae7d9e",
+ "layout": {
+ "h": 3,
+ "i": "82310aef-8db6-46bf-96a0-fcad68ae7d9e",
+ "w": 6,
+ "x": 6,
+ "y": 7
+ },
+ "name": "inode分区使用率最大值",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "percent"
+ },
+ "thresholds": {
+ "steps": [
+ {
+ "color": "#f90101",
+ "value": 50
+ }
+ ]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "max(100 - ((node_filesystem_files_free{instance=\"$node\",mountpoint!~\"/var/lib/.*\",mountpoint!~\"/run/user.*\"} * 100) / node_filesystem_files{instance=\"$node\",mountpoint!~\"/var/lib/.*\",mountpoint!~\"/run/user.*\"}))",
+ "legend": "{{mountpoint}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
+ "textSize": {
+ "value": 30
+ }
+ },
+ "id": "84b04d6b-1f97-47b8-86ff-77e6b1af4f1d",
+ "layout": {
+ "h": 3,
+ "i": "84b04d6b-1f97-47b8-86ff-77e6b1af4f1d",
+ "w": 3,
+ "x": 18,
+ "y": 6
+ },
+ "name": "写文件错误数总和",
+ "options": {
+ "standardOptions": {
+ "decimals": 1
+ },
+ "valueMappings": [
+ {
+ "match": {
+ "from": 0,
+ "to": 0
+ },
+ "result": {
+ "color": "#369903"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 1,
+ "to": 10000
+ },
+ "result": {
+ "color": "#f0310f"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "sum(node_filesystem_device_error{instance=\"$node\",mountpoint!~\"/var/lib/.*\",mountpoint!~\"/run.*\"})",
+ "legend": "{{mountpoint}}"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "22df4dfe-6f93-4f44-b7ea-254a690922a5",
+ "layout": {
+ "h": 1,
+ "i": "22df4dfe-6f93-4f44-b7ea-254a690922a5",
+ "w": 24,
+ "x": 0,
+ "y": 10
+ },
+ "name": "系统指标",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "进程数超过2000,可以考虑扩容了",
+ "id": "7c4fede9-18b6-4a45-9278-76b6f724716e",
+ "layout": {
+ "h": 7,
+ "i": "7c4fede9-18b6-4a45-9278-76b6f724716e",
+ "w": 6,
+ "x": 0,
+ "y": 11
+ },
+ "name": "进程数",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {
+ "steps": [
+ {
+ "color": "#ff0000",
+ "value": 2000
+ }
+ ]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "node_procs_running{instance=\"$node\"}",
+ "legend": "{{mountpoint}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "",
+ "id": "077b1181-00e2-44ce-9295-7528a8b829d5",
+ "layout": {
+ "h": 7,
+ "i": "077b1181-00e2-44ce-9295-7528a8b829d5",
+ "w": 6,
+ "x": 18,
+ "y": 11
+ },
+ "name": "NTP偏移",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {
+ "steps": []
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "node_timex_offset_seconds{instance=\"$node\"}",
+ "legend": "ntp偏移"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "28f96d86-79ed-4564-84c9-8e8c58d66985",
+ "layout": {
+ "h": 7,
+ "i": "28f96d86-79ed-4564-84c9-8e8c58d66985",
+ "w": 6,
+ "x": 6,
+ "y": 11
+ },
+ "name": "上下文切换/中断",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(node_intr_total{instance=\"$node\"}[1m])",
+ "legend": "Interrupts"
+ },
+ {
+ "expr": "irate(node_context_switches_total{instance=\"$node\"}[1m])",
+ "legend": "context switches"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "熵池太小 ,程序使用随机函数会阻塞,可以安装 rng-tools 工具增加熵池大小,可参考\nhttps://codeantenna.com/a/Ab6aMd3NSA ",
+ "id": "1a16c5ad-1a71-4771-9f50-f3dcc4524f71",
+ "layout": {
+ "h": 7,
+ "i": "1a16c5ad-1a71-4771-9f50-f3dcc4524f71",
+ "w": 6,
+ "x": 12,
+ "y": 11
+ },
+ "name": "熵池大小",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {
+ "steps": [
+ {
+ "color": "#f70202",
+ "value": 100
+ }
+ ]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "node_entropy_available_bits{instance=\"$node\"}",
+ "legend": "entropy"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "406a3fd8-52fb-4935-9971-d7a8f37437df",
+ "layout": {
+ "h": 1,
+ "i": "406a3fd8-52fb-4935-9971-d7a8f37437df",
+ "w": 24,
+ "x": 0,
+ "y": 18
+ },
+ "name": "CPU详情",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "bb2b0b33-2f78-428d-8847-d900d0bbdf25",
+ "layout": {
+ "h": 7,
+ "i": "bb2b0b33-2f78-428d-8847-d900d0bbdf25",
+ "w": 8,
+ "x": 8,
+ "y": 19
+ },
+ "name": "CPU使用率详情",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": " (avg by (mode)(rate(node_cpu_seconds_total{instance=\"$node\",mode!=\"idle\"}[1m])))*100",
+ "legend": "{{mode}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "28f582ca-dd5c-41a8-8cc8-bcc88f755253",
+ "layout": {
+ "h": 7,
+ "i": "28f582ca-dd5c-41a8-8cc8-bcc88f755253",
+ "w": 8,
+ "x": 0,
+ "y": 19
+ },
+ "name": "CPU空闲率",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {
+ "steps": [
+ {
+ "color": "#f90101",
+ "value": 10
+ }
+ ]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": " (avg by (mode)(rate(node_cpu_seconds_total{instance=\"$node\",mode=\"idle\"}[1m])))*100",
+ "legend": "cpu_idle"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "51e95b78-940e-4e5e-9cf5-7c8515209de0",
+ "layout": {
+ "h": 7,
+ "i": "51e95b78-940e-4e5e-9cf5-7c8515209de0",
+ "w": 8,
+ "x": 16,
+ "y": 19
+ },
+ "name": "CPU负载",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {
+ "steps": []
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "node_load1{instance=\"$node\"}",
+ "legend": "load1"
+ },
+ {
+ "expr": "node_load5{instance=\"$node\"}",
+ "legend": "load5"
+ },
+ {
+ "expr": "node_load15{instance=\"$node\"}",
+ "legend": "load15"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "f3ab98b2-318b-451b-868e-d967555b7925",
+ "layout": {
+ "h": 1,
+ "i": "f3ab98b2-318b-451b-868e-d967555b7925",
+ "w": 24,
+ "x": 0,
+ "y": 26
+ },
+ "name": "内存详情",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.35,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "内存指标可参考链接 [/PROC/MEMINFO之谜](http://linuxperf.com/?p=142) ",
+ "id": "6b084867-c1a4-4e7f-a0d7-5dd24524f82d",
+ "layout": {
+ "h": 7,
+ "i": "6b084867-c1a4-4e7f-a0d7-5dd24524f82d",
+ "w": 12,
+ "x": 0,
+ "y": 27
+ },
+ "name": "用户态内存使用",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "node_memory_HugePages_Total{instance=\"$node\"}",
+ "legend": "HugePages_Total"
+ },
+ {
+ "expr": "node_memory_Hugepagesize_bytes{instance=\"$node\"}",
+ "legend": "HugePages_Size"
+ },
+ {
+ "expr": "node_memory_HugePages_Surp{instance=\"$node\"}",
+ "legend": "HugePages_Surp "
+ },
+ {
+ "expr": "node_memory_HugePages_Free{instance=\"$node\"}",
+ "legend": "HugePages_Free"
+ },
+ {
+ "expr": "node_memory_HugePages_Rsvd{instance=\"$node\"}",
+ "legend": "HugePages_Rsvd"
+ },
+ {
+ "expr": "node_memory_AnonHugePages_bytes{instance=\"$node\"}",
+ "legend": "AnonHugePages"
+ },
+ {
+ "expr": "node_memory_Inactive_file_bytes{instance=\"$node\"}",
+ "legend": "Inactive_file"
+ },
+ {
+ "expr": "node_memory_Inactive_anon_bytes{instance=\"$node\"}",
+ "legend": "Inactive_anon"
+ },
+ {
+ "expr": "node_memory_Active_file_bytes{instance=\"$node\"}",
+ "legend": "Active_file"
+ },
+ {
+ "expr": "node_memory_Active_anon_bytes{instance=\"$node\"}",
+ "legend": "Active_anon"
+ },
+ {
+ "expr": "node_memory_Unevictable_bytes{instance=\"$node\"}",
+ "legend": "Unevictable"
+ },
+ {
+ "expr": "node_memory_AnonPages_bytes{instance=\"$node\"}",
+ "legend": "AnonPages"
+ },
+ {
+ "expr": "node_memory_Shmem_bytes{instance=\"$node\"}",
+ "legend": "Shmem"
+ },
+ {
+ "expr": "node_memory_Mapped_bytes{instance=\"$node\"}",
+ "legend": "Mapped"
+ },
+ {
+ "expr": "node_memory_Cached_bytes{instance=\"$node\"} ",
+ "legend": "Cache"
+ },
+ {
+ "expr": "node_memory_SwapCached_bytes{instance=\"$node\"}",
+ "legend": "SwapCache"
+ },
+ {
+ "expr": "node_memory_Mlocked_bytes{instance=\"$node\"}",
+ "legend": "Mlocked"
+ },
+ {
+ "expr": "node_memory_Buffers_bytes{instance=\"$node\"}",
+ "legend": "Buffers"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "内存指标可参考链接 [/PROC/MEMINFO之谜](http://linuxperf.com/?p=142) ",
+ "id": "10b1dde7-7cad-4992-be3f-7e8c8aac8c03",
+ "layout": {
+ "h": 7,
+ "i": "10b1dde7-7cad-4992-be3f-7e8c8aac8c03",
+ "w": 12,
+ "x": 12,
+ "y": 27
+ },
+ "name": "内核态内存使用",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "node_memory_Slab_bytes{instance=\"$node\"}",
+ "legend": "Slab "
+ },
+ {
+ "expr": "node_memory_SReclaimable_bytes{instance=\"$node\"}",
+ "legend": "SReclaimable "
+ },
+ {
+ "expr": "node_memory_SUnreclaim_bytes{instance=\"$node\"}",
+ "legend": "SUnreclaim "
+ },
+ {
+ "expr": "node_memory_VmallocUsed_bytes{instance=\"$node\"}",
+ "legend": "VmallocUsed"
+ },
+ {
+ "expr": "node_memory_VmallocChunk_bytes{instance=\"$node\"}",
+ "legend": "VmallocChunk"
+ },
+ {
+ "expr": "node_memory_KernelStack_bytes{instance=\"$node\"}",
+ "legend": "KernelStack"
+ },
+ {
+ "expr": "node_memory_Bounce_bytes{instance=\"$node\"}",
+ "legend": "Bounce "
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "/proc/meminfo中的DirectMap所统计的不是关于内存的使用,而是一个反映TLB效率的指标。TLB(Translation Lookaside Buffer)是位于CPU上的缓存,用于将内存的虚拟地址翻译成物理地址,由于TLB的大小有限,不能缓存的地址就需要访问内存里的page table来进行翻译,速度慢很多。为了尽可能地将地址放进TLB缓存,新的CPU硬件支持比4k更大的页面从而达到减少地址数量的目的, 比如2MB,4MB,甚至1GB的内存页,视不同的硬件而定。”DirectMap4k”表示映射为4kB的内存数量, “DirectMap2M”表示映射为2MB的内存数量,以此类推。所以DirectMap其实是一个反映TLB效率的指标",
+ "id": "ea5480e7-ec20-41e5-a007-74c846fae91a",
+ "layout": {
+ "h": 7,
+ "i": "ea5480e7-ec20-41e5-a007-74c846fae91a",
+ "w": 12,
+ "x": 0,
+ "y": 29
+ },
+ "name": "TLB效率",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "node_memory_DirectMap1G_bytes{instance=\"$node\"}",
+ "legend": "DirectMap1G"
+ },
+ {
+ "expr": "node_memory_DirectMap2M_bytes{instance=\"$node\"}",
+ "legend": "DirectMap2M"
+ },
+ {
+ "expr": "node_memory_DirectMap4k_bytes{instance=\"$node\"}",
+ "legend": "DirectMap4K"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "8d31c2aa-38c9-434e-8c93-4cbae4e1bd8d",
+ "layout": {
+ "h": 7,
+ "i": "8d31c2aa-38c9-434e-8c93-4cbae4e1bd8d",
+ "w": 12,
+ "x": 12,
+ "y": 29
+ },
+ "name": "dirty page",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "node_memory_NFS_Unstable_bytes{instance=\"$node\"}",
+ "legend": "NFS Unstable"
+ },
+ {
+ "expr": "node_memory_Writeback_bytes{instance=\"$node\"}",
+ "legend": "memory_Writeback"
+ },
+ {
+ "expr": "node_memory_Dirty_bytes{instance=\"$node\"}",
+ "legend": "memory_Dirty"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "88aeb766-214b-43a9-85f3-9ec6368f0da0",
+ "layout": {
+ "h": 1,
+ "i": "88aeb766-214b-43a9-85f3-9ec6368f0da0",
+ "w": 24,
+ "x": 0,
+ "y": 36
+ },
+ "name": "磁盘详情",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "d30cf6d8-b40b-4be3-bc97-fa71f788602f",
+ "layout": {
+ "h": 7,
+ "i": "d30cf6d8-b40b-4be3-bc97-fa71f788602f",
+ "w": 6,
+ "x": 0,
+ "y": 37
+ },
+ "name": "磁盘空间",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": null,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "node_filesystem_avail_bytes{instance=\"$node\",device!~'rootfs', device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"}",
+ "legend": "{{mountpoint}} - Available"
+ },
+ {
+ "expr": "node_filesystem_free_bytes{instance=\"$node\",device!~'rootfs',device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"}",
+ "legend": "{{mountpoint}} - Free"
+ },
+ {
+ "expr": "node_filesystem_size_bytes{instance=\"$node\",device!~'rootfs',device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"}",
+ "legend": "{{mountpoint}} - Total"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "985e4bef-dc1e-4b8d-9e46-66edd4cada3c",
+ "layout": {
+ "h": 7,
+ "i": "985e4bef-dc1e-4b8d-9e46-66edd4cada3c",
+ "w": 6,
+ "x": 12,
+ "y": 37
+ },
+ "name": "inode",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "node_filesystem_files{instance=\"$node\",device!~'rootfs',device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"}",
+ "legend": "{{mountpoint}} - total"
+ },
+ {
+ "expr": "node_filesystem_files_free{instance=\"$node\",device!~'rootfs',device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"}",
+ "legend": "{{mountpoint}} - free"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "a6ca862a-f704-4ce9-8402-016468657093",
+ "layout": {
+ "h": 7,
+ "i": "a6ca862a-f704-4ce9-8402-016468657093",
+ "w": 6,
+ "x": 6,
+ "y": 37
+ },
+ "name": "fd使用",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "node_filefd_maximum{instance=\"$node\"}",
+ "legend": "Max open files"
+ },
+ {
+ "expr": "node_filefd_allocated{instance=\"$node\"}",
+ "legend": "Open files"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "362bfd2d-2ef2-49a0-b64e-14264495672c",
+ "layout": {
+ "h": 7,
+ "i": "362bfd2d-2ef2-49a0-b64e-14264495672c",
+ "w": 6,
+ "x": 18,
+ "y": 37
+ },
+ "name": "读写错误",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "node_filesystem_readonly{instance=\"$node\",device!~'rootfs',device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"}",
+ "legend": "{{mountpoint}} - ReadOnly"
+ },
+ {
+ "expr": "node_filesystem_device_error{instance=\"$node\",device!~'rootfs',device!~\"tmpfs\",mountpoint!~\"/var/lib.*\"}",
+ "legend": "{{mountpoint}} - Device error"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "b118aac2-217d-4fb3-881a-7926f0e8078e",
+ "layout": {
+ "h": 7,
+ "i": "b118aac2-217d-4fb3-881a-7926f0e8078e",
+ "w": 6,
+ "x": 18,
+ "y": 39
+ },
+ "name": "IO/Merged次数",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(node_disk_reads_completed_total{instance=\"$node\"}[1m])",
+ "legend": "{{device}}-reads"
+ },
+ {
+ "expr": "rate(node_disk_writes_completed_total{instance=\"$node\"}[1m])",
+ "legend": "{{device}} - Writes"
+ },
+ {
+ "expr": "rate(node_disk_reads_merged_total{instance=\"$node\"}[1m])",
+ "legend": "{{device}} - Read merged"
+ },
+ {
+ "expr": "rate(node_disk_writes_merged_total{instance=\"$node\"}[1m])",
+ "legend": "{{device}} - Write merged"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "b516483d-ea9b-4f4c-9fdc-5ac70fe159d2",
+ "layout": {
+ "h": 7,
+ "i": "b516483d-ea9b-4f4c-9fdc-5ac70fe159d2",
+ "w": 6,
+ "x": 12,
+ "y": 39
+ },
+ "name": "读写数据大小",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 0,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(node_disk_read_bytes_total{instance=\"$node\"}[1m])",
+ "legend": "{{device}}-Read bytes"
+ },
+ {
+ "expr": "rate(node_disk_written_bytes_total{instance=\"$node\"}[1m])",
+ "legend": "{{device}} - Written bytes"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "1572a36a-d5ac-403d-a5dd-21590bc8f5bf",
+ "layout": {
+ "h": 7,
+ "i": "1572a36a-d5ac-403d-a5dd-21590bc8f5bf",
+ "w": 6,
+ "x": 0,
+ "y": 39
+ },
+ "name": "io util",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(node_disk_io_time_seconds_total{instance=\"$node\"}[1m])",
+ "legend": "{{device}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.64,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "c06c49fa-60ce-4982-bfe5-1d5012dc4af1",
+ "layout": {
+ "h": 7,
+ "i": "c06c49fa-60ce-4982-bfe5-1d5012dc4af1",
+ "w": 6,
+ "x": 6,
+ "y": 39
+ },
+ "name": "io await",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "(rate(node_disk_read_time_seconds_total{instance=\"$node\"}[1m]) / rate(node_disk_reads_completed_total{instance=\"$node\"}[1m])+rate(node_disk_write_time_seconds_total{instance=\"$node\"}[1m]) / rate(node_disk_writes_completed_total{instance=\"$node\"}[1m]))*1000",
+ "legend": "{{device}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "1c19b6ae-95fb-4358-bd01-bb0beec8d619",
+ "layout": {
+ "h": 7,
+ "i": "1c19b6ae-95fb-4358-bd01-bb0beec8d619",
+ "w": 12,
+ "x": 0,
+ "y": 41
+ },
+ "name": "avgrq-sz",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "(rate(node_disk_read_bytes_total{instance=\"$node\"}[1m]) + rate(node_disk_written_bytes_total{instance=\"$node\"}[1m]))\n/\n(rate(node_disk_reads_completed_total{instance=\"$node\"}[1m]) + rate(node_disk_writes_completed_total{instance=\"$node\"}[1m]))",
+ "legend": "avgrq-sz"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "8da1e948-283d-4e68-990f-8e6c9af22d05",
+ "layout": {
+ "h": 7,
+ "i": "8da1e948-283d-4e68-990f-8e6c9af22d05",
+ "w": 12,
+ "x": 12,
+ "y": 41
+ },
+ "name": "avgqu-sz",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(node_disk_io_time_weighted_seconds_total{instance=\"$node\"}[1m])\n",
+ "legend": "{{device}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "8fb70dca-4296-45a6-8dd3-770fc898ee65",
+ "layout": {
+ "h": 1,
+ "i": "8fb70dca-4296-45a6-8dd3-770fc898ee65",
+ "w": 24,
+ "x": 0,
+ "y": 48
+ },
+ "name": "网络详情",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "ae5d7236-c89f-4fb3-ae5c-e70cb03cb168",
+ "layout": {
+ "h": 7,
+ "i": "ae5d7236-c89f-4fb3-ae5c-e70cb03cb168",
+ "w": 6,
+ "x": 0,
+ "y": 49
+ },
+ "name": "出入流量大小",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(node_network_receive_bytes_total{instance=\"$node\",device=~\"e.*\"}[1m])*8",
+ "legend": "{{device}} - in"
+ },
+ {
+ "expr": "rate(node_network_transmit_bytes_total{instance=\"$node\",device=~\"e.*\"}[1m])*8",
+ "legend": "{{device}} - out"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "9cc72d79-c0bd-440d-849a-bf8af74a2b6c",
+ "layout": {
+ "h": 7,
+ "i": "9cc72d79-c0bd-440d-849a-bf8af74a2b6c",
+ "w": 6,
+ "x": 6,
+ "y": 49
+ },
+ "name": "packets",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(node_network_receive_packets_total{instance=\"$node\",device=~\"e.*\"}[1m])",
+ "legend": "{{device}} - in"
+ },
+ {
+ "expr": "rate(node_network_transmit_packets_total{instance=\"$node\",device=~\"e.*\"}[1m])",
+ "legend": "{{device}} - out"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "8b54d503-daa0-4bea-bb00-d9c723123efd",
+ "layout": {
+ "h": 7,
+ "i": "8b54d503-daa0-4bea-bb00-d9c723123efd",
+ "w": 6,
+ "x": 12,
+ "y": 49
+ },
+ "name": "error",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(node_network_receive_errs_total{instance=\"$node\",device=~\"e.*\"}[1m])",
+ "legend": "{{device}} - in"
+ },
+ {
+ "expr": "rate(node_network_transmit_errs_total{instance=\"$node\",device=~\"e.*\"}[1m])",
+ "legend": "{{device}} - out"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "293fc82f-1e25-412b-93cc-f8daceb61bd9",
+ "layout": {
+ "h": 7,
+ "i": "293fc82f-1e25-412b-93cc-f8daceb61bd9",
+ "w": 6,
+ "x": 18,
+ "y": 49
+ },
+ "name": "drop",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(node_network_receive_drop_total{instance=\"$node\",device=~\"e.*\"}[1m])",
+ "legend": "{{device}} - in"
+ },
+ {
+ "expr": "rate(node_network_transmit_drop_total{instance=\"$node\",device=~\"e.*\"}[1m])",
+ "legend": "{{device}} - out"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "8fe595ad-f393-4d1c-a523-888071ca41b9",
+ "layout": {
+ "h": 7,
+ "i": "8fe595ad-f393-4d1c-a523-888071ca41b9",
+ "w": 8,
+ "x": 0,
+ "y": 51
+ },
+ "name": "nf_conntrack",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "node_nf_conntrack_entries{instance=\"$node\"}",
+ "legend": "NF conntrack entries"
+ },
+ {
+ "expr": "node_nf_conntrack_entries_limit{instance=\"$node\"}",
+ "legend": "NF conntrack limit"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.27,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "64b815bc-b041-40f3-aaf2-21861836ab1d",
+ "layout": {
+ "h": 7,
+ "i": "64b815bc-b041-40f3-aaf2-21861836ab1d",
+ "w": 8,
+ "x": 8,
+ "y": 51
+ },
+ "name": "tcp",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "node_sockstat_TCP_alloc{instance=\"$node\"}",
+ "legend": "TCP_alloc"
+ },
+ {
+ "expr": "node_sockstat_TCP_inuse{instance=\"$node\"}",
+ "legend": "TCP_inuse"
+ },
+ {
+ "expr": "node_sockstat_TCP_orphan{instance=\"$node\"}",
+ "legend": "TCP_orphan"
+ },
+ {
+ "expr": "node_sockstat_TCP_tw{instance=\"$node\"}",
+ "legend": "TCP_tw"
+ },
+ {
+ "expr": "node_netstat_Tcp_CurrEstab{instance=\"$node\"}",
+ "legend": "TCP_CurrEstab"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "d089d8a2-dbbf-4dbf-89a8-b463522b1c1d",
+ "layout": {
+ "h": 7,
+ "i": "d089d8a2-dbbf-4dbf-89a8-b463522b1c1d",
+ "w": 8,
+ "x": 16,
+ "y": 51
+ },
+ "name": "socket",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "node_sockstat_sockets_used{instance=\"$node\"}",
+ "legend": "Sockets_used"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "label_values(node_cpu_seconds_total, instance)",
+ "name": "node",
+ "options": [
+ "tt-fc-es01.nj:12345",
+ "tt-fc-es02.nj:12345",
+ "tt-fc-dev01.nj:12345",
+ "10.206.0.13:9100"
+ ],
+ "selected": "$node",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ }
+ ],
+ "version": "3.0.0"
+ }
}
\ No newline at end of file
diff --git a/docker/integrations/linux/dashboards/linux_by_telegraf.json b/docker/integrations/linux/dashboards/linux_by_telegraf.json
index 1001c8c2b3e6102c959dcd48daaed17ee09e7e0f..a72ce9a869954d202fcdb08ec11f21bb6bec6a19 100644
--- a/docker/integrations/linux/dashboards/linux_by_telegraf.json
+++ b/docker/integrations/linux/dashboards/linux_by_telegraf.json
@@ -3,613 +3,636 @@
"tags": "",
"ident": "",
"configs": {
- "var": [
- {
- "name": "ident",
- "definition": "label_values(system_load1,ident)"
- }
- ],
"links": [
{
+ "targetBlank": true,
"title": "n9e",
- "url": "https://n9e.gitee.io/",
- "targetBlank": true
+ "url": "https://n9e.gitee.io/"
},
{
+ "targetBlank": true,
"title": "author",
- "url": "http://flashcat.cloud/",
- "targetBlank": true
+ "url": "http://flashcat.cloud/"
}
],
- "version": "2.0.0",
"panels": [
{
+ "collapsed": true,
"id": "0f6a1394-7cf9-4958-bcfe-2fbb59e77c12",
- "type": "row",
- "name": "整体概况",
"layout": {
"h": 1,
+ "i": "0f6a1394-7cf9-4958-bcfe-2fbb59e77c12",
"w": 24,
"x": 0,
- "y": 0,
- "i": "0f6a1394-7cf9-4958-bcfe-2fbb59e77c12"
+ "y": 0
},
- "collapsed": true
+ "name": "整体概况",
+ "type": "row"
},
{
- "targets": [
- {
- "refId": "A",
- "expr": "count(system_load1)"
- }
- ],
- "name": "监控机器数",
"custom": {
- "textMode": "value",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
"textSize": {
"value": 50
}
},
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
+ "id": "877b6db5-e82c-499a-9ebc-8ad72c2891a8",
"layout": {
"h": 3,
+ "i": "877b6db5-e82c-499a-9ebc-8ad72c2891a8",
"w": 3,
"x": 0,
- "y": 1,
- "i": "877b6db5-e82c-499a-9ebc-8ad72c2891a8"
+ "y": 1
+ },
+ "name": "监控机器数",
+ "options": {
+ "standardOptions": {}
},
- "id": "877b6db5-e82c-499a-9ebc-8ad72c2891a8"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "topk(10, mem_used_percent)"
+ "expr": "count(system_load1)",
+ "refId": "A"
}
],
- "name": "内存率 top10",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "29a3e6ae-d278-49b3-972b-f12a6c7c091c",
"layout": {
"h": 3,
+ "i": "29a3e6ae-d278-49b3-972b-f12a6c7c091c",
"w": 9,
"x": 3,
- "y": 1,
- "i": "29a3e6ae-d278-49b3-972b-f12a6c7c091c"
+ "y": 1
},
- "id": "29a3e6ae-d278-49b3-972b-f12a6c7c091c"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(10, (100-cpu_usage_idle{cpu=\"cpu-total\"}))"
- }
- ],
- "name": "cpu使用率 top10",
+ "name": "内存率 top10",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
+ "targets": [
+ {
+ "expr": "topk(10, mem_used_percent)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "9f2a24d5-d19f-4651-b76d-add6b9011821",
"layout": {
"h": 3,
+ "i": "9f2a24d5-d19f-4651-b76d-add6b9011821",
"w": 12,
"x": 12,
- "y": 1,
- "i": "9f2a24d5-d19f-4651-b76d-add6b9011821"
+ "y": 1
},
- "id": "9f2a24d5-d19f-4651-b76d-add6b9011821"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(10, (disk_used_percent{path!~\"/var.*\"}))",
- "legend": "{{ident}}-{{path}}"
- }
- ],
- "name": "磁盘分区使用率 top10",
+ "name": "cpu使用率 top10",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "topk(10, (100-cpu_usage_idle{cpu=\"cpu-total\"}))",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "dcd60296-db84-4562-99f3-2829c2f064a4",
"layout": {
"h": 3,
+ "i": "dcd60296-db84-4562-99f3-2829c2f064a4",
"w": 12,
"x": 0,
- "y": 2,
- "i": "dcd60296-db84-4562-99f3-2829c2f064a4"
+ "y": 2
},
- "id": "dcd60296-db84-4562-99f3-2829c2f064a4"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(10, (rate(diskio_io_time[1m])/10))",
- "legend": ""
- }
- ],
- "name": "设备io util top10",
+ "name": "磁盘分区使用率 top10",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "topk(10, (disk_used_percent{path!~\"/var.*\"}))",
+ "legend": "{{ident}}-{{path}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "ef7df29d-7dce-4788-ae42-d21d842c67d6",
"layout": {
"h": 3,
+ "i": "ef7df29d-7dce-4788-ae42-d21d842c67d6",
"w": 12,
"x": 12,
- "y": 2,
- "i": "ef7df29d-7dce-4788-ae42-d21d842c67d6"
+ "y": 2
+ },
+ "name": "设备io util top10",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
- "id": "ef7df29d-7dce-4788-ae42-d21d842c67d6"
+ "targets": [
+ {
+ "expr": "topk(10, (rate(diskio_io_time[1m])/10))",
+ "legend": "",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
+ "collapsed": true,
"id": "7b2c5cb2-fe3b-4596-95a1-37da06cd6498",
- "type": "row",
- "name": "单机概况",
"layout": {
"h": 1,
+ "i": "7b2c5cb2-fe3b-4596-95a1-37da06cd6498",
"w": 24,
"x": 0,
- "y": 5,
- "i": "7b2c5cb2-fe3b-4596-95a1-37da06cd6498"
+ "y": 5
},
- "collapsed": true
+ "name": "单机概况",
+ "type": "row"
},
{
- "targets": [
- {
- "refId": "A",
- "expr": "system_uptime{ident=\"$ident\"}"
- }
- ],
- "name": "启动时长",
"custom": {
- "textMode": "value",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
"textSize": {
"value": 30
}
},
- "options": {
- "valueMappings": [],
- "standardOptions": {
- "util": "humantimeSeconds",
- "decimals": 1
- }
- },
- "version": "2.0.0",
- "type": "stat",
+ "id": "50f09231-fc5e-4f6d-9367-a3158504689b",
"layout": {
"h": 3,
+ "i": "50f09231-fc5e-4f6d-9367-a3158504689b",
"w": 6,
"x": 0,
- "y": 6,
- "i": "50f09231-fc5e-4f6d-9367-a3158504689b"
+ "y": 6
+ },
+ "name": "启动时长",
+ "options": {
+ "standardOptions": {
+ "decimals": 1,
+ "util": "humantimeSeconds"
+ },
+ "valueMappings": []
},
- "id": "50f09231-fc5e-4f6d-9367-a3158504689b"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "100-cpu_usage_idle{ident=\"$ident\",cpu=\"cpu-total\"}"
+ "expr": "system_uptime{ident=\"$ident\"}",
+ "refId": "A"
}
],
- "name": "CPU使用率",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "value",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
"textSize": {
"value": 30
}
},
+ "id": "d44e951d-c333-4ed9-9303-9c8d29da7993",
+ "layout": {
+ "h": 3,
+ "i": "d44e951d-c333-4ed9-9303-9c8d29da7993",
+ "w": 6,
+ "x": 6,
+ "y": 6
+ },
+ "name": "CPU使用率",
"options": {
+ "standardOptions": {
+ "decimals": 1,
+ "util": "percent"
+ },
"valueMappings": [
{
- "type": "range",
"match": {
"from": 0,
"to": 50
},
"result": {
"color": "#129b22"
- }
+ },
+ "type": "range"
},
{
- "type": "range",
"match": {
"from": 50,
"to": 100
},
"result": {
"color": "#f51919"
- }
+ },
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "percent",
- "decimals": 1
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 6,
- "y": 6,
- "i": "d44e951d-c333-4ed9-9303-9c8d29da7993"
+ ]
},
- "id": "d44e951d-c333-4ed9-9303-9c8d29da7993"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "mem_used_percent{ident=\"$ident\"}"
+ "expr": "100-cpu_usage_idle{ident=\"$ident\",cpu=\"cpu-total\"}",
+ "refId": "A"
}
],
- "name": "内存使用率",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "value",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
"textSize": {
"value": 30
}
},
+ "id": "278c2fa1-0b19-4718-8b12-fb1c2e776258",
+ "layout": {
+ "h": 3,
+ "i": "278c2fa1-0b19-4718-8b12-fb1c2e776258",
+ "w": 6,
+ "x": 12,
+ "y": 6
+ },
+ "name": "内存使用率",
"options": {
+ "standardOptions": {
+ "decimals": 1,
+ "util": "percent"
+ },
"valueMappings": [
{
- "type": "range",
"match": {
"from": 0,
"to": 50
},
"result": {
"color": "#129b22"
- }
+ },
+ "type": "range"
},
{
- "type": "range",
"match": {
"from": 50,
"to": 100
},
"result": {
"color": "#f51919"
- }
+ },
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "percent",
- "decimals": 1
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 12,
- "y": 6,
- "i": "278c2fa1-0b19-4718-8b12-fb1c2e776258"
+ ]
},
- "id": "278c2fa1-0b19-4718-8b12-fb1c2e776258"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "linux_sysctl_fs_file_nr{ident=\"$ident\"}/linux_sysctl_fs_file_max{ident=\"$ident\"}*100"
+ "expr": "mem_used_percent{ident=\"$ident\"}",
+ "refId": "A"
}
],
- "name": "FD使用率",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "value",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
"textSize": {
"value": 25
}
},
+ "id": "484afcd4-7b25-4af1-8e95-88cc675f7f43",
+ "layout": {
+ "h": 3,
+ "i": "484afcd4-7b25-4af1-8e95-88cc675f7f43",
+ "w": 3,
+ "x": 18,
+ "y": 6
+ },
+ "name": "FD使用率",
"options": {
+ "standardOptions": {
+ "decimals": 2,
+ "util": "percent"
+ },
"valueMappings": [
{
- "type": "range",
"match": {
"from": 0,
"to": 50
},
"result": {
"color": "#129b22"
- }
+ },
+ "type": "range"
},
{
- "type": "range",
"match": {
"from": 50,
"to": 100
},
"result": {
"color": "#f51919"
- }
+ },
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "percent",
- "decimals": 2
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 3,
- "x": 18,
- "y": 6,
- "i": "484afcd4-7b25-4af1-8e95-88cc675f7f43"
+ ]
},
- "id": "484afcd4-7b25-4af1-8e95-88cc675f7f43"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "mem_swap_total{ident=\"$ident\"}-mem_swap_free{ident=\"$ident\"}"
+ "expr": "linux_sysctl_fs_file_nr{ident=\"$ident\"}/linux_sysctl_fs_file_max{ident=\"$ident\"}*100",
+ "refId": "A"
}
],
- "name": "SWAP使用",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "value",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
"textSize": {
"value": 40
}
},
- "options": {
- "valueMappings": [],
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- }
- },
- "version": "2.0.0",
- "type": "stat",
+ "id": "142f63d7-4979-4354-81b5-a9c5ec81fae9",
"layout": {
"h": 3,
+ "i": "142f63d7-4979-4354-81b5-a9c5ec81fae9",
"w": 3,
"x": 21,
- "y": 6,
- "i": "142f63d7-4979-4354-81b5-a9c5ec81fae9"
+ "y": 6
},
- "id": "142f63d7-4979-4354-81b5-a9c5ec81fae9"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "disk_used_percent{ident=\"$ident\"}",
- "legend": "{{path}}"
- }
- ],
- "name": "磁盘使用率",
+ "name": "SWAP使用",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
"standardOptions": {
- "util": "percent",
- "decimals": 1
+ "decimals": 1,
+ "util": "bytesIEC"
},
- "thresholds": {}
+ "valueMappings": []
},
+ "targets": [
+ {
+ "expr": "mem_swap_total{ident=\"$ident\"}-mem_swap_free{ident=\"$ident\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "4d6ec15c-8fdd-47db-a9f7-a57f03009e66",
"layout": {
"h": 3,
+ "i": "4d6ec15c-8fdd-47db-a9f7-a57f03009e66",
"w": 8,
"x": 0,
- "y": 7,
- "i": "4d6ec15c-8fdd-47db-a9f7-a57f03009e66"
+ "y": 7
},
- "id": "4d6ec15c-8fdd-47db-a9f7-a57f03009e66"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "disk_inodes_used{ident=\"$ident\"}/disk_inodes_total{ident=\"$ident\"}",
- "legend": "{{path}}"
- }
- ],
- "name": "inode使用率",
+ "name": "磁盘使用率",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
- "util": "percent",
- "decimals": 1
+ "decimals": 1,
+ "util": "percent"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "disk_used_percent{ident=\"$ident\"}",
+ "legend": "{{path}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "2991ad6b-c219-4f1d-b298-e195cf35cfec",
"layout": {
"h": 3,
+ "i": "2991ad6b-c219-4f1d-b298-e195cf35cfec",
"w": 8,
"x": 8,
- "y": 7,
- "i": "2991ad6b-c219-4f1d-b298-e195cf35cfec"
+ "y": 7
},
- "id": "2991ad6b-c219-4f1d-b298-e195cf35cfec"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(diskio_io_time{ident=\"$ident\"}[1m])/10",
- "legend": "{{name}}"
- }
- ],
- "name": "io_util",
+ "name": "inode使用率",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
- "util": "percent",
- "decimals": 1
+ "decimals": 1,
+ "util": "percent"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
+ "targets": [
+ {
+ "expr": "disk_inodes_used{ident=\"$ident\"}/disk_inodes_total{ident=\"$ident\"}",
+ "legend": "{{path}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "935435db-5a1e-4330-b95f-825e91e9d99e",
"layout": {
"h": 3,
+ "i": "935435db-5a1e-4330-b95f-825e91e9d99e",
"w": 8,
"x": 16,
- "y": 7,
- "i": "935435db-5a1e-4330-b95f-825e91e9d99e"
+ "y": 7
+ },
+ "name": "io_util",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "percent"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
- "id": "935435db-5a1e-4330-b95f-825e91e9d99e"
+ "targets": [
+ {
+ "expr": "rate(diskio_io_time{ident=\"$ident\"}[1m])/10",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
+ "collapsed": true,
"id": "1a19ca3f-3296-43ef-a36c-523ead023489",
- "type": "row",
- "name": "系统指标",
"layout": {
"h": 1,
+ "i": "1a19ca3f-3296-43ef-a36c-523ead023489",
"w": 24,
"x": 0,
- "y": 10,
- "i": "1a19ca3f-3296-43ef-a36c-523ead023489"
+ "y": 10
},
- "collapsed": true
+ "name": "系统指标",
+ "type": "row"
},
{
- "targets": [
- {
- "refId": "A",
- "expr": "processes_total{ident=\"$ident\"}"
- }
- ],
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "bab39b5e-63cf-4e88-a474-4ea8f2585d8e",
+ "layout": {
+ "h": 7,
+ "i": "bab39b5e-63cf-4e88-a474-4ea8f2585d8e",
+ "w": 8,
+ "x": 0,
+ "y": 11
+ },
"name": "进程总数",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
@@ -617,85 +640,88 @@
"thresholds": {
"steps": [
{
- "value": 2000,
- "color": "#fa2a05"
+ "color": "#fa2a05",
+ "value": 2000
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
+ "targets": [
+ {
+ "expr": "processes_total{ident=\"$ident\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "0ea75485-cc11-4b44-b13f-911429d9e103",
"layout": {
"h": 7,
+ "i": "0ea75485-cc11-4b44-b13f-911429d9e103",
"w": 8,
- "x": 0,
- "y": 11,
- "i": "bab39b5e-63cf-4e88-a474-4ea8f2585d8e"
+ "x": 8,
+ "y": 11
+ },
+ "name": "上下文切换/中断",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
- "id": "bab39b5e-63cf-4e88-a474-4ea8f2585d8e"
- },
- {
"targets": [
{
- "refId": "A",
"expr": "rate(kernel_context_switches{ident=\"$ident\"}[1m])",
- "legend": "context_switches"
+ "legend": "context_switches",
+ "refId": "A"
},
{
"expr": "rate(kernel_interrupts{ident=\"$ident\"}[1m])",
- "refId": "B",
- "legend": "kernel_interrupts"
+ "legend": "kernel_interrupts",
+ "refId": "B"
}
],
- "name": "上下文切换/中断",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "32d764fa-ed86-4099-b0f8-1cb8c7f67315",
"layout": {
"h": 7,
+ "i": "32d764fa-ed86-4099-b0f8-1cb8c7f67315",
"w": 8,
- "x": 8,
- "y": 11,
- "i": "0ea75485-cc11-4b44-b13f-911429d9e103"
+ "x": 16,
+ "y": 11
},
- "id": "0ea75485-cc11-4b44-b13f-911429d9e103"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "kernel_entropy_avail{ident=\"$ident\"}",
- "legend": "entropy_avail"
- }
- ],
"name": "熵池大小",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
@@ -703,56 +729,58 @@
"thresholds": {
"steps": [
{
- "value": 100,
- "color": "#f50505"
+ "color": "#f50505",
+ "value": 100
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
+ "targets": [
+ {
+ "expr": "kernel_entropy_avail{ident=\"$ident\"}",
+ "legend": "entropy_avail",
+ "refId": "A"
+ }
+ ],
"type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 11,
- "i": "32d764fa-ed86-4099-b0f8-1cb8c7f67315"
- },
- "id": "32d764fa-ed86-4099-b0f8-1cb8c7f67315"
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
+ "collapsed": true,
"id": "fe779989-795e-4ef6-9280-fdea929bb397",
- "type": "row",
- "name": "CPU",
"layout": {
"h": 1,
+ "i": "fe779989-795e-4ef6-9280-fdea929bb397",
"w": 24,
"x": 0,
- "y": 18,
- "i": "fe779989-795e-4ef6-9280-fdea929bb397"
+ "y": 18
},
- "collapsed": true
+ "name": "CPU",
+ "type": "row"
},
{
- "targets": [
- {
- "refId": "A",
- "expr": "cpu_usage_idle{ident=\"$ident\",cpu=\"cpu-total\"}",
- "legend": "cpu_usage_idle"
- }
- ],
- "name": "CPU空闲率",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "f5b86c4f-2104-41a4-9d01-a62ee64c04ff",
+ "layout": {
+ "h": 7,
+ "i": "f5b86c4f-2104-41a4-9d01-a62ee64c04ff",
+ "w": 8,
+ "x": 0,
+ "y": 19
+ },
+ "name": "CPU空闲率",
+ "options": {
"legend": {
"displayMode": "hidden"
},
@@ -760,40 +788,65 @@
"thresholds": {
"steps": [
{
- "value": 10,
- "color": "#f20202"
+ "color": "#f20202",
+ "value": 10
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
+ "targets": [
+ {
+ "expr": "cpu_usage_idle{ident=\"$ident\",cpu=\"cpu-total\"}",
+ "legend": "cpu_usage_idle",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "e833715f-065c-4b1b-9f0d-e1223b6992b8",
"layout": {
"h": 7,
+ "i": "e833715f-065c-4b1b-9f0d-e1223b6992b8",
"w": 8,
- "x": 0,
- "y": 19,
- "i": "f5b86c4f-2104-41a4-9d01-a62ee64c04ff"
+ "x": 8,
+ "y": 19
+ },
+ "name": "CPU使用率详情",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
- "id": "f5b86c4f-2104-41a4-9d01-a62ee64c04ff"
- },
- {
"targets": [
{
- "refId": "A",
"expr": "cpu_usage_guest{ident=\"$ident\",cpu=\"cpu-total\"}",
- "legend": ""
+ "legend": "",
+ "refId": "A"
},
{
"expr": "cpu_usage_iowait{ident=\"$ident\",cpu=\"cpu-total\"}",
- "refId": "B",
- "legend": ""
+ "legend": "",
+ "refId": "B"
},
{
"expr": "cpu_usage_user{ident=\"$ident\",cpu=\"cpu-total\"}",
@@ -820,40 +873,42 @@
"refId": "H"
}
],
- "name": "CPU使用率详情",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "b19f9420-9ce2-4d3c-86bf-fc247c8b760e",
"layout": {
"h": 7,
+ "i": "b19f9420-9ce2-4d3c-86bf-fc247c8b760e",
"w": 8,
- "x": 8,
- "y": 19,
- "i": "e833715f-065c-4b1b-9f0d-e1223b6992b8"
+ "x": 16,
+ "y": 19
+ },
+ "name": "CPU负载",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
- "id": "e833715f-065c-4b1b-9f0d-e1223b6992b8"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "system_load15{ident=\"$ident\"}"
+ "expr": "system_load15{ident=\"$ident\"}",
+ "refId": "A"
},
{
"expr": "system_load1{ident=\"$ident\"}",
@@ -864,53 +919,56 @@
"refId": "C"
}
],
- "name": "CPU负载",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
"type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 19,
- "i": "b19f9420-9ce2-4d3c-86bf-fc247c8b760e"
- },
- "id": "b19f9420-9ce2-4d3c-86bf-fc247c8b760e"
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
+ "collapsed": true,
"id": "e9ebdac6-4a87-4a79-b125-e5a258a968d0",
- "type": "row",
- "name": "内存详情",
"layout": {
"h": 1,
+ "i": "e9ebdac6-4a87-4a79-b125-e5a258a968d0",
"w": 24,
"x": 0,
- "y": 26,
- "i": "e9ebdac6-4a87-4a79-b125-e5a258a968d0"
+ "y": 26
},
- "collapsed": true
+ "name": "内存详情",
+ "type": "row"
},
{
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "内存指标可参考链接 [/PROC/MEMINFO之谜](http://linuxperf.com/?p=142) ",
+ "id": "655608d2-0d6d-46ed-9e6a-c482edaeacec",
+ "layout": {
+ "h": 7,
+ "i": "655608d2-0d6d-46ed-9e6a-c482edaeacec",
+ "w": 12,
+ "x": 0,
+ "y": 27
+ },
+ "name": "用户态内存使用",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
"targets": [
{
- "refId": "A",
- "expr": "mem_active{ident=\"$ident\"}"
+ "expr": "mem_active{ident=\"$ident\"}",
+ "refId": "A"
},
{
"expr": "mem_cached{ident=\"$ident\"}",
@@ -937,41 +995,42 @@
"refId": "G"
}
],
- "name": "用户态内存使用",
- "description": "内存指标可参考链接 [/PROC/MEMINFO之谜](http://linuxperf.com/?p=142) ",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "d57fe702-e21f-45ee-9b36-31695e698059",
"layout": {
"h": 7,
+ "i": "d57fe702-e21f-45ee-9b36-31695e698059",
"w": 12,
- "x": 0,
- "y": 27,
- "i": "655608d2-0d6d-46ed-9e6a-c482edaeacec"
+ "x": 12,
+ "y": 27
+ },
+ "name": "内核态内存使用",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
- "id": "655608d2-0d6d-46ed-9e6a-c482edaeacec"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "mem_slab{ident=\"$ident\"}"
+ "expr": "mem_slab{ident=\"$ident\"}",
+ "refId": "A"
},
{
"expr": "mem_sreclaimable{ident=\"$ident\"}",
@@ -990,53 +1049,58 @@
"refId": "E"
}
],
- "name": "内核态内存使用",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
"type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 27,
- "i": "d57fe702-e21f-45ee-9b36-31695e698059"
- },
- "id": "d57fe702-e21f-45ee-9b36-31695e698059"
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
+ "collapsed": true,
"id": "893315c8-54ac-4eaf-9072-d0a2debd3404",
- "type": "row",
- "name": "磁盘详情",
"layout": {
"h": 1,
+ "i": "893315c8-54ac-4eaf-9072-d0a2debd3404",
"w": 24,
"x": 0,
- "y": 34,
- "i": "893315c8-54ac-4eaf-9072-d0a2debd3404"
+ "y": 34
},
- "collapsed": true
+ "name": "磁盘详情",
+ "type": "row"
},
{
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "b39143a6-9ca8-4732-9100-0a8c029440b5",
+ "layout": {
+ "h": 7,
+ "i": "b39143a6-9ca8-4732-9100-0a8c029440b5",
+ "w": 8,
+ "x": 0,
+ "y": 35
+ },
+ "name": "磁盘空间",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": null,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
"targets": [
{
- "refId": "A",
- "expr": "disk_free{ident=\"$ident\"}"
+ "expr": "disk_free{ident=\"$ident\"}",
+ "refId": "A"
},
{
"expr": "disk_total{ident=\"$ident\"}",
@@ -1047,439 +1111,456 @@
"refId": "C"
}
],
- "name": "磁盘空间",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": null
- },
- "thresholds": {}
- },
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "3a13d95d-a311-4b0b-87f2-4216cac9a533",
"layout": {
"h": 7,
+ "i": "3a13d95d-a311-4b0b-87f2-4216cac9a533",
"w": 8,
- "x": 0,
- "y": 35,
- "i": "b39143a6-9ca8-4732-9100-0a8c029440b5"
+ "x": 8,
+ "y": 35
+ },
+ "name": "fd使用",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
- "id": "b39143a6-9ca8-4732-9100-0a8c029440b5"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "linux_sysctl_fs_file_max{ident=\"$ident\"}"
+ "expr": "linux_sysctl_fs_file_max{ident=\"$ident\"}",
+ "refId": "A"
},
{
"expr": "linux_sysctl_fs_file_nr{ident=\"$ident\"}",
"refId": "B"
}
],
- "name": "fd使用",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "6a1fa455-a385-456a-a32b-30119082f453",
"layout": {
"h": 7,
+ "i": "6a1fa455-a385-456a-a32b-30119082f453",
"w": 8,
- "x": 8,
- "y": 35,
- "i": "3a13d95d-a311-4b0b-87f2-4216cac9a533"
+ "x": 16,
+ "y": 35
+ },
+ "name": "inode",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
- "id": "3a13d95d-a311-4b0b-87f2-4216cac9a533"
- },
- {
"targets": [
{
- "refId": "A",
"expr": "disk_inodes_total{ident=\"$ident\",path!~\"/var.*\"}",
- "legend": "{{path}}-total"
+ "legend": "{{path}}-total",
+ "refId": "A"
},
{
"expr": "disk_inodes_used{ident=\"$ident\",path!~\"/var.*\"}",
- "refId": "B",
- "legend": "{{path}}-used"
+ "legend": "{{path}}-used",
+ "refId": "B"
}
],
- "name": "inode",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "c74e5155-0e3c-4cb4-8e57-ce8af46ddf90",
"layout": {
"h": 7,
+ "i": "c74e5155-0e3c-4cb4-8e57-ce8af46ddf90",
"w": 8,
- "x": 16,
- "y": 35,
- "i": "6a1fa455-a385-456a-a32b-30119082f453"
+ "x": 0,
+ "y": 37
+ },
+ "name": "IOPS",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
- "id": "6a1fa455-a385-456a-a32b-30119082f453"
- },
- {
"targets": [
{
- "refId": "A",
"expr": "rate(diskio_reads{ident=\"$ident\"}[1m])",
- "legend": "{{name}}-read"
+ "legend": "{{name}}-read",
+ "refId": "A"
},
{
"expr": "rate(diskio_writes{ident=\"$ident\"}[1m])",
- "refId": "B",
- "legend": "{{name}}-writes"
+ "legend": "{{name}}-writes",
+ "refId": "B"
}
],
- "name": "IOPS",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "c522e6f5-fb3d-4fc0-9ae6-7ec002e55e95",
"layout": {
"h": 7,
+ "i": "c522e6f5-fb3d-4fc0-9ae6-7ec002e55e95",
"w": 8,
- "x": 0,
- "y": 37,
- "i": "c74e5155-0e3c-4cb4-8e57-ce8af46ddf90"
+ "x": 8,
+ "y": 37
},
- "id": "c74e5155-0e3c-4cb4-8e57-ce8af46ddf90"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(diskio_read_bytes{ident=\"$ident\"}[1m])",
- "legend": "{{name}}-read"
- },
- {
- "expr": "rate(diskio_write_bytes{ident=\"$ident\"}[1m])",
- "refId": "B",
- "legend": "{{name}}-writes"
- }
- ],
"name": "IO吞吐量",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
- "util": "bytesIEC",
- "decimals": 0
+ "decimals": 0,
+ "util": "bytesIEC"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
+ "targets": [
+ {
+ "expr": "rate(diskio_read_bytes{ident=\"$ident\"}[1m])",
+ "legend": "{{name}}-read",
+ "refId": "A"
+ },
+ {
+ "expr": "rate(diskio_write_bytes{ident=\"$ident\"}[1m])",
+ "legend": "{{name}}-writes",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "47fd7f57-ed4a-43cf-86e3-628c2f697769",
"layout": {
"h": 7,
+ "i": "47fd7f57-ed4a-43cf-86e3-628c2f697769",
"w": 8,
- "x": 8,
- "y": 37,
- "i": "c522e6f5-fb3d-4fc0-9ae6-7ec002e55e95"
+ "x": 16,
+ "y": 37
},
- "id": "c522e6f5-fb3d-4fc0-9ae6-7ec002e55e95"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(diskio_write_time{ident=\"$ident\"}[1m])/rate(diskio_writes{ident=\"$ident\"}[1m])+rate(diskio_read_time{ident=\"$ident\"}[1m])/rate(diskio_reads{ident=\"$ident\"}[1m])",
- "legend": "{{name}}"
- }
- ],
"name": "iowait",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
- "version": "2.0.0",
+ "targets": [
+ {
+ "expr": "rate(diskio_write_time{ident=\"$ident\"}[1m])/rate(diskio_writes{ident=\"$ident\"}[1m])+rate(diskio_read_time{ident=\"$ident\"}[1m])/rate(diskio_reads{ident=\"$ident\"}[1m])",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
"type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 37,
- "i": "47fd7f57-ed4a-43cf-86e3-628c2f697769"
- },
- "id": "47fd7f57-ed4a-43cf-86e3-628c2f697769"
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
+ "collapsed": true,
"id": "f8c5e284-5e23-4646-976c-23511f4f908d",
- "type": "row",
- "name": "网络详情",
"layout": {
"h": 1,
+ "i": "f8c5e284-5e23-4646-976c-23511f4f908d",
"w": 24,
"x": 0,
- "y": 44,
- "i": "f8c5e284-5e23-4646-976c-23511f4f908d"
+ "y": 44
},
- "collapsed": true
+ "name": "网络详情",
+ "type": "row"
},
{
- "targets": [
- {
- "refId": "A",
- "expr": "rate(net_bytes_recv{ident=\"$ident\",interface=~\"eth.*\"}[1m])*8",
- "legend": "{{interface}}-recv"
- },
- {
- "expr": "rate(net_bytes_sent{ident=\"$ident\",interface=~\"eth.*\"}[1m])*8",
- "refId": "B",
- "legend": "{{interface}}-sent"
- }
- ],
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "7fe8774f-7d03-4514-a6b6-b626d2a95265",
+ "layout": {
+ "h": 7,
+ "i": "7fe8774f-7d03-4514-a6b6-b626d2a95265",
+ "w": 6,
+ "x": 0,
+ "y": 45
+ },
"name": "网络流量",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
- "util": "bytesIEC",
- "decimals": 0
+ "decimals": 0,
+ "util": "bytesIEC"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
+ "targets": [
+ {
+ "expr": "rate(net_bytes_recv{ident=\"$ident\",interface=~\"eth.*\"}[1m])*8",
+ "legend": "{{interface}}-recv",
+ "refId": "A"
+ },
+ {
+ "expr": "rate(net_bytes_sent{ident=\"$ident\",interface=~\"eth.*\"}[1m])*8",
+ "legend": "{{interface}}-sent",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "d030e5e7-06cd-42e9-b1e5-0c32b51f853e",
"layout": {
"h": 7,
+ "i": "d030e5e7-06cd-42e9-b1e5-0c32b51f853e",
"w": 6,
- "x": 0,
- "y": 45,
- "i": "7fe8774f-7d03-4514-a6b6-b626d2a95265"
+ "x": 6,
+ "y": 45
},
- "id": "7fe8774f-7d03-4514-a6b6-b626d2a95265"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(net_packets_recv{ident=\"$ident\",interface=~\"eth.*\"}[1m])",
- "legend": "{{interface}}-recv"
- },
- {
- "expr": "rate(net_packets_sent{ident=\"$ident\",interface=~\"eth.*\"}[1m])",
- "refId": "B",
- "legend": "{{interface}}-sent"
- }
- ],
"name": "packets",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
"decimals": 0
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
+ "targets": [
+ {
+ "expr": "rate(net_packets_recv{ident=\"$ident\",interface=~\"eth.*\"}[1m])",
+ "legend": "{{interface}}-recv",
+ "refId": "A"
+ },
+ {
+ "expr": "rate(net_packets_sent{ident=\"$ident\",interface=~\"eth.*\"}[1m])",
+ "legend": "{{interface}}-sent",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "330f5fd9-aca5-4619-b81b-33203256d560",
"layout": {
"h": 7,
+ "i": "330f5fd9-aca5-4619-b81b-33203256d560",
"w": 6,
- "x": 6,
- "y": 45,
- "i": "d030e5e7-06cd-42e9-b1e5-0c32b51f853e"
+ "x": 12,
+ "y": 45
},
- "id": "d030e5e7-06cd-42e9-b1e5-0c32b51f853e"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(net_err_in{ident=\"$ident\",interface=~\"eth.*\"}[1m])",
- "legend": "{{interface}}-in"
- },
- {
- "expr": "rate(net_err_out{ident=\"$ident\",interface=~\"eth.*\"}[1m])",
- "refId": "B",
- "legend": "{{interface}}-out"
- }
- ],
"name": "error",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
"decimals": 0
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
+ "targets": [
+ {
+ "expr": "rate(net_err_in{ident=\"$ident\",interface=~\"eth.*\"}[1m])",
+ "legend": "{{interface}}-in",
+ "refId": "A"
+ },
+ {
+ "expr": "rate(net_err_out{ident=\"$ident\",interface=~\"eth.*\"}[1m])",
+ "legend": "{{interface}}-out",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "34a73b20-56d7-4edb-b6f7-acc93d00a026",
"layout": {
"h": 7,
+ "i": "34a73b20-56d7-4edb-b6f7-acc93d00a026",
"w": 6,
- "x": 12,
- "y": 45,
- "i": "330f5fd9-aca5-4619-b81b-33203256d560"
+ "x": 18,
+ "y": 45
},
- "id": "330f5fd9-aca5-4619-b81b-33203256d560"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(net_drop_in{ident=\"$ident\",interface=~\"eth.*\"}[1m])",
- "legend": "{{interface}}-in"
- },
- {
- "expr": "rate(net_drop_out{ident=\"$ident\",interface=~\"eth.*\"}[1m])",
- "refId": "B",
- "legend": "{{interface}}-out"
- }
- ],
"name": "drop",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
"decimals": 0
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
+ "targets": [
+ {
+ "expr": "rate(net_drop_in{ident=\"$ident\",interface=~\"eth.*\"}[1m])",
+ "legend": "{{interface}}-in",
+ "refId": "A"
+ },
+ {
+ "expr": "rate(net_drop_out{ident=\"$ident\",interface=~\"eth.*\"}[1m])",
+ "legend": "{{interface}}-out",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "7664d34f-7bcf-4431-a6a7-4d924d2e176d",
"layout": {
"h": 7,
- "w": 6,
- "x": 18,
- "y": 45,
- "i": "34a73b20-56d7-4edb-b6f7-acc93d00a026"
+ "i": "7664d34f-7bcf-4431-a6a7-4d924d2e176d",
+ "w": 24,
+ "x": 0,
+ "y": 47
+ },
+ "name": "tcp",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
- "id": "34a73b20-56d7-4edb-b6f7-acc93d00a026"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "netstat_tcp_established{ident=\"$ident\"}"
+ "expr": "netstat_tcp_established{ident=\"$ident\"}",
+ "refId": "A"
},
{
"expr": "netstat_tcp_listen{ident=\"$ident\"}",
@@ -1490,35 +1571,28 @@
"refId": "C"
}
],
- "name": "tcp",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
"type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 47,
- "i": "7664d34f-7bcf-4431-a6a7-4d924d2e176d"
- },
- "id": "7664d34f-7bcf-4431-a6a7-4d924d2e176d"
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
}
- ]
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "label_values(system_load1,ident)",
+ "name": "ident",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ }
+ ],
+ "version": "3.0.0"
}
}
\ No newline at end of file
diff --git a/docker/integrations/mongo/dashboards/mongo_by_exporter.json b/docker/integrations/mongo/dashboards/mongo_by_exporter.json
index d9005ba7c532218afcc21ebf273148dad93367e2..ad6ad80df6761aaab3cc3d9b4d0be23cc339d26d 100644
--- a/docker/integrations/mongo/dashboards/mongo_by_exporter.json
+++ b/docker/integrations/mongo/dashboards/mongo_by_exporter.json
@@ -1,62 +1,58 @@
{
"name": "MongoDB Overview by exporter",
"tags": "Prometheus MongoDB",
+ "ident": "",
"configs": {
- "var": [
- {
- "name": "instance",
- "type": "query",
- "definition": "label_values(mongodb_ss_uptime,instance)"
- }
- ],
- "version": "2.0.0",
"panels": [
{
+ "collapsed": true,
"id": "939298f2-b21f-4e2f-9142-c10946cc4032",
- "type": "row",
- "name": "Basic Info",
"layout": {
"h": 1,
+ "i": "939298f2-b21f-4e2f-9142-c10946cc4032",
+ "isResizable": false,
"w": 24,
"x": 0,
- "y": 0,
- "i": "939298f2-b21f-4e2f-9142-c10946cc4032",
- "isResizable": false
+ "y": 0
},
- "collapsed": true
+ "name": "Basic Info",
+ "type": "row"
},
{
- "type": "stat",
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {},
+ "valueField": "Value"
+ },
+ "description": "instance count",
"id": "91970d24-3f04-4424-a1ed-73e7d28f5706",
"layout": {
"h": 7,
+ "i": "91970d24-3f04-4424-a1ed-73e7d28f5706",
+ "isResizable": true,
"w": 6,
"x": 0,
- "y": 1,
- "i": "91970d24-3f04-4424-a1ed-73e7d28f5706",
- "isResizable": true
+ "y": 1
},
- "version": "2.0.0",
- "targets": [
- {
- "refId": "A",
- "expr": "mongodb_up{instance=\"$instance\"}"
- }
- ],
"name": "Up",
- "description": "instance count",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "valueField": "Value",
- "colSpan": 1,
- "textSize": {}
- },
"options": {
+ "standardOptions": {
+ "util": "none"
+ },
+ "thresholds": {
+ "steps": [
+ {
+ "color": "#634CD9",
+ "type": "base",
+ "value": null
+ }
+ ]
+ },
"valueMappings": [
{
- "type": "special",
"match": {
"from": 1,
"special": 1
@@ -64,114 +60,114 @@
"result": {
"color": "#53b503",
"text": "UP"
- }
+ },
+ "type": "special"
}
- ],
- "standardOptions": {
- "util": "none"
- },
- "thresholds": {
- "steps": [
- {
- "color": "#634CD9",
- "value": null,
- "type": "base"
- }
- ]
- }
- }
- },
- {
- "type": "stat",
- "id": "c7b52e8e-b417-4c61-a15e-e2f186fccd67",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 1,
- "i": "c7b52e8e-b417-4c61-a15e-e2f186fccd67",
- "isResizable": true
+ ]
},
- "version": "2.0.0",
"targets": [
{
- "refId": "A",
- "expr": "mongodb_ss_uptime{instance=\"$instance\"}"
+ "expr": "mongodb_up{instance=\"$instance\"}",
+ "refId": "A"
}
],
- "name": "Uptime",
- "description": "Uptime",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "value",
- "colorMode": "value",
"calc": "lastNotNull",
- "valueField": "Value",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
"textSize": {
"title": null
- }
+ },
+ "valueField": "Value"
+ },
+ "description": "Uptime",
+ "id": "c7b52e8e-b417-4c61-a15e-e2f186fccd67",
+ "layout": {
+ "h": 7,
+ "i": "c7b52e8e-b417-4c61-a15e-e2f186fccd67",
+ "isResizable": true,
+ "w": 6,
+ "x": 6,
+ "y": 1
},
+ "name": "Uptime",
"options": {
+ "standardOptions": {
+ "util": "humantimeSeconds"
+ },
+ "thresholds": {
+ "steps": [
+ {
+ "color": "#634CD9",
+ "type": "base",
+ "value": null
+ }
+ ]
+ },
"valueMappings": [
{
- "type": "range",
"match": {
"to": 1800
},
"result": {
"color": "#ec7718"
- }
+ },
+ "type": "range"
},
{
- "type": "range",
"match": {
"from": 1800
},
"result": {
"color": "#53b503"
- }
+ },
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "humantimeSeconds"
- },
- "thresholds": {
- "steps": [
- {
- "color": "#634CD9",
- "value": null,
- "type": "base"
- }
- ]
+ ]
+ },
+ "targets": [
+ {
+ "expr": "mongodb_ss_uptime{instance=\"$instance\"}",
+ "refId": "A"
}
- }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
- "type": "timeseries",
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "gradientMode": "none",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "spanNulls": false,
+ "stack": "off"
+ },
+ "description": "Memory usage (MiB)",
"id": "8446dded-9e11-4ee9-bdad-769b193ddf3e",
"layout": {
"h": 7,
+ "i": "8446dded-9e11-4ee9-bdad-769b193ddf3e",
+ "isResizable": true,
"w": 6,
"x": 12,
- "y": 1,
- "i": "8446dded-9e11-4ee9-bdad-769b193ddf3e",
- "isResizable": true
+ "y": 1
},
- "version": "2.0.0",
- "targets": [
- {
- "refId": "A",
- "expr": "mongodb_ss_mem_resident{cluster='$cluster'} * 1024 * 1024",
- "legend": "{{type}}"
- }
- ],
"name": "Memory",
- "description": "Memory usage (MiB)",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
@@ -182,112 +178,111 @@
"steps": [
{
"color": "#634CD9",
- "value": null,
- "type": "base"
+ "type": "base",
+ "value": null
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
}
},
+ "targets": [
+ {
+ "expr": "mongodb_ss_mem_resident{cluster='$cluster'} * 1024 * 1024",
+ "legend": "{{type}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
- "stack": "off",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"scaleDistribution": {
"type": "linear"
- }
- }
- },
- {
- "type": "timeseries",
+ },
+ "spanNulls": false,
+ "stack": "off"
+ },
+ "description": "Page faults indicate that requests are processed from disk either because an index is missing or there is not enough memory for the data set. Consider increasing memory or sharding out.",
"id": "3eda28e7-2480-4ddc-b346-89ced1c33034",
"layout": {
"h": 7,
+ "i": "3eda28e7-2480-4ddc-b346-89ced1c33034",
+ "isResizable": true,
"w": 6,
"x": 18,
- "y": 1,
- "i": "3eda28e7-2480-4ddc-b346-89ced1c33034",
- "isResizable": true
+ "y": 1
},
- "version": "2.0.0",
- "targets": [
- {
- "refId": "A",
- "expr": "rate(mongodb_ss_extra_info_page_faults{instance=\"$instance\"}[5m])",
- "legend": "{{type}}"
- }
- ],
"name": "Page Faults",
- "description": "Page faults indicate that requests are processed from disk either because an index is missing or there is not enough memory for the data set. Consider increasing memory or sharding out.",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
- "util": "none",
- "decimals": null
+ "decimals": null,
+ "util": "none"
},
"thresholds": {
"steps": [
{
"color": "#634CD9",
- "value": null,
- "type": "base"
+ "type": "base",
+ "value": null
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
}
},
+ "targets": [
+ {
+ "expr": "rate(mongodb_ss_extra_info_page_faults{instance=\"$instance\"}[5m])",
+ "legend": "{{type}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
- "stack": "off",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"scaleDistribution": {
"type": "linear"
- }
- }
- },
- {
- "type": "timeseries",
+ },
+ "spanNulls": false,
+ "stack": "off"
+ },
+ "description": "Network traffic (bytes)",
"id": "528d0485-f947-470d-95f3-59eae157ebb6",
"layout": {
"h": 7,
+ "i": "528d0485-f947-470d-95f3-59eae157ebb6",
+ "isResizable": true,
"w": 6,
"x": 0,
- "y": 8,
- "i": "528d0485-f947-470d-95f3-59eae157ebb6",
- "isResizable": true
+ "y": 8
},
- "version": "2.0.0",
- "targets": [
- {
- "refId": "A",
- "expr": "rate(mongodb_ss_network_bytesOut{cluster='$cluster'}[5m])",
- "legend": "bytesOut"
- },
- {
- "expr": "rate(mongodb_ss_network_bytesIn{instance='$instance'}[5m])",
- "refId": "B",
- "legend": "bytesIn"
- }
- ],
"name": "Network I/O",
- "description": "Network traffic (bytes)",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
@@ -298,51 +293,58 @@
"steps": [
{
"color": "#634CD9",
- "value": null,
- "type": "base"
+ "type": "base",
+ "value": null
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
+ "targets": [
+ {
+ "expr": "rate(mongodb_ss_network_bytesOut{cluster='$cluster'}[5m])",
+ "legend": "bytesOut",
+ "refId": "A"
+ },
+ {
+ "expr": "rate(mongodb_ss_network_bytesIn{instance='$instance'}[5m])",
+ "legend": "bytesIn",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
- "stack": "off",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"scaleDistribution": {
"type": "linear"
- }
- }
- },
- {
- "type": "timeseries",
+ },
+ "spanNulls": false,
+ "stack": "off"
+ },
+ "description": "Number of connections Keep in mind the hard limit on the maximum number of connections set by your distribution.",
"id": "067e97c3-4e57-447f-a9dc-a49627b6ce18",
"layout": {
"h": 7,
+ "i": "067e97c3-4e57-447f-a9dc-a49627b6ce18",
+ "isResizable": true,
"w": 6,
"x": 6,
- "y": 8,
- "i": "067e97c3-4e57-447f-a9dc-a49627b6ce18",
- "isResizable": true
+ "y": 8
},
- "version": "2.0.0",
- "targets": [
- {
- "refId": "A",
- "expr": "mongodb_ss_connections{instance=\"$instance\", conn_type=\"current\"}",
- "legend": "Connections"
- }
- ],
"name": "Connections",
- "description": "Number of connections Keep in mind the hard limit on the maximum number of connections set by your distribution.",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
@@ -351,51 +353,53 @@
"steps": [
{
"color": "#634CD9",
- "value": null,
- "type": "base"
+ "type": "base",
+ "value": null
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
+ "targets": [
+ {
+ "expr": "mongodb_ss_connections{instance=\"$instance\", conn_type=\"current\"}",
+ "legend": "Connections",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
- "stack": "off",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"scaleDistribution": {
"type": "linear"
- }
- }
- },
- {
- "type": "timeseries",
+ },
+ "spanNulls": false,
+ "stack": "off"
+ },
+ "description": "Number of assertion errors, Asserts are not important by themselves, but you can correlate spikes with other graphs.",
"id": "9e9b7356-cf0e-4e5f-95f5-00258c576bf4",
"layout": {
"h": 7,
+ "i": "9e9b7356-cf0e-4e5f-95f5-00258c576bf4",
+ "isResizable": true,
"w": 6,
"x": 12,
- "y": 8,
- "i": "9e9b7356-cf0e-4e5f-95f5-00258c576bf4",
- "isResizable": true
+ "y": 8
},
- "version": "2.0.0",
- "targets": [
- {
- "refId": "A",
- "expr": "rate(mongodb_ss_asserts{instance=\"$instance\"}[5m])",
- "legend": "{{assert_type}}"
- }
- ],
"name": "Assert Events",
- "description": "Number of assertion errors, Asserts are not important by themselves, but you can correlate spikes with other graphs.",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
@@ -404,51 +408,53 @@
"steps": [
{
"color": "#634CD9",
- "value": null,
- "type": "base"
+ "type": "base",
+ "value": null
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
+ "targets": [
+ {
+ "expr": "rate(mongodb_ss_asserts{instance=\"$instance\"}[5m])",
+ "legend": "{{assert_type}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
- "stack": "off",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"scaleDistribution": {
"type": "linear"
- }
- }
- },
- {
- "type": "timeseries",
+ },
+ "spanNulls": false,
+ "stack": "off"
+ },
+ "description": "Number of operations waiting to acquire locks, Any number of queued operations for long periods of time is an indication of possible issues. Find the cause and fix it before requests get stuck in the queue.",
"id": "2698f0f8-a76a-499b-99cf-30504f0f4db6",
"layout": {
"h": 7,
+ "i": "2698f0f8-a76a-499b-99cf-30504f0f4db6",
+ "isResizable": true,
"w": 6,
"x": 18,
- "y": 8,
- "i": "2698f0f8-a76a-499b-99cf-30504f0f4db6",
- "isResizable": true
+ "y": 8
},
- "version": "2.0.0",
- "targets": [
- {
- "refId": "A",
- "expr": "mongodb_ss_globalLock_currentQueue{instance=\"$instance\"}",
- "legend": "{{count_type}}"
- }
- ],
"name": "Lock Queue",
- "description": "Number of operations waiting to acquire locks, Any number of queued operations for long periods of time is an indication of possible issues. Find the cause and fix it before requests get stuck in the queue.",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
@@ -457,75 +463,67 @@
"steps": [
{
"color": "#634CD9",
- "value": null,
- "type": "base"
+ "type": "base",
+ "value": null
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
- "fillOpacity": 0.5,
- "gradientMode": "none",
- "stack": "off",
- "scaleDistribution": {
- "type": "linear"
+ "targets": [
+ {
+ "expr": "mongodb_ss_globalLock_currentQueue{instance=\"$instance\"}",
+ "legend": "{{count_type}}",
+ "refId": "A"
}
- }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
+ "collapsed": true,
"id": "2bdb8cc9-92f4-449e-8f70-a4c470a21604",
- "type": "row",
- "name": "Operation Info",
"layout": {
"h": 1,
+ "i": "2bdb8cc9-92f4-449e-8f70-a4c470a21604",
+ "isResizable": false,
"w": 24,
"x": 0,
- "y": 15,
- "i": "2bdb8cc9-92f4-449e-8f70-a4c470a21604",
- "isResizable": false
+ "y": 15
},
- "collapsed": true
+ "name": "Operation Info",
+ "type": "row"
},
{
- "type": "timeseries",
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "gradientMode": "none",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "spanNulls": false,
+ "stack": "off"
+ },
+ "description": "Number of requests received Shows how many times a command is executed per second on average during the selected interval.",
"id": "c2819508-95e7-4c63-aeae-ce19f92469cd",
"layout": {
"h": 7,
+ "i": "c2819508-95e7-4c63-aeae-ce19f92469cd",
+ "isResizable": true,
"w": 12,
"x": 0,
- "y": 16,
- "i": "c2819508-95e7-4c63-aeae-ce19f92469cd",
- "isResizable": true
+ "y": 16
},
- "version": "2.0.0",
- "targets": [
- {
- "refId": "A",
- "expr": "rate(mongodb_ss_opcounters{instance=\"$instance\", legacy_op_type!=\"command\"}[5m])",
- "legend": "{{legacy_op_type}}"
- },
- {
- "expr": "rate(mongodb_ss_opcountersRepl{instance=\"$instance\", legacy_op_type!~\"(command|query|getmore)\"}[5m]) or \nrate(mongodb_ss_opcountersRepl{instance=\"$instance\", legacy_op_type!~\"(command|query|getmore)\"}[5m])",
- "refId": "B",
- "legend": "repl_{{legacy_op_type}}"
- },
- {
- "expr": "rate(mongodb_ss_metrics_ttl_deletedDocuments{instance=\"$instance\"}[5m]) or \nrate(mongodb_ss_metrics_ttl_deletedDocuments{instance=\"$instance\"}[5m])",
- "refId": "C",
- "legend": "ttl_delete"
- }
- ],
"name": "Command Operations",
- "description": "Number of requests received Shows how many times a command is executed per second on average during the selected interval.",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
@@ -534,51 +532,63 @@
"steps": [
{
"color": "#634CD9",
- "value": null,
- "type": "base"
+ "type": "base",
+ "value": null
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
}
},
+ "targets": [
+ {
+ "expr": "rate(mongodb_ss_opcounters{instance=\"$instance\", legacy_op_type!=\"command\"}[5m])",
+ "legend": "{{legacy_op_type}}",
+ "refId": "A"
+ },
+ {
+ "expr": "rate(mongodb_ss_opcountersRepl{instance=\"$instance\", legacy_op_type!~\"(command|query|getmore)\"}[5m]) or \nrate(mongodb_ss_opcountersRepl{instance=\"$instance\", legacy_op_type!~\"(command|query|getmore)\"}[5m])",
+ "legend": "repl_{{legacy_op_type}}",
+ "refId": "B"
+ },
+ {
+ "expr": "rate(mongodb_ss_metrics_ttl_deletedDocuments{instance=\"$instance\"}[5m]) or \nrate(mongodb_ss_metrics_ttl_deletedDocuments{instance=\"$instance\"}[5m])",
+ "legend": "ttl_delete",
+ "refId": "C"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
- "stack": "off",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"scaleDistribution": {
"type": "linear"
- }
- }
- },
- {
- "type": "timeseries",
+ },
+ "spanNulls": false,
+ "stack": "off"
+ },
+ "description": "Number of document operations When used in combination with 'Command Operations', this graph can help identify write amplification. For example, when one insert or update command actually inserts or updates hundreds, thousands, or even millions of documents.",
"id": "7030d97a-d69f-4916-a415-ec57503ab1ed",
"layout": {
"h": 7,
+ "i": "7030d97a-d69f-4916-a415-ec57503ab1ed",
+ "isResizable": true,
"w": 12,
"x": 12,
- "y": 16,
- "i": "7030d97a-d69f-4916-a415-ec57503ab1ed",
- "isResizable": true
+ "y": 16
},
- "version": "2.0.0",
- "targets": [
- {
- "refId": "A",
- "expr": "rate(mongodb_ss_metric_document{instance=\"$instance\"}[5m])",
- "legend": ""
- }
- ],
"name": "Document Operations",
- "description": "Number of document operations When used in combination with 'Command Operations', this graph can help identify write amplification. For example, when one insert or update command actually inserts or updates hundreds, thousands, or even millions of documents.",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
@@ -587,51 +597,53 @@
"steps": [
{
"color": "#634CD9",
- "value": null,
- "type": "base"
+ "type": "base",
+ "value": null
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
+ "targets": [
+ {
+ "expr": "rate(mongodb_ss_metric_document{instance=\"$instance\"}[5m])",
+ "legend": "",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
- "stack": "off",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"scaleDistribution": {
"type": "linear"
- }
- }
- },
- {
- "type": "timeseries",
+ },
+ "spanNulls": false,
+ "stack": "off"
+ },
+ "description": "Operation detail processing time (milliseconds)",
"id": "1c3b73d5-c25c-449f-995d-26acc9c621e1",
"layout": {
"h": 7,
+ "i": "1c3b73d5-c25c-449f-995d-26acc9c621e1",
+ "isResizable": true,
"w": 8,
"x": 0,
- "y": 23,
- "i": "1c3b73d5-c25c-449f-995d-26acc9c621e1",
- "isResizable": true
+ "y": 23
},
- "version": "2.0.0",
- "targets": [
- {
- "refId": "A",
- "expr": "rate(mongodb_ss_opLatencies_latency{cluster='$cluster'}[5m]) / rate(mongodb_ss_opLatencies_latency{cluster='$cluster'}[5m]) / 1000",
- "legend": "{{op_type}}"
- }
- ],
"name": "Response Time",
- "description": "Operation detail processing time (milliseconds)",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
@@ -642,56 +654,53 @@
"steps": [
{
"color": "#634CD9",
- "value": null,
- "type": "base"
+ "type": "base",
+ "value": null
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
- "fillOpacity": 0.5,
- "gradientMode": "none",
- "stack": "off",
- "scaleDistribution": {
- "type": "linear"
+ "targets": [
+ {
+ "expr": "rate(mongodb_ss_opLatencies_latency{cluster='$cluster'}[5m]) / rate(mongodb_ss_opLatencies_latency{cluster='$cluster'}[5m]) / 1000",
+ "legend": "{{op_type}}",
+ "refId": "A"
}
- }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
- "type": "timeseries",
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "gradientMode": "none",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "spanNulls": false,
+ "stack": "off"
+ },
+ "description": "",
"id": "e642183c-8ba2-4f60-abc6-c65de49e7577",
"layout": {
"h": 7,
+ "i": "e642183c-8ba2-4f60-abc6-c65de49e7577",
+ "isResizable": true,
"w": 8,
"x": 8,
- "y": 23,
- "i": "e642183c-8ba2-4f60-abc6-c65de49e7577",
- "isResizable": true
+ "y": 23
},
- "version": "2.0.0",
- "targets": [
- {
- "refId": "A",
- "expr": "sum(increase(mongodb_ss_metrics_queryExecutor_scannedObjects{instance=\"$instance\"}[5m])) / sum(increase(mongodb_ss_metrics_document{instance=\"$instance\", doc_op_type=\"returned\"}[5m]))",
- "legend": "Document"
- },
- {
- "expr": "sum(increase(mongodb_ss_metrics_queryExecutor_scanned{instance=\"$instance\"}[5m])) / sum(increase(mongodb_ss_metrics_document{instance=\"$instance\", doc_op_type=\"returned\"}[5m]))",
- "refId": "B",
- "legend": "Index"
- }
- ],
"name": "Query Efficiency",
- "description": "",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
@@ -702,51 +711,58 @@
"steps": [
{
"color": "#634CD9",
- "value": null,
- "type": "base"
+ "type": "base",
+ "value": null
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
+ "targets": [
+ {
+ "expr": "sum(increase(mongodb_ss_metrics_queryExecutor_scannedObjects{instance=\"$instance\"}[5m])) / sum(increase(mongodb_ss_metrics_document{instance=\"$instance\", doc_op_type=\"returned\"}[5m]))",
+ "legend": "Document",
+ "refId": "A"
+ },
+ {
+ "expr": "sum(increase(mongodb_ss_metrics_queryExecutor_scanned{instance=\"$instance\"}[5m])) / sum(increase(mongodb_ss_metrics_document{instance=\"$instance\", doc_op_type=\"returned\"}[5m]))",
+ "legend": "Index",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
- "stack": "off",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"scaleDistribution": {
"type": "linear"
- }
- }
- },
- {
- "type": "timeseries",
+ },
+ "spanNulls": false,
+ "stack": "off"
+ },
+ "description": "number of cursors Helps identify why connections are increasing. Shows active cursors compared to cursors being automatically killed after 10 minutes due to an application not closing the connection.",
"id": "8b5a4f44-3291-4822-ab73-f56be6c62674",
"layout": {
"h": 7,
+ "i": "8b5a4f44-3291-4822-ab73-f56be6c62674",
+ "isResizable": true,
"w": 8,
"x": 16,
- "y": 23,
- "i": "8b5a4f44-3291-4822-ab73-f56be6c62674",
- "isResizable": true
+ "y": 23
},
- "version": "2.0.0",
- "targets": [
- {
- "refId": "A",
- "expr": "mongodb_ss_metrics_cursor_open{instance=\"$instance\"}",
- "legend": "{{csr_type}}"
- }
- ],
"name": "Cursors",
- "description": "number of cursors Helps identify why connections are increasing. Shows active cursors compared to cursors being automatically killed after 10 minutes due to an application not closing the connection.",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
@@ -755,81 +771,68 @@
"steps": [
{
"color": "#634CD9",
- "value": null,
- "type": "base"
+ "type": "base",
+ "value": null
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
- "fillOpacity": 0.5,
- "gradientMode": "none",
- "stack": "off",
- "scaleDistribution": {
- "type": "linear"
+ "targets": [
+ {
+ "expr": "mongodb_ss_metrics_cursor_open{instance=\"$instance\"}",
+ "legend": "{{csr_type}}",
+ "refId": "A"
}
- }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
+ "collapsed": true,
"id": "06946b19-94b4-4f72-bd87-70f87989257d",
- "type": "row",
- "name": "Cache Info",
"layout": {
"h": 1,
+ "i": "06946b19-94b4-4f72-bd87-70f87989257d",
+ "isResizable": false,
"w": 24,
"x": 0,
- "y": 30,
- "i": "06946b19-94b4-4f72-bd87-70f87989257d",
- "isResizable": false
+ "y": 30
},
- "collapsed": true,
- "panels": []
+ "name": "Cache Info",
+ "panels": [],
+ "type": "row"
},
{
- "type": "timeseries",
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "gradientMode": "none",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "spanNulls": false,
+ "stack": "off"
+ },
+ "description": "cache size (byte)",
"id": "bb0ae571-43a1-430b-8f63-256f6f1ebee6",
"layout": {
"h": 7,
+ "i": "bb0ae571-43a1-430b-8f63-256f6f1ebee6",
+ "isResizable": true,
"w": 6,
"x": 0,
- "y": 31,
- "i": "bb0ae571-43a1-430b-8f63-256f6f1ebee6",
- "isResizable": true
+ "y": 31
},
- "version": "2.0.0",
- "targets": [
- {
- "refId": "A",
- "expr": "mongodb_ss_wt_cache_bytes_currently_in_the_cache{cluster='$cluster'}",
- "legend": "total"
- },
- {
- "expr": "mongodb_ss_wt_cache_tracked_dirty_bytes_in_the_cache{cluster='$cluster'}",
- "refId": "B",
- "legend": "dirty"
- },
- {
- "expr": "mongodb_ss_wt_cache_tracked_bytes_belonging_to_internal_pages_in_the_cache{cluster='$cluster'}",
- "refId": "C",
- "legend": "internal_pages"
- },
- {
- "expr": "mongodb_ss_wt_cache_tracked_bytes_belonging_to_leaf_pages_in_the_cache{cluster='$cluster'}",
- "refId": "D",
- "legend": "leaf_pages"
- }
- ],
"name": "Cache Size",
- "description": "cache size (byte)",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
@@ -840,56 +843,68 @@
"steps": [
{
"color": "#634CD9",
- "value": null,
- "type": "base"
+ "type": "base",
+ "value": null
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
+ "targets": [
+ {
+ "expr": "mongodb_ss_wt_cache_bytes_currently_in_the_cache{cluster='$cluster'}",
+ "legend": "total",
+ "refId": "A"
+ },
+ {
+ "expr": "mongodb_ss_wt_cache_tracked_dirty_bytes_in_the_cache{cluster='$cluster'}",
+ "legend": "dirty",
+ "refId": "B"
+ },
+ {
+ "expr": "mongodb_ss_wt_cache_tracked_bytes_belonging_to_internal_pages_in_the_cache{cluster='$cluster'}",
+ "legend": "internal_pages",
+ "refId": "C"
+ },
+ {
+ "expr": "mongodb_ss_wt_cache_tracked_bytes_belonging_to_leaf_pages_in_the_cache{cluster='$cluster'}",
+ "legend": "leaf_pages",
+ "refId": "D"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
- "stack": "off",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"scaleDistribution": {
"type": "linear"
- }
- }
- },
- {
- "type": "timeseries",
+ },
+ "spanNulls": false,
+ "stack": "off"
+ },
+ "description": "size of cached data written or read (in bytes)",
"id": "f1ffd169-2a1a-42bc-9647-0e6621be0fef",
"layout": {
"h": 7,
+ "i": "f1ffd169-2a1a-42bc-9647-0e6621be0fef",
+ "isResizable": true,
"w": 6,
"x": 6,
- "y": 31,
- "i": "f1ffd169-2a1a-42bc-9647-0e6621be0fef",
- "isResizable": true
+ "y": 31
},
- "version": "2.0.0",
- "targets": [
- {
- "refId": "A",
- "expr": "rate(mongodb_ss_wt_cache_bytes_read_into_cache{cluster='$cluster'}[5m])",
- "legend": "read"
- },
- {
- "expr": "rate(mongodb_ss_wt_cache_bytes_written_from_cache{cluster='$cluster'}[5m])",
- "refId": "B",
- "legend": "written"
- }
- ],
"name": "Cache I/O",
- "description": "size of cached data written or read (in bytes)",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
@@ -900,51 +915,58 @@
"steps": [
{
"color": "#634CD9",
- "value": null,
- "type": "base"
+ "type": "base",
+ "value": null
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
+ "targets": [
+ {
+ "expr": "rate(mongodb_ss_wt_cache_bytes_read_into_cache{cluster='$cluster'}[5m])",
+ "legend": "read",
+ "refId": "A"
+ },
+ {
+ "expr": "rate(mongodb_ss_wt_cache_bytes_written_from_cache{cluster='$cluster'}[5m])",
+ "legend": "written",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
- "stack": "off",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"scaleDistribution": {
"type": "linear"
- }
- }
- },
- {
- "type": "timeseries",
+ },
+ "spanNulls": false,
+ "stack": "off"
+ },
+ "description": "",
"id": "43ee140d-ae6d-474a-9892-fa4743d7f97e",
"layout": {
"h": 7,
+ "i": "43ee140d-ae6d-474a-9892-fa4743d7f97e",
+ "isResizable": true,
"w": 6,
"x": 12,
- "y": 31,
- "i": "43ee140d-ae6d-474a-9892-fa4743d7f97e",
- "isResizable": true
+ "y": 31
},
- "version": "2.0.0",
- "targets": [
- {
- "refId": "A",
- "expr": "100 * sum(mongodb_ss_wt_cache_tracked_dirty_pages_in_the_cache{cluster='$cluster'}) / sum(mongodb_ss_wt_cache_pages_currently_held_in_the_cache{cluster='$cluster'})",
- "legend": "dirty rate"
- }
- ],
"name": "Cache Dirty Pages Rate",
- "description": "",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
@@ -955,51 +977,53 @@
"steps": [
{
"color": "#634CD9",
- "value": null,
- "type": "base"
+ "type": "base",
+ "value": null
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
+ "targets": [
+ {
+ "expr": "100 * sum(mongodb_ss_wt_cache_tracked_dirty_pages_in_the_cache{cluster='$cluster'}) / sum(mongodb_ss_wt_cache_pages_currently_held_in_the_cache{cluster='$cluster'})",
+ "legend": "dirty rate",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
- "stack": "off",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"scaleDistribution": {
"type": "linear"
- }
- }
- },
- {
- "type": "timeseries",
+ },
+ "spanNulls": false,
+ "stack": "off"
+ },
+ "description": "",
"id": "1a22c31a-859a-400c-af2a-ae83c308d0f2",
"layout": {
"h": 7,
+ "i": "1a22c31a-859a-400c-af2a-ae83c308d0f2",
+ "isResizable": true,
"w": 6,
"x": 18,
- "y": 31,
- "i": "1a22c31a-859a-400c-af2a-ae83c308d0f2",
- "isResizable": true
+ "y": 31
},
- "version": "2.0.0",
- "targets": [
- {
- "refId": "A",
- "expr": "rate(mongodb_mongod_wiredtiger_cache_evicted_total{cluster='$cluster'}[5m])",
- "legend": "evicted pages"
- }
- ],
"name": "Cache Evicted Pages",
- "description": "",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
@@ -1008,144 +1032,168 @@
"steps": [
{
"color": "#634CD9",
- "value": null,
- "type": "base"
+ "type": "base",
+ "value": null
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "spanNulls": false,
- "lineWidth": 1,
- "fillOpacity": 0.5,
- "gradientMode": "none",
- "stack": "off",
- "scaleDistribution": {
- "type": "linear"
+ "targets": [
+ {
+ "expr": "rate(mongodb_mongod_wiredtiger_cache_evicted_total{cluster='$cluster'}[5m])",
+ "legend": "evicted pages",
+ "refId": "A"
}
- }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
+ "collapsed": true,
"id": "b0016f4a-c565-4276-a08d-bacdf94b6b5a",
- "type": "row",
- "name": "ReplSet Info",
"layout": {
"h": 1,
+ "i": "b0016f4a-c565-4276-a08d-bacdf94b6b5a",
+ "isResizable": false,
"w": 24,
"x": 0,
- "y": 45,
- "i": "b0016f4a-c565-4276-a08d-bacdf94b6b5a",
- "isResizable": false
+ "y": 45
},
- "collapsed": true
+ "name": "ReplSet Info",
+ "type": "row"
},
{
- "type": "stat",
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {},
+ "valueField": "Value"
+ },
+ "description": "",
"id": "6187ceee-7c25-43f2-be1b-c44ad612ab52",
"layout": {
"h": 7,
+ "i": "6187ceee-7c25-43f2-be1b-c44ad612ab52",
+ "isResizable": true,
"w": 12,
"x": 0,
- "y": 46,
- "i": "6187ceee-7c25-43f2-be1b-c44ad612ab52",
- "isResizable": true
+ "y": 46
},
- "version": "2.0.0",
- "targets": [
- {
- "refId": "A",
- "expr": "time() - mongodb_mongod_replset_member_election_date"
- }
- ],
"name": "Replset Election",
- "description": "",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "valueField": "Value",
- "colSpan": 1,
- "textSize": {}
- },
"options": {
+ "standardOptions": {
+ "decimals": 1,
+ "util": "seconds"
+ },
+ "thresholds": {
+ "steps": [
+ {
+ "color": "#634CD9",
+ "type": "base",
+ "value": null
+ }
+ ]
+ },
"valueMappings": [
{
- "type": "range",
"match": {
"to": 1800
},
"result": {
"color": "#f24526"
- }
+ },
+ "type": "range"
},
{
- "type": "range",
"match": {
"from": 1800
},
"result": {
"color": "#53b503"
- }
+ },
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "seconds",
- "decimals": 1
- },
- "thresholds": {
- "steps": [
- {
- "color": "#634CD9",
- "value": null,
- "type": "base"
- }
- ]
- }
- }
- },
- {
+ ]
+ },
"targets": [
{
- "refId": "A",
- "expr": "mongodb_mongod_replset_member_replication_lag{instance=\"$instance\"}",
- "legend": "lag"
+ "expr": "time() - mongodb_mongod_replset_member_election_date",
+ "refId": "A"
}
],
- "name": "Replset Lag Seconds",
- "description": "replica set member master-slave synchronization delay",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "seconds"
- },
- "thresholds": {}
- },
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "description": "replica set member master-slave synchronization delay",
+ "id": "f73fd0cd-ecbe-41f0-a2dc-4e02f7eaef1c",
"layout": {
"h": 7,
+ "i": "f73fd0cd-ecbe-41f0-a2dc-4e02f7eaef1c",
+ "isResizable": true,
"w": 12,
"x": 12,
- "y": 46,
- "i": "f73fd0cd-ecbe-41f0-a2dc-4e02f7eaef1c",
- "isResizable": true
+ "y": 46
},
- "id": "f73fd0cd-ecbe-41f0-a2dc-4e02f7eaef1c"
+ "name": "Replset Lag Seconds",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "seconds"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "mongodb_mongod_replset_member_replication_lag{instance=\"$instance\"}",
+ "legend": "lag",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "label_values(mongodb_ss_uptime,instance)",
+ "name": "instance",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
}
- ]
+ ],
+ "version": "3.0.0"
}
}
\ No newline at end of file
diff --git a/docker/integrations/mysql/dashboards/mysql_by_categraf.json b/docker/integrations/mysql/dashboards/mysql_by_categraf.json
index 8604420dbe545240e3616b2f76bd3a32322a46f6..d40b1aaaac1e645c480d98b4a4b5fe85cfae1912 100644
--- a/docker/integrations/mysql/dashboards/mysql_by_categraf.json
+++ b/docker/integrations/mysql/dashboards/mysql_by_categraf.json
@@ -1,838 +1,906 @@
{
- "name": "MySQL Overview by categraf",
- "tags": "Prometheus MySQL",
- "ident": "",
- "configs": {
- "var": [
- {
- "name": "instance",
- "definition": "label_values(mysql_global_status_uptime, instance)"
- }
- ],
- "version": "2.0.0",
- "panels": [
- {
- "id": "fe0e2a5d-4e82-4eaf-b13a-6d98aa6b6860",
- "type": "row",
- "name": "Basic Info",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0,
- "i": "fe0e2a5d-4e82-4eaf-b13a-6d98aa6b6860"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "min(mysql_global_status_uptime{instance=~\"$instance\"})"
- }
- ],
- "name": "MySQL Uptime",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "to": 1800
- },
- "result": {
- "color": "#ec7718"
- }
- },
- {
- "type": "range",
- "match": {
- "from": 1800
- },
- "result": {
- "color": "#369603"
- }
- }
- ],
- "standardOptions": {
- "util": "humantimeSeconds"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 0,
- "y": 1,
- "i": "80079949-dbff-48fe-a1eb-54b646c30135"
- },
- "id": "80079949-dbff-48fe-a1eb-54b646c30135"
- },
- {
- "targets": [
- {
- "expr": "rate(mysql_global_status_queries{instance=~\"$instance\"}[5m])"
- }
- ],
- "name": "Current QPS",
- "description": "mysql_global_status_queries",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "to": 100
- },
- "result": {
- "color": "#05a31f"
- }
- },
- {
- "type": "range",
- "match": {
- "from": 100
- },
- "result": {
- "color": "#ea3939"
- }
- }
- ],
- "standardOptions": {
- "decimals": 2
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 6,
- "y": 1,
- "i": "9fd6dd09-d131-4c0e-88ea-ed62c72baf97"
- },
- "id": "9fd6dd09-d131-4c0e-88ea-ed62c72baf97"
- },
- {
- "targets": [
- {
- "expr": "avg(mysql_global_variables_innodb_buffer_pool_size{instance=~\"$instance\"})"
- }
- ],
- "name": "InnoDB Buffer Pool",
- "description": "**InnoDB Buffer Pool Size**\n\nInnoDB maintains a storage area called the buffer pool for caching data and indexes in memory. Knowing how the InnoDB buffer pool works, and taking advantage of it to keep frequently accessed data in memory, is one of the most important aspects of MySQL tuning. The goal is to keep the working set in memory. In most cases, this should be between 60%-90% of available memory on a dedicated database host, but depends on many factors.",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {
- "util": "bytesIEC"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 12,
- "y": 1,
- "i": "24913190-b86d-44b7-a8db-555351d9d3c2"
- },
- "id": "24913190-b86d-44b7-a8db-555351d9d3c2"
- },
- {
- "targets": [
- {
- "expr": "sum(increase(mysql_global_status_table_locks_waited{instance=~\"$instance\"}[5m]))"
- }
- ],
- "name": "Table Locks Waited(5min)",
- "description": "**Table Locks**\n\nMySQL takes a number of different locks for varying reasons. In this graph we see how many Table level locks MySQL has requested from the storage engine. In the case of InnoDB, many times the locks could actually be row locks as it only takes table level locks in a few specific cases.\n\nIt is most useful to compare Locks Immediate and Locks Waited. If Locks waited is rising, it means you have lock contention. Otherwise, Locks Immediate rising and falling is normal activity.",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "from": 1
- },
- "result": {
- "color": "#e70d0d"
- }
- },
- {
- "type": "range",
- "match": {
- "to": 1
- },
- "result": {
- "color": "#53b503"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 18,
- "y": 1,
- "i": "94a1e97e-2241-4e05-a9e9-a9b1e69d1070"
- },
- "id": "94a1e97e-2241-4e05-a9e9-a9b1e69d1070"
- },
- {
- "id": "ca82d30f-8e0d-4caa-8a00-2ed9efe4ad85",
- "type": "row",
- "name": "Connections",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 4,
- "i": "ca82d30f-8e0d-4caa-8a00-2ed9efe4ad85"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "sum(mysql_global_status_threads_connected{instance=~\"$instance\"})",
- "legend": "Connections"
- },
- {
- "expr": "sum(mysql_global_status_max_used_connections{instance=~\"$instance\"})",
- "legend": "Max Used Connections"
- },
- {
- "expr": "sum(mysql_global_variables_max_connections{instance=~\"$instance\"})",
- "legend": "Max Connections"
- },
- {
- "expr": "sum(rate(mysql_global_status_aborted_connects{instance=~\"$instance\"}[5m]))",
- "legend": "Aborted Connections"
- }
- ],
- "name": "MySQL Connections",
- "description": "**Max Connections** \n\nMax Connections is the maximum permitted number of simultaneous client connections. By default, this is 151. Increasing this value increases the number of file descriptors that mysqld requires. If the required number of descriptors are not available, the server reduces the value of Max Connections.\n\nmysqld actually permits Max Connections + 1 clients to connect. The extra connection is reserved for use by accounts that have the SUPER privilege, such as root.\n\nMax Used Connections is the maximum number of connections that have been in use simultaneously since the server started.\n\nConnections is the number of connection attempts (successful or not) to the MySQL server.",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 5,
- "i": "e2c85e72-0286-49bc-8ddb-5fba5f449b53"
- },
- "id": "e2c85e72-0286-49bc-8ddb-5fba5f449b53"
- },
- {
- "targets": [
- {
- "expr": "sum(mysql_global_status_threads_connected{instance=~\"$instance\"})",
- "legend": "Threads Connected"
- },
- {
- "expr": "sum(mysql_global_status_threads_running{instance=~\"$instance\"})",
- "legend": "Threads Running"
- }
- ],
- "name": "MySQL Client Thread Activity",
- "description": "Threads Connected is the number of open connections, while Threads Running is the number of threads not sleeping.",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 5,
- "i": "fbd43ac2-159d-4e55-8bc6-800d1bbfbd59"
- },
- "id": "fbd43ac2-159d-4e55-8bc6-800d1bbfbd59"
- },
- {
- "id": "cb81def4-ac63-4d42-b66e-440f9061794b",
- "type": "row",
- "name": "Query Performance",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 12,
- "i": "cb81def4-ac63-4d42-b66e-440f9061794b"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "sum(rate(mysql_global_status_created_tmp_tables{instance=~\"$instance\"}[5m]))",
- "legend": "Created Tmp Tables"
- },
- {
- "expr": "sum(rate(mysql_global_status_created_tmp_disk_tables{instance=~\"$instance\"}[5m]))",
- "legend": "Created Tmp Disk Tables"
- },
- {
- "expr": "sum(rate(mysql_global_status_created_tmp_files{instance=~\"$instance\"}[5m]))",
- "legend": "Created Tmp Files"
- }
- ],
- "name": "MySQL Temporary Objects",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.64,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 13,
- "i": "5fa65a30-a49b-457f-b46a-11d2029188bd"
- },
- "id": "5fa65a30-a49b-457f-b46a-11d2029188bd"
- },
- {
- "targets": [
- {
- "expr": "sum(rate(mysql_global_status_select_full_join{ instance=~\"$instance\"}[5m]))",
- "legend": "Select Full Join"
- },
- {
- "expr": "sum(rate(mysql_global_status_select_full_range_join{ instance=~\"$instance\"}[5m]))",
- "legend": "Select Full Range Join"
- },
- {
- "expr": "sum(rate(mysql_global_status_select_range{ instance=~\"$instance\"}[5m]))",
- "legend": "Select Range"
- },
- {
- "expr": "sum(rate(mysql_global_status_select_range_check{ instance=~\"$instance\"}[5m]))",
- "legend": "Select Range Check"
- },
- {
- "expr": "sum(rate(mysql_global_status_select_scan{ instance=~\"$instance\"}[5m]))",
- "legend": "Select Scan"
- }
- ],
- "name": "MySQL Select Types",
- "description": "**MySQL Select Types**\n\nAs with most relational databases, selecting based on indexes is more efficient than scanning an entire table's data. Here we see the counters for selects not done with indexes.\n\n* ***Select Scan*** is how many queries caused full table scans, in which all the data in the table had to be read and either discarded or returned.\n* ***Select Range*** is how many queries used a range scan, which means MySQL scanned all rows in a given range.\n* ***Select Full Join*** is the number of joins that are not joined on an index, this is usually a huge performance hit.",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "stack": "off",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.41
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 13,
- "i": "20efd251-6207-4cec-aa3b-4351e8e9b125"
- },
- "id": "20efd251-6207-4cec-aa3b-4351e8e9b125"
- },
- {
- "targets": [
- {
- "expr": "sum(rate(mysql_global_status_sort_rows{instance=~\"$instance\"}[5m]))",
- "legend": "Sort Rows"
- },
- {
- "expr": "sum(rate(mysql_global_status_sort_range{instance=~\"$instance\"}[5m]))",
- "legend": "Sort Range"
- },
- {
- "expr": "sum(rate(mysql_global_status_sort_merge_passes{instance=~\"$instance\"}[5m]))",
- "legend": "Sort Merge Passes"
- },
- {
- "expr": "sum(rate(mysql_global_status_sort_scan{instance=~\"$instance\"}[5m]))",
- "legend": "Sort Scan"
- }
- ],
- "name": "MySQL Sorts",
- "description": "**MySQL Sorts**\n\nDue to a query's structure, order, or other requirements, MySQL sorts the rows before returning them. For example, if a table is ordered 1 to 10 but you want the results reversed, MySQL then has to sort the rows to return 10 to 1.\n\nThis graph also shows when sorts had to scan a whole table or a given range of a table in order to return the results and which could not have been sorted via an index.",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 15,
- "i": "a4d0c5fb-04e0-4627-8722-ae996d70e2aa"
- },
- "id": "a4d0c5fb-04e0-4627-8722-ae996d70e2aa"
- },
- {
- "targets": [
- {
- "expr": "sum(rate(mysql_global_status_slow_queries{instance=~\"$instance\"}[5m]))",
- "legend": "Slow Queries"
- }
- ],
- "name": "MySQL Slow Queries",
- "description": "**MySQL Slow Queries**\n\nSlow queries are defined as queries being slower than the long_query_time setting. For example, if you have long_query_time set to 3, all queries that take longer than 3 seconds to complete will show on this graph.",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "bars",
- "stack": "off",
- "fillOpacity": 0.81
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 15,
- "i": "2e13ada4-1128-440d-9360-028f16c3779b"
- },
- "id": "2e13ada4-1128-440d-9360-028f16c3779b"
- },
- {
- "id": "c9df805c-8ae7-41d7-b28b-575f478fd9ce",
- "type": "row",
- "name": "Network",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 22,
- "i": "c9df805c-8ae7-41d7-b28b-575f478fd9ce"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "sum(rate(mysql_global_status_bytes_received{instance=~\"$instance\"}[5m]))",
- "legend": "Inbound"
- },
- {
- "expr": "sum(rate(mysql_global_status_bytes_sent{instance=~\"$instance\"}[5m]))",
- "legend": "Outbound"
- }
- ],
- "name": "MySQL Network Traffic",
- "description": "**MySQL Network Traffic**\n\nHere we can see how much network traffic is generated by MySQL. Outbound is network traffic sent from MySQL and Inbound is network traffic MySQL has received.",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesSI",
- "decimals": 2
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 23,
- "i": "6107714f-bedd-437c-b6e4-d6eb74db6d30"
- },
- "id": "6107714f-bedd-437c-b6e4-d6eb74db6d30"
- },
- {
- "id": "00fd2b70-a133-4ad7-bd56-69a3c91ecf0c",
- "type": "row",
- "name": "Commands, Handlers",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 30,
- "i": "00fd2b70-a133-4ad7-bd56-69a3c91ecf0c"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "topk(10, rate(mysql_global_status_commands_total{instance=~\"$instance\"}[5m])>0)",
- "legend": "Com_{{command}}"
- }
- ],
- "name": "Top Command Counters",
- "description": "**Top Command Counters**\n\nThe Com_{{xxx}} statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example, Com_delete and Com_update count [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements, respectively. Com_delete_multi and Com_update_multi are similar but apply to [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements that use multiple-table syntax.",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "decimals": 2
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.2,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 31,
- "i": "f90ca2bc-0809-45f6-88b6-e258805def04"
- },
- "id": "f90ca2bc-0809-45f6-88b6-e258805def04"
- },
- {
- "targets": [
- {
- "expr": "rate(mysql_global_status_handlers_total{instance=~\"$instance\", handler!~\"commit|rollback|savepoint.*|prepare\"}[5m])",
- "legend": "{{handler}}"
- }
- ],
- "name": "MySQL Handlers",
- "description": "**MySQL Handlers**\n\nHandler statistics are internal statistics on how MySQL is selecting, updating, inserting, and modifying rows, tables, and indexes.\n\nThis is in fact the layer between the Storage Engine and MySQL.\n\n* `read_rnd_next` is incremented when the server performs a full table scan and this is a counter you don't really want to see with a high value.\n* `read_key` is incremented when a read is done with an index.\n* `read_next` is incremented when the storage engine is asked to 'read the next index entry'. A high value means a lot of index scans are being done.",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "decimals": 3
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 33,
- "i": "74e1844d-a918-48fa-a29f-6535dc087dac"
- },
- "id": "74e1844d-a918-48fa-a29f-6535dc087dac"
- },
- {
- "targets": [
- {
- "expr": "rate(mysql_global_status_handlers_total{instance=~\"$instance\", handler=~\"commit|rollback|savepoint.*|prepare\"}[5m])",
- "legend": "{{handler}}"
- }
- ],
- "name": "MySQL Transaction Handlers",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 33,
- "i": "b2c3a13d-898f-407b-b6a9-db852072b12f"
- },
- "id": "b2c3a13d-898f-407b-b6a9-db852072b12f"
- },
- {
- "id": "c32a02da-6c61-4b9e-9365-c0b56088fabc",
- "type": "row",
- "name": "Open Files",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 40,
- "i": "c32a02da-6c61-4b9e-9365-c0b56088fabc"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "mysql_global_variables_open_files_limit{instance=~\"$instance\"}",
- "legend": "Open Files Limit"
- },
- {
- "expr": "mysql_global_status_open_files{instance=~\"$instance\"}",
- "legend": "Open Files"
- }
- ],
- "name": "MySQL Open Files",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 41,
- "i": "fc13eadb-890d-4184-ac16-943d54188db8"
- },
- "id": "fc13eadb-890d-4184-ac16-943d54188db8"
- },
- {
- "id": "6f596e65-3e4b-4d9a-aad7-a32c8c7b8239",
- "type": "row",
- "name": "Table Openings",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 48,
- "i": "6f596e65-3e4b-4d9a-aad7-a32c8c7b8239"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "rate(mysql_global_status_table_open_cache_hits{instance=~\"$instance\"}[5m])\n/\n(\nrate(mysql_global_status_table_open_cache_hits{instance=~\"$instance\"}[5m])\n+\nrate(mysql_global_status_table_open_cache_misses{instance=~\"$instance\"}[5m])\n)",
- "legend": "Table Open Cache Hit Ratio"
- }
- ],
- "name": "Table Open Cache Hit Ratio Mysql 5.6.6+",
- "description": "**MySQL Table Open Cache Status**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "percentUnit"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 49,
- "i": "0b78fbb5-a0b4-4a1b-98b1-af15bc91779d"
- },
- "id": "0b78fbb5-a0b4-4a1b-98b1-af15bc91779d"
- },
- {
- "targets": [
- {
- "expr": "mysql_global_status_open_tables{instance=~\"$instance\"}",
- "legend": "Open Tables"
- },
- {
- "expr": "mysql_global_variables_table_open_cache{instance=~\"$instance\"}",
- "legend": "Table Open Cache"
- }
- ],
- "name": "MySQL Open Tables",
- "description": "**MySQL Open Tables**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 49,
- "i": "948ad10b-8b22-4d42-9e94-99ef09e12927"
- },
- "id": "948ad10b-8b22-4d42-9e94-99ef09e12927"
- }
- ]
- }
+ "name": "MySQL Overview by categraf",
+ "tags": "Prometheus MySQL",
+ "ident": "",
+ "configs": {
+ "panels": [
+ {
+ "collapsed": true,
+ "id": "fe0e2a5d-4e82-4eaf-b13a-6d98aa6b6860",
+ "layout": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 0,
+ "i": "fe0e2a5d-4e82-4eaf-b13a-6d98aa6b6860",
+ "isResizable": false
+ },
+ "name": "Basic Info",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "80079949-dbff-48fe-a1eb-54b646c30135",
+ "layout": {
+ "h": 3,
+ "w": 6,
+ "x": 0,
+ "y": 1,
+ "i": "80079949-dbff-48fe-a1eb-54b646c30135",
+ "isResizable": true
+ },
+ "name": "MySQL Uptime",
+ "options": {
+ "standardOptions": {
+ "util": "humantimeSeconds"
+ },
+ "valueMappings": [
+ {
+ "match": {
+ "to": 1800
+ },
+ "result": {
+ "color": "#ec7718"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 1800
+ },
+ "result": {
+ "color": "#369603"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "min(mysql_global_status_uptime{instance=~\"$instance\"})"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "mysql_global_status_queries",
+ "id": "9fd6dd09-d131-4c0e-88ea-ed62c72baf97",
+ "layout": {
+ "h": 3,
+ "w": 6,
+ "x": 6,
+ "y": 1,
+ "i": "9fd6dd09-d131-4c0e-88ea-ed62c72baf97",
+ "isResizable": true
+ },
+ "name": "Current QPS",
+ "options": {
+ "standardOptions": {
+ "decimals": 2
+ },
+ "valueMappings": [
+ {
+ "match": {
+ "to": 100
+ },
+ "result": {
+ "color": "#05a31f"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 100
+ },
+ "result": {
+ "color": "#ea3939"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "rate(mysql_global_status_queries{instance=~\"$instance\"}[5m])"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "**InnoDB Buffer Pool Size**\n\nInnoDB maintains a storage area called the buffer pool for caching data and indexes in memory. Knowing how the InnoDB buffer pool works, and taking advantage of it to keep frequently accessed data in memory, is one of the most important aspects of MySQL tuning. The goal is to keep the working set in memory. In most cases, this should be between 60%-90% of available memory on a dedicated database host, but depends on many factors.",
+ "id": "24913190-b86d-44b7-a8db-555351d9d3c2",
+ "layout": {
+ "h": 3,
+ "w": 6,
+ "x": 12,
+ "y": 1,
+ "i": "24913190-b86d-44b7-a8db-555351d9d3c2",
+ "isResizable": true
+ },
+ "name": "InnoDB Buffer Pool",
+ "options": {
+ "standardOptions": {
+ "util": "bytesIEC"
+ }
+ },
+ "targets": [
+ {
+ "expr": "avg(mysql_global_variables_innodb_buffer_pool_size{instance=~\"$instance\"})"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "**Table Locks**\n\nMySQL takes a number of different locks for varying reasons. In this graph we see how many Table level locks MySQL has requested from the storage engine. In the case of InnoDB, many times the locks could actually be row locks as it only takes table level locks in a few specific cases.\n\nIt is most useful to compare Locks Immediate and Locks Waited. If Locks waited is rising, it means you have lock contention. Otherwise, Locks Immediate rising and falling is normal activity.",
+ "id": "94a1e97e-2241-4e05-a9e9-a9b1e69d1070",
+ "layout": {
+ "h": 3,
+ "w": 6,
+ "x": 18,
+ "y": 1,
+ "i": "94a1e97e-2241-4e05-a9e9-a9b1e69d1070",
+ "isResizable": true
+ },
+ "name": "Table Locks Waited(5min)",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "from": 1
+ },
+ "result": {
+ "color": "#e70d0d"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "to": 1
+ },
+ "result": {
+ "color": "#53b503"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "sum(increase(mysql_global_status_table_locks_waited{instance=~\"$instance\"}[5m]))"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "ca82d30f-8e0d-4caa-8a00-2ed9efe4ad85",
+ "layout": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 4,
+ "i": "ca82d30f-8e0d-4caa-8a00-2ed9efe4ad85",
+ "isResizable": false
+ },
+ "name": "Connections",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "**Max Connections** \n\nMax Connections is the maximum permitted number of simultaneous client connections. By default, this is 151. Increasing this value increases the number of file descriptors that mysqld requires. If the required number of descriptors are not available, the server reduces the value of Max Connections.\n\nmysqld actually permits Max Connections + 1 clients to connect. The extra connection is reserved for use by accounts that have the SUPER privilege, such as root.\n\nMax Used Connections is the maximum number of connections that have been in use simultaneously since the server started.\n\nConnections is the number of connection attempts (successful or not) to the MySQL server.",
+ "id": "e2c85e72-0286-49bc-8ddb-5fba5f449b53",
+ "layout": {
+ "h": 7,
+ "w": 12,
+ "x": 0,
+ "y": 5,
+ "i": "e2c85e72-0286-49bc-8ddb-5fba5f449b53",
+ "isResizable": true
+ },
+ "name": "MySQL Connections",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(mysql_global_status_threads_connected{instance=~\"$instance\"})",
+ "legend": "Connections"
+ },
+ {
+ "expr": "sum(mysql_global_status_max_used_connections{instance=~\"$instance\"})",
+ "legend": "Max Used Connections"
+ },
+ {
+ "expr": "sum(mysql_global_variables_max_connections{instance=~\"$instance\"})",
+ "legend": "Max Connections"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_aborted_connects{instance=~\"$instance\"}[5m]))",
+ "legend": "Aborted Connections"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "Threads Connected is the number of open connections, while Threads Running is the number of threads not sleeping.",
+ "id": "fbd43ac2-159d-4e55-8bc6-800d1bbfbd59",
+ "layout": {
+ "h": 7,
+ "w": 12,
+ "x": 12,
+ "y": 5,
+ "i": "fbd43ac2-159d-4e55-8bc6-800d1bbfbd59",
+ "isResizable": true
+ },
+ "name": "MySQL Client Thread Activity",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(mysql_global_status_threads_connected{instance=~\"$instance\"})",
+ "legend": "Threads Connected"
+ },
+ {
+ "expr": "sum(mysql_global_status_threads_running{instance=~\"$instance\"})",
+ "legend": "Threads Running"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "cb81def4-ac63-4d42-b66e-440f9061794b",
+ "layout": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 12,
+ "i": "cb81def4-ac63-4d42-b66e-440f9061794b",
+ "isResizable": false
+ },
+ "name": "Query Performance",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.64,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "5fa65a30-a49b-457f-b46a-11d2029188bd",
+ "layout": {
+ "h": 7,
+ "w": 12,
+ "x": 0,
+ "y": 13,
+ "i": "5fa65a30-a49b-457f-b46a-11d2029188bd",
+ "isResizable": true
+ },
+ "name": "MySQL Temporary Objects",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(mysql_global_status_created_tmp_tables{instance=~\"$instance\"}[5m]))",
+ "legend": "Created Tmp Tables"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_created_tmp_disk_tables{instance=~\"$instance\"}[5m]))",
+ "legend": "Created Tmp Disk Tables"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_created_tmp_files{instance=~\"$instance\"}[5m]))",
+ "legend": "Created Tmp Files"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.41,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "**MySQL Select Types**\n\nAs with most relational databases, selecting based on indexes is more efficient than scanning an entire table's data. Here we see the counters for selects not done with indexes.\n\n* ***Select Scan*** is how many queries caused full table scans, in which all the data in the table had to be read and either discarded or returned.\n* ***Select Range*** is how many queries used a range scan, which means MySQL scanned all rows in a given range.\n* ***Select Full Join*** is the number of joins that are not joined on an index, this is usually a huge performance hit.",
+ "id": "20efd251-6207-4cec-aa3b-4351e8e9b125",
+ "layout": {
+ "h": 7,
+ "w": 12,
+ "x": 12,
+ "y": 13,
+ "i": "20efd251-6207-4cec-aa3b-4351e8e9b125",
+ "isResizable": true
+ },
+ "name": "MySQL Select Types",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(mysql_global_status_select_full_join{ instance=~\"$instance\"}[5m]))",
+ "legend": "Select Full Join"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_select_full_range_join{ instance=~\"$instance\"}[5m]))",
+ "legend": "Select Full Range Join"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_select_range{ instance=~\"$instance\"}[5m]))",
+ "legend": "Select Range"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_select_range_check{ instance=~\"$instance\"}[5m]))",
+ "legend": "Select Range Check"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_select_scan{ instance=~\"$instance\"}[5m]))",
+ "legend": "Select Scan"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "**MySQL Sorts**\n\nDue to a query's structure, order, or other requirements, MySQL sorts the rows before returning them. For example, if a table is ordered 1 to 10 but you want the results reversed, MySQL then has to sort the rows to return 10 to 1.\n\nThis graph also shows when sorts had to scan a whole table or a given range of a table in order to return the results and which could not have been sorted via an index.",
+ "id": "a4d0c5fb-04e0-4627-8722-ae996d70e2aa",
+ "layout": {
+ "h": 7,
+ "w": 12,
+ "x": 0,
+ "y": 20,
+ "i": "a4d0c5fb-04e0-4627-8722-ae996d70e2aa",
+ "isResizable": true
+ },
+ "name": "MySQL Sorts",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(mysql_global_status_sort_rows{instance=~\"$instance\"}[5m]))",
+ "legend": "Sort Rows"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_sort_range{instance=~\"$instance\"}[5m]))",
+ "legend": "Sort Range"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_sort_merge_passes{instance=~\"$instance\"}[5m]))",
+ "legend": "Sort Merge Passes"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_sort_scan{instance=~\"$instance\"}[5m]))",
+ "legend": "Sort Scan"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "bars",
+ "fillOpacity": 0.81,
+ "stack": "off"
+ },
+ "description": "**MySQL Slow Queries**\n\nSlow queries are defined as queries being slower than the long_query_time setting. For example, if you have long_query_time set to 3, all queries that take longer than 3 seconds to complete will show on this graph.",
+ "id": "2e13ada4-1128-440d-9360-028f16c3779b",
+ "layout": {
+ "h": 7,
+ "w": 12,
+ "x": 12,
+ "y": 20,
+ "i": "2e13ada4-1128-440d-9360-028f16c3779b",
+ "isResizable": true
+ },
+ "name": "MySQL Slow Queries",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(mysql_global_status_slow_queries{instance=~\"$instance\"}[5m]))",
+ "legend": "Slow Queries"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "c9df805c-8ae7-41d7-b28b-575f478fd9ce",
+ "layout": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 27,
+ "i": "c9df805c-8ae7-41d7-b28b-575f478fd9ce",
+ "isResizable": false
+ },
+ "name": "Network",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "**MySQL Network Traffic**\n\nHere we can see how much network traffic is generated by MySQL. Outbound is network traffic sent from MySQL and Inbound is network traffic MySQL has received.",
+ "id": "6107714f-bedd-437c-b6e4-d6eb74db6d30",
+ "layout": {
+ "h": 7,
+ "w": 24,
+ "x": 0,
+ "y": 28,
+ "i": "6107714f-bedd-437c-b6e4-d6eb74db6d30",
+ "isResizable": true
+ },
+ "name": "MySQL Network Traffic",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 2,
+ "util": "bytesSI"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(mysql_global_status_bytes_received{instance=~\"$instance\"}[5m]))",
+ "legend": "Inbound"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_bytes_sent{instance=~\"$instance\"}[5m]))",
+ "legend": "Outbound"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "00fd2b70-a133-4ad7-bd56-69a3c91ecf0c",
+ "layout": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 35,
+ "i": "00fd2b70-a133-4ad7-bd56-69a3c91ecf0c",
+ "isResizable": false
+ },
+ "name": "Commands, Handlers",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.2,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "**Top Command Counters**\n\nThe Com_{{xxx}} statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example, Com_delete and Com_update count [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements, respectively. Com_delete_multi and Com_update_multi are similar but apply to [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements that use multiple-table syntax.",
+ "id": "f90ca2bc-0809-45f6-88b6-e258805def04",
+ "layout": {
+ "h": 7,
+ "w": 24,
+ "x": 0,
+ "y": 36,
+ "i": "f90ca2bc-0809-45f6-88b6-e258805def04",
+ "isResizable": true
+ },
+ "name": "Top Command Counters",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 2
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(10, rate(mysql_global_status_commands_total{instance=~\"$instance\"}[5m])>0)",
+ "legend": "Com_{{command}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "**MySQL Handlers**\n\nHandler statistics are internal statistics on how MySQL is selecting, updating, inserting, and modifying rows, tables, and indexes.\n\nThis is in fact the layer between the Storage Engine and MySQL.\n\n* `read_rnd_next` is incremented when the server performs a full table scan and this is a counter you don't really want to see with a high value.\n* `read_key` is incremented when a read is done with an index.\n* `read_next` is incremented when the storage engine is asked to 'read the next index entry'. A high value means a lot of index scans are being done.",
+ "id": "74e1844d-a918-48fa-a29f-6535dc087dac",
+ "layout": {
+ "h": 7,
+ "w": 12,
+ "x": 0,
+ "y": 43,
+ "i": "74e1844d-a918-48fa-a29f-6535dc087dac",
+ "isResizable": true
+ },
+ "name": "MySQL Handlers",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 3
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(mysql_global_status_handlers_total{instance=~\"$instance\", handler!~\"commit|rollback|savepoint.*|prepare\"}[5m])",
+ "legend": "{{handler}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "b2c3a13d-898f-407b-b6a9-db852072b12f",
+ "layout": {
+ "h": 7,
+ "w": 12,
+ "x": 12,
+ "y": 43,
+ "i": "b2c3a13d-898f-407b-b6a9-db852072b12f",
+ "isResizable": true
+ },
+ "name": "MySQL Transaction Handlers",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(mysql_global_status_handlers_total{instance=~\"$instance\", handler=~\"commit|rollback|savepoint.*|prepare\"}[5m])",
+ "legend": "{{handler}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "c32a02da-6c61-4b9e-9365-c0b56088fabc",
+ "layout": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 50,
+ "i": "c32a02da-6c61-4b9e-9365-c0b56088fabc",
+ "isResizable": false
+ },
+ "name": "Open Files",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "fc13eadb-890d-4184-ac16-943d54188db8",
+ "layout": {
+ "h": 7,
+ "w": 24,
+ "x": 0,
+ "y": 51,
+ "i": "fc13eadb-890d-4184-ac16-943d54188db8",
+ "isResizable": true
+ },
+ "name": "MySQL Open Files",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "mysql_global_variables_open_files_limit{instance=~\"$instance\"}",
+ "legend": "Open Files Limit"
+ },
+ {
+ "expr": "mysql_global_status_open_files{instance=~\"$instance\"}",
+ "legend": "Open Files"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "6f596e65-3e4b-4d9a-aad7-a32c8c7b8239",
+ "layout": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 58,
+ "i": "6f596e65-3e4b-4d9a-aad7-a32c8c7b8239",
+ "isResizable": false
+ },
+ "name": "Table Openings",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "**MySQL Table Open Cache Status**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",
+ "id": "0b78fbb5-a0b4-4a1b-98b1-af15bc91779d",
+ "layout": {
+ "h": 7,
+ "w": 12,
+ "x": 0,
+ "y": 59,
+ "i": "0b78fbb5-a0b4-4a1b-98b1-af15bc91779d",
+ "isResizable": true
+ },
+ "name": "Table Open Cache Hit Ratio Mysql 5.6.6+",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "percentUnit"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(mysql_global_status_table_open_cache_hits{instance=~\"$instance\"}[5m])\n/\n(\nrate(mysql_global_status_table_open_cache_hits{instance=~\"$instance\"}[5m])\n+\nrate(mysql_global_status_table_open_cache_misses{instance=~\"$instance\"}[5m])\n)",
+ "legend": "Table Open Cache Hit Ratio"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "**MySQL Open Tables**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",
+ "id": "948ad10b-8b22-4d42-9e94-99ef09e12927",
+ "layout": {
+ "h": 7,
+ "w": 12,
+ "x": 12,
+ "y": 59,
+ "i": "948ad10b-8b22-4d42-9e94-99ef09e12927",
+ "isResizable": true
+ },
+ "name": "MySQL Open Tables",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "mysql_global_status_open_tables{instance=~\"$instance\"}",
+ "legend": "Open Tables"
+ },
+ {
+ "expr": "mysql_global_variables_table_open_cache{instance=~\"$instance\"}",
+ "legend": "Table Open Cache"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "label_values(mysql_global_status_uptime, instance)",
+ "name": "instance",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ }
+ ],
+ "version": "3.0.0"
+ }
}
\ No newline at end of file
diff --git a/docker/integrations/mysql/dashboards/mysql_by_exporter.json b/docker/integrations/mysql/dashboards/mysql_by_exporter.json
index 09f7f815416da87e3963acd770cf0254461b27f1..4c86ebe2a0822887a974f9f5a3e84b097ebe3398 100644
--- a/docker/integrations/mysql/dashboards/mysql_by_exporter.json
+++ b/docker/integrations/mysql/dashboards/mysql_by_exporter.json
@@ -1,838 +1,882 @@
{
- "name": "MySQL Overview by exporter",
- "tags": "Prometheus MySQL",
- "ident": "",
- "configs": {
- "var": [
- {
- "name": "instance",
- "definition": "label_values(mysql_global_status_uptime, instance)"
- }
- ],
- "version": "2.0.0",
- "panels": [
- {
- "id": "a94506f9-879c-41d4-bf0a-0ce479352742",
- "type": "row",
- "name": "Basic Info",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0,
- "i": "a94506f9-879c-41d4-bf0a-0ce479352742"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "min(mysql_global_status_uptime{instance=~\"$instance\"})"
- }
- ],
- "name": "MySQL Uptime",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "to": 1800
- },
- "result": {
- "color": "#ec7718"
- }
- },
- {
- "type": "range",
- "match": {
- "from": 1800
- },
- "result": {
- "color": "#369603"
- }
- }
- ],
- "standardOptions": {
- "util": "humantimeSeconds"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 0,
- "y": 1,
- "i": "c1ed017a-86d8-4ba5-8e75-ce3be943eef9"
- },
- "id": "c1ed017a-86d8-4ba5-8e75-ce3be943eef9"
- },
- {
- "targets": [
- {
- "expr": "rate(mysql_global_status_queries{instance=~\"$instance\"}[5m])"
- }
- ],
- "name": "Current QPS",
- "description": "mysql_global_status_queries",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "to": 100
- },
- "result": {
- "color": "#05a31f"
- }
- },
- {
- "type": "range",
- "match": {
- "from": 100
- },
- "result": {
- "color": "#ea3939"
- }
- }
- ],
- "standardOptions": {
- "decimals": 2
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 6,
- "y": 1,
- "i": "05b0a593-7328-4298-9b5c-af6bd6a34e52"
- },
- "id": "05b0a593-7328-4298-9b5c-af6bd6a34e52"
- },
- {
- "targets": [
- {
- "expr": "avg(mysql_global_variables_innodb_buffer_pool_size{instance=~\"$instance\"})"
- }
- ],
- "name": "InnoDB Buffer Pool",
- "description": "**InnoDB Buffer Pool Size**\n\nInnoDB maintains a storage area called the buffer pool for caching data and indexes in memory. Knowing how the InnoDB buffer pool works, and taking advantage of it to keep frequently accessed data in memory, is one of the most important aspects of MySQL tuning. The goal is to keep the working set in memory. In most cases, this should be between 60%-90% of available memory on a dedicated database host, but depends on many factors.",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {
- "util": "bytesIEC"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 12,
- "y": 1,
- "i": "e5388f85-8970-4f64-83e1-e77d4025f1dd"
- },
- "id": "e5388f85-8970-4f64-83e1-e77d4025f1dd"
- },
- {
- "targets": [
- {
- "expr": "sum(increase(mysql_global_status_table_locks_waited{instance=~\"$instance\"}[5m]))"
- }
- ],
- "name": "Table Locks Waited(5min)",
- "description": "**Table Locks**\n\nMySQL takes a number of different locks for varying reasons. In this graph we see how many Table level locks MySQL has requested from the storage engine. In the case of InnoDB, many times the locks could actually be row locks as it only takes table level locks in a few specific cases.\n\nIt is most useful to compare Locks Immediate and Locks Waited. If Locks waited is rising, it means you have lock contention. Otherwise, Locks Immediate rising and falling is normal activity.",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "from": 1
- },
- "result": {
- "color": "#e70d0d"
- }
- },
- {
- "type": "range",
- "match": {
- "to": 1
- },
- "result": {
- "color": "#53b503"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 18,
- "y": 1,
- "i": "ab8a768e-98f3-4215-bfbf-ea838a12b45c"
- },
- "id": "ab8a768e-98f3-4215-bfbf-ea838a12b45c"
- },
- {
- "id": "24a1be60-6b90-483a-af6f-48cc79830da1",
- "type": "row",
- "name": "Connections",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 4,
- "i": "24a1be60-6b90-483a-af6f-48cc79830da1"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "sum(mysql_global_status_threads_connected{instance=~\"$instance\"})",
- "legend": "Connections"
- },
- {
- "expr": "sum(mysql_global_status_max_used_connections{instance=~\"$instance\"})",
- "legend": "Max Used Connections"
- },
- {
- "expr": "sum(mysql_global_variables_max_connections{instance=~\"$instance\"})",
- "legend": "Max Connections"
- },
- {
- "expr": "sum(rate(mysql_global_status_aborted_connects{instance=~\"$instance\"}[5m]))",
- "legend": "Aborted Connections"
- }
- ],
- "name": "MySQL Connections",
- "description": "**Max Connections** \n\nMax Connections is the maximum permitted number of simultaneous client connections. By default, this is 151. Increasing this value increases the number of file descriptors that mysqld requires. If the required number of descriptors are not available, the server reduces the value of Max Connections.\n\nmysqld actually permits Max Connections + 1 clients to connect. The extra connection is reserved for use by accounts that have the SUPER privilege, such as root.\n\nMax Used Connections is the maximum number of connections that have been in use simultaneously since the server started.\n\nConnections is the number of connection attempts (successful or not) to the MySQL server.",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 5,
- "i": "bb31cf5e-1a80-478c-b300-ee9975d14963"
- },
- "id": "bb31cf5e-1a80-478c-b300-ee9975d14963"
- },
- {
- "targets": [
- {
- "expr": "sum(mysql_global_status_threads_connected{instance=~\"$instance\"})",
- "legend": "Threads Connected"
- },
- {
- "expr": "sum(mysql_global_status_threads_running{instance=~\"$instance\"})",
- "legend": "Threads Running"
- }
- ],
- "name": "MySQL Client Thread Activity",
- "description": "Threads Connected is the number of open connections, while Threads Running is the number of threads not sleeping.",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 5,
- "i": "c1083f59-1e46-442e-a7c3-f5d1fbb78751"
- },
- "id": "c1083f59-1e46-442e-a7c3-f5d1fbb78751"
- },
- {
- "id": "e126f7dd-df38-4a43-846a-ea6188718de9",
- "type": "row",
- "name": "Query Performance",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 12,
- "i": "e126f7dd-df38-4a43-846a-ea6188718de9"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "sum(rate(mysql_global_status_created_tmp_tables{instance=~\"$instance\"}[5m]))",
- "legend": "Created Tmp Tables"
- },
- {
- "expr": "sum(rate(mysql_global_status_created_tmp_disk_tables{instance=~\"$instance\"}[5m]))",
- "legend": "Created Tmp Disk Tables"
- },
- {
- "expr": "sum(rate(mysql_global_status_created_tmp_files{instance=~\"$instance\"}[5m]))",
- "legend": "Created Tmp Files"
- }
- ],
- "name": "MySQL Temporary Objects",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.64,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 13,
- "i": "80f94d89-babe-4e38-a220-2490af80e091"
- },
- "id": "80f94d89-babe-4e38-a220-2490af80e091"
- },
- {
- "targets": [
- {
- "expr": "sum(rate(mysql_global_status_select_full_join{ instance=~\"$instance\"}[5m]))",
- "legend": "Select Full Join"
- },
- {
- "expr": "sum(rate(mysql_global_status_select_full_range_join{ instance=~\"$instance\"}[5m]))",
- "legend": "Select Full Range Join"
- },
- {
- "expr": "sum(rate(mysql_global_status_select_range{ instance=~\"$instance\"}[5m]))",
- "legend": "Select Range"
- },
- {
- "expr": "sum(rate(mysql_global_status_select_range_check{ instance=~\"$instance\"}[5m]))",
- "legend": "Select Range Check"
- },
- {
- "expr": "sum(rate(mysql_global_status_select_scan{ instance=~\"$instance\"}[5m]))",
- "legend": "Select Scan"
- }
- ],
- "name": "MySQL Select Types",
- "description": "**MySQL Select Types**\n\nAs with most relational databases, selecting based on indexes is more efficient than scanning an entire table's data. Here we see the counters for selects not done with indexes.\n\n* ***Select Scan*** is how many queries caused full table scans, in which all the data in the table had to be read and either discarded or returned.\n* ***Select Range*** is how many queries used a range scan, which means MySQL scanned all rows in a given range.\n* ***Select Full Join*** is the number of joins that are not joined on an index, this is usually a huge performance hit.",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "stack": "off",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.41
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 13,
- "i": "a03b6272-cd60-430c-8128-6bfc8da2938f"
- },
- "id": "a03b6272-cd60-430c-8128-6bfc8da2938f"
- },
- {
- "targets": [
- {
- "expr": "sum(rate(mysql_global_status_sort_rows{instance=~\"$instance\"}[5m]))",
- "legend": "Sort Rows"
- },
- {
- "expr": "sum(rate(mysql_global_status_sort_range{instance=~\"$instance\"}[5m]))",
- "legend": "Sort Range"
- },
- {
- "expr": "sum(rate(mysql_global_status_sort_merge_passes{instance=~\"$instance\"}[5m]))",
- "legend": "Sort Merge Passes"
- },
- {
- "expr": "sum(rate(mysql_global_status_sort_scan{instance=~\"$instance\"}[5m]))",
- "legend": "Sort Scan"
- }
- ],
- "name": "MySQL Sorts",
- "description": "**MySQL Sorts**\n\nDue to a query's structure, order, or other requirements, MySQL sorts the rows before returning them. For example, if a table is ordered 1 to 10 but you want the results reversed, MySQL then has to sort the rows to return 10 to 1.\n\nThis graph also shows when sorts had to scan a whole table or a given range of a table in order to return the results and which could not have been sorted via an index.",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 15,
- "i": "d5fbfe0e-fc90-4f2a-b016-7a24a19c73d7"
- },
- "id": "d5fbfe0e-fc90-4f2a-b016-7a24a19c73d7"
- },
- {
- "targets": [
- {
- "expr": "sum(rate(mysql_global_status_slow_queries{instance=~\"$instance\"}[5m]))",
- "legend": "Slow Queries"
- }
- ],
- "name": "MySQL Slow Queries",
- "description": "**MySQL Slow Queries**\n\nSlow queries are defined as queries being slower than the long_query_time setting. For example, if you have long_query_time set to 3, all queries that take longer than 3 seconds to complete will show on this graph.",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "bars",
- "stack": "off",
- "fillOpacity": 0.81
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 15,
- "i": "51306ae6-e11a-4c08-a55c-3678676d5d8e"
- },
- "id": "51306ae6-e11a-4c08-a55c-3678676d5d8e"
- },
- {
- "id": "867ae6c9-b4a4-4349-8e68-56ef9cebf8b4",
- "type": "row",
- "name": "Network",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 22,
- "i": "867ae6c9-b4a4-4349-8e68-56ef9cebf8b4"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "sum(rate(mysql_global_status_bytes_received{instance=~\"$instance\"}[5m]))",
- "legend": "Inbound"
- },
- {
- "expr": "sum(rate(mysql_global_status_bytes_sent{instance=~\"$instance\"}[5m]))",
- "legend": "Outbound"
- }
- ],
- "name": "MySQL Network Traffic",
- "description": "**MySQL Network Traffic**\n\nHere we can see how much network traffic is generated by MySQL. Outbound is network traffic sent from MySQL and Inbound is network traffic MySQL has received.",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesSI",
- "decimals": 2
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 23,
- "i": "392c15b2-d413-4201-9692-5277f7863c05"
- },
- "id": "392c15b2-d413-4201-9692-5277f7863c05"
- },
- {
- "id": "e58cb79a-75f2-452f-bc55-b36ff93a60c4",
- "type": "row",
- "name": "Commands, Handlers",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 30,
- "i": "e58cb79a-75f2-452f-bc55-b36ff93a60c4"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "topk(10, rate(mysql_global_status_commands_total{instance=~\"$instance\"}[5m])>0)",
- "legend": "Com_{{command}}"
- }
- ],
- "name": "Top Command Counters",
- "description": "**Top Command Counters**\n\nThe Com_{{xxx}} statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example, Com_delete and Com_update count [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements, respectively. Com_delete_multi and Com_update_multi are similar but apply to [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements that use multiple-table syntax.",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "decimals": 2
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.2,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 31,
- "i": "df2f62e6-5a75-4cea-9268-3077348a6558"
- },
- "id": "df2f62e6-5a75-4cea-9268-3077348a6558"
- },
- {
- "targets": [
- {
- "expr": "rate(mysql_global_status_handlers_total{instance=~\"$instance\", handler!~\"commit|rollback|savepoint.*|prepare\"}[5m])",
- "legend": "{{handler}}"
- }
- ],
- "name": "MySQL Handlers",
- "description": "**MySQL Handlers**\n\nHandler statistics are internal statistics on how MySQL is selecting, updating, inserting, and modifying rows, tables, and indexes.\n\nThis is in fact the layer between the Storage Engine and MySQL.\n\n* `read_rnd_next` is incremented when the server performs a full table scan and this is a counter you don't really want to see with a high value.\n* `read_key` is incremented when a read is done with an index.\n* `read_next` is incremented when the storage engine is asked to 'read the next index entry'. A high value means a lot of index scans are being done.",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "decimals": 3
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 33,
- "i": "34ba0da1-d6f0-4c35-8418-56a7506035c5"
- },
- "id": "34ba0da1-d6f0-4c35-8418-56a7506035c5"
- },
- {
- "targets": [
- {
- "expr": "rate(mysql_global_status_handlers_total{instance=~\"$instance\", handler=~\"commit|rollback|savepoint.*|prepare\"}[5m])",
- "legend": "{{handler}}"
- }
- ],
- "name": "MySQL Transaction Handlers",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 33,
- "i": "9e37aa84-a6b6-4730-9fa7-0dab9e596e36"
- },
- "id": "9e37aa84-a6b6-4730-9fa7-0dab9e596e36"
- },
- {
- "id": "779fdf9a-fcf8-4454-91a4-608950d3fba1",
- "type": "row",
- "name": "Open Files",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 40,
- "i": "779fdf9a-fcf8-4454-91a4-608950d3fba1"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "mysql_global_variables_open_files_limit{instance=~\"$instance\"}",
- "legend": "Open Files Limit"
- },
- {
- "expr": "mysql_global_status_innodb_num_open_files{instance=~\"$instance\"}",
- "legend": "InnoDB Open Files"
- }
- ],
- "name": "MySQL Open Files",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 41,
- "i": "ac797cf1-56f6-4cf7-a472-8a2facd84588"
- },
- "id": "ac797cf1-56f6-4cf7-a472-8a2facd84588"
- },
- {
- "id": "292f69d6-1a6c-463e-8aaf-14715b447c1f",
- "type": "row",
- "name": "Table Openings",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 48,
- "i": "292f69d6-1a6c-463e-8aaf-14715b447c1f"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "rate(mysql_global_status_table_open_cache_hits{instance=~\"$instance\"}[5m])\n/\n(\nrate(mysql_global_status_table_open_cache_hits{instance=~\"$instance\"}[5m])\n+\nrate(mysql_global_status_table_open_cache_misses{instance=~\"$instance\"}[5m])\n)",
- "legend": "Table Open Cache Hit Ratio"
- }
- ],
- "name": "Table Open Cache Hit Ratio",
- "description": "**MySQL Table Open Cache Status**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "percentUnit"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 49,
- "i": "0139a750-1a56-45ee-9004-7a8ef15d34dd"
- },
- "id": "0139a750-1a56-45ee-9004-7a8ef15d34dd"
- },
- {
- "targets": [
- {
- "expr": "mysql_global_status_open_tables{instance=~\"$instance\"}",
- "legend": "Open Tables"
- },
- {
- "expr": "mysql_global_variables_table_open_cache{instance=~\"$instance\"}",
- "legend": "Table Open Cache"
- }
- ],
- "name": "MySQL Open Tables",
- "description": "**MySQL Open Tables**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 49,
- "i": "fba77c7e-9e40-4829-89b6-ed8bb2a7add7"
- },
- "id": "fba77c7e-9e40-4829-89b6-ed8bb2a7add7"
- }
- ]
- }
+ "name": "MySQL Overview by exporter",
+ "tags": "Prometheus MySQL",
+ "ident": "",
+ "configs": {
+ "panels": [
+ {
+ "collapsed": true,
+ "id": "a94506f9-879c-41d4-bf0a-0ce479352742",
+ "layout": {
+ "h": 1,
+ "i": "a94506f9-879c-41d4-bf0a-0ce479352742",
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "name": "Basic Info",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "c1ed017a-86d8-4ba5-8e75-ce3be943eef9",
+ "layout": {
+ "h": 3,
+ "i": "c1ed017a-86d8-4ba5-8e75-ce3be943eef9",
+ "w": 6,
+ "x": 0,
+ "y": 1
+ },
+ "name": "MySQL Uptime",
+ "options": {
+ "standardOptions": {
+ "util": "humantimeSeconds"
+ },
+ "valueMappings": [
+ {
+ "match": {
+ "to": 1800
+ },
+ "result": {
+ "color": "#ec7718"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 1800
+ },
+ "result": {
+ "color": "#369603"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "min(mysql_global_status_uptime{instance=~\"$instance\"})"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "mysql_global_status_queries",
+ "id": "05b0a593-7328-4298-9b5c-af6bd6a34e52",
+ "layout": {
+ "h": 3,
+ "i": "05b0a593-7328-4298-9b5c-af6bd6a34e52",
+ "w": 6,
+ "x": 6,
+ "y": 1
+ },
+ "name": "Current QPS",
+ "options": {
+ "standardOptions": {
+ "decimals": 2
+ },
+ "valueMappings": [
+ {
+ "match": {
+ "to": 100
+ },
+ "result": {
+ "color": "#05a31f"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 100
+ },
+ "result": {
+ "color": "#ea3939"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "rate(mysql_global_status_queries{instance=~\"$instance\"}[5m])"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "**InnoDB Buffer Pool Size**\n\nInnoDB maintains a storage area called the buffer pool for caching data and indexes in memory. Knowing how the InnoDB buffer pool works, and taking advantage of it to keep frequently accessed data in memory, is one of the most important aspects of MySQL tuning. The goal is to keep the working set in memory. In most cases, this should be between 60%-90% of available memory on a dedicated database host, but depends on many factors.",
+ "id": "e5388f85-8970-4f64-83e1-e77d4025f1dd",
+ "layout": {
+ "h": 3,
+ "i": "e5388f85-8970-4f64-83e1-e77d4025f1dd",
+ "w": 6,
+ "x": 12,
+ "y": 1
+ },
+ "name": "InnoDB Buffer Pool",
+ "options": {
+ "standardOptions": {
+ "util": "bytesIEC"
+ }
+ },
+ "targets": [
+ {
+ "expr": "avg(mysql_global_variables_innodb_buffer_pool_size{instance=~\"$instance\"})"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "description": "**Table Locks**\n\nMySQL takes a number of different locks for varying reasons. In this graph we see how many Table level locks MySQL has requested from the storage engine. In the case of InnoDB, many times the locks could actually be row locks as it only takes table level locks in a few specific cases.\n\nIt is most useful to compare Locks Immediate and Locks Waited. If Locks waited is rising, it means you have lock contention. Otherwise, Locks Immediate rising and falling is normal activity.",
+ "id": "ab8a768e-98f3-4215-bfbf-ea838a12b45c",
+ "layout": {
+ "h": 3,
+ "i": "ab8a768e-98f3-4215-bfbf-ea838a12b45c",
+ "w": 6,
+ "x": 18,
+ "y": 1
+ },
+ "name": "Table Locks Waited(5min)",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "from": 1
+ },
+ "result": {
+ "color": "#e70d0d"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "to": 1
+ },
+ "result": {
+ "color": "#53b503"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "sum(increase(mysql_global_status_table_locks_waited{instance=~\"$instance\"}[5m]))"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "24a1be60-6b90-483a-af6f-48cc79830da1",
+ "layout": {
+ "h": 1,
+ "i": "24a1be60-6b90-483a-af6f-48cc79830da1",
+ "w": 24,
+ "x": 0,
+ "y": 4
+ },
+ "name": "Connections",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "**Max Connections** \n\nMax Connections is the maximum permitted number of simultaneous client connections. By default, this is 151. Increasing this value increases the number of file descriptors that mysqld requires. If the required number of descriptors are not available, the server reduces the value of Max Connections.\n\nmysqld actually permits Max Connections + 1 clients to connect. The extra connection is reserved for use by accounts that have the SUPER privilege, such as root.\n\nMax Used Connections is the maximum number of connections that have been in use simultaneously since the server started.\n\nConnections is the number of connection attempts (successful or not) to the MySQL server.",
+ "id": "bb31cf5e-1a80-478c-b300-ee9975d14963",
+ "layout": {
+ "h": 7,
+ "i": "bb31cf5e-1a80-478c-b300-ee9975d14963",
+ "w": 12,
+ "x": 0,
+ "y": 5
+ },
+ "name": "MySQL Connections",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(mysql_global_status_threads_connected{instance=~\"$instance\"})",
+ "legend": "Connections"
+ },
+ {
+ "expr": "sum(mysql_global_status_max_used_connections{instance=~\"$instance\"})",
+ "legend": "Max Used Connections"
+ },
+ {
+ "expr": "sum(mysql_global_variables_max_connections{instance=~\"$instance\"})",
+ "legend": "Max Connections"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_aborted_connects{instance=~\"$instance\"}[5m]))",
+ "legend": "Aborted Connections"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "Threads Connected is the number of open connections, while Threads Running is the number of threads not sleeping.",
+ "id": "c1083f59-1e46-442e-a7c3-f5d1fbb78751",
+ "layout": {
+ "h": 7,
+ "i": "c1083f59-1e46-442e-a7c3-f5d1fbb78751",
+ "w": 12,
+ "x": 12,
+ "y": 5
+ },
+ "name": "MySQL Client Thread Activity",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(mysql_global_status_threads_connected{instance=~\"$instance\"})",
+ "legend": "Threads Connected"
+ },
+ {
+ "expr": "sum(mysql_global_status_threads_running{instance=~\"$instance\"})",
+ "legend": "Threads Running"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "e126f7dd-df38-4a43-846a-ea6188718de9",
+ "layout": {
+ "h": 1,
+ "i": "e126f7dd-df38-4a43-846a-ea6188718de9",
+ "w": 24,
+ "x": 0,
+ "y": 12
+ },
+ "name": "Query Performance",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.64,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "80f94d89-babe-4e38-a220-2490af80e091",
+ "layout": {
+ "h": 7,
+ "i": "80f94d89-babe-4e38-a220-2490af80e091",
+ "w": 12,
+ "x": 0,
+ "y": 13
+ },
+ "name": "MySQL Temporary Objects",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(mysql_global_status_created_tmp_tables{instance=~\"$instance\"}[5m]))",
+ "legend": "Created Tmp Tables"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_created_tmp_disk_tables{instance=~\"$instance\"}[5m]))",
+ "legend": "Created Tmp Disk Tables"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_created_tmp_files{instance=~\"$instance\"}[5m]))",
+ "legend": "Created Tmp Files"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.41,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "**MySQL Select Types**\n\nAs with most relational databases, selecting based on indexes is more efficient than scanning an entire table's data. Here we see the counters for selects not done with indexes.\n\n* ***Select Scan*** is how many queries caused full table scans, in which all the data in the table had to be read and either discarded or returned.\n* ***Select Range*** is how many queries used a range scan, which means MySQL scanned all rows in a given range.\n* ***Select Full Join*** is the number of joins that are not joined on an index, this is usually a huge performance hit.",
+ "id": "a03b6272-cd60-430c-8128-6bfc8da2938f",
+ "layout": {
+ "h": 7,
+ "i": "a03b6272-cd60-430c-8128-6bfc8da2938f",
+ "w": 12,
+ "x": 12,
+ "y": 13
+ },
+ "name": "MySQL Select Types",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(mysql_global_status_select_full_join{ instance=~\"$instance\"}[5m]))",
+ "legend": "Select Full Join"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_select_full_range_join{ instance=~\"$instance\"}[5m]))",
+ "legend": "Select Full Range Join"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_select_range{ instance=~\"$instance\"}[5m]))",
+ "legend": "Select Range"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_select_range_check{ instance=~\"$instance\"}[5m]))",
+ "legend": "Select Range Check"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_select_scan{ instance=~\"$instance\"}[5m]))",
+ "legend": "Select Scan"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "**MySQL Sorts**\n\nDue to a query's structure, order, or other requirements, MySQL sorts the rows before returning them. For example, if a table is ordered 1 to 10 but you want the results reversed, MySQL then has to sort the rows to return 10 to 1.\n\nThis graph also shows when sorts had to scan a whole table or a given range of a table in order to return the results and which could not have been sorted via an index.",
+ "id": "d5fbfe0e-fc90-4f2a-b016-7a24a19c73d7",
+ "layout": {
+ "h": 7,
+ "i": "d5fbfe0e-fc90-4f2a-b016-7a24a19c73d7",
+ "w": 12,
+ "x": 0,
+ "y": 15
+ },
+ "name": "MySQL Sorts",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(mysql_global_status_sort_rows{instance=~\"$instance\"}[5m]))",
+ "legend": "Sort Rows"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_sort_range{instance=~\"$instance\"}[5m]))",
+ "legend": "Sort Range"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_sort_merge_passes{instance=~\"$instance\"}[5m]))",
+ "legend": "Sort Merge Passes"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_sort_scan{instance=~\"$instance\"}[5m]))",
+ "legend": "Sort Scan"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "bars",
+ "fillOpacity": 0.81,
+ "stack": "off"
+ },
+ "description": "**MySQL Slow Queries**\n\nSlow queries are defined as queries being slower than the long_query_time setting. For example, if you have long_query_time set to 3, all queries that take longer than 3 seconds to complete will show on this graph.",
+ "id": "51306ae6-e11a-4c08-a55c-3678676d5d8e",
+ "layout": {
+ "h": 7,
+ "i": "51306ae6-e11a-4c08-a55c-3678676d5d8e",
+ "w": 12,
+ "x": 12,
+ "y": 15
+ },
+ "name": "MySQL Slow Queries",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(mysql_global_status_slow_queries{instance=~\"$instance\"}[5m]))",
+ "legend": "Slow Queries"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "867ae6c9-b4a4-4349-8e68-56ef9cebf8b4",
+ "layout": {
+ "h": 1,
+ "i": "867ae6c9-b4a4-4349-8e68-56ef9cebf8b4",
+ "w": 24,
+ "x": 0,
+ "y": 22
+ },
+ "name": "Network",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "**MySQL Network Traffic**\n\nHere we can see how much network traffic is generated by MySQL. Outbound is network traffic sent from MySQL and Inbound is network traffic MySQL has received.",
+ "id": "392c15b2-d413-4201-9692-5277f7863c05",
+ "layout": {
+ "h": 7,
+ "i": "392c15b2-d413-4201-9692-5277f7863c05",
+ "w": 24,
+ "x": 0,
+ "y": 23
+ },
+ "name": "MySQL Network Traffic",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 2,
+ "util": "bytesSI"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(mysql_global_status_bytes_received{instance=~\"$instance\"}[5m]))",
+ "legend": "Inbound"
+ },
+ {
+ "expr": "sum(rate(mysql_global_status_bytes_sent{instance=~\"$instance\"}[5m]))",
+ "legend": "Outbound"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "e58cb79a-75f2-452f-bc55-b36ff93a60c4",
+ "layout": {
+ "h": 1,
+ "i": "e58cb79a-75f2-452f-bc55-b36ff93a60c4",
+ "w": 24,
+ "x": 0,
+ "y": 30
+ },
+ "name": "Commands, Handlers",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.2,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "**Top Command Counters**\n\nThe Com_{{xxx}} statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example, Com_delete and Com_update count [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements, respectively. Com_delete_multi and Com_update_multi are similar but apply to [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements that use multiple-table syntax.",
+ "id": "df2f62e6-5a75-4cea-9268-3077348a6558",
+ "layout": {
+ "h": 7,
+ "i": "df2f62e6-5a75-4cea-9268-3077348a6558",
+ "w": 24,
+ "x": 0,
+ "y": 31
+ },
+ "name": "Top Command Counters",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 2
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(10, rate(mysql_global_status_commands_total{instance=~\"$instance\"}[5m])>0)",
+ "legend": "Com_{{command}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "**MySQL Handlers**\n\nHandler statistics are internal statistics on how MySQL is selecting, updating, inserting, and modifying rows, tables, and indexes.\n\nThis is in fact the layer between the Storage Engine and MySQL.\n\n* `read_rnd_next` is incremented when the server performs a full table scan and this is a counter you don't really want to see with a high value.\n* `read_key` is incremented when a read is done with an index.\n* `read_next` is incremented when the storage engine is asked to 'read the next index entry'. A high value means a lot of index scans are being done.",
+ "id": "34ba0da1-d6f0-4c35-8418-56a7506035c5",
+ "layout": {
+ "h": 7,
+ "i": "34ba0da1-d6f0-4c35-8418-56a7506035c5",
+ "w": 12,
+ "x": 0,
+ "y": 33
+ },
+ "name": "MySQL Handlers",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 3
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(mysql_global_status_handlers_total{instance=~\"$instance\", handler!~\"commit|rollback|savepoint.*|prepare\"}[5m])",
+ "legend": "{{handler}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "9e37aa84-a6b6-4730-9fa7-0dab9e596e36",
+ "layout": {
+ "h": 7,
+ "i": "9e37aa84-a6b6-4730-9fa7-0dab9e596e36",
+ "w": 12,
+ "x": 12,
+ "y": 33
+ },
+ "name": "MySQL Transaction Handlers",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(mysql_global_status_handlers_total{instance=~\"$instance\", handler=~\"commit|rollback|savepoint.*|prepare\"}[5m])",
+ "legend": "{{handler}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "779fdf9a-fcf8-4454-91a4-608950d3fba1",
+ "layout": {
+ "h": 1,
+ "i": "779fdf9a-fcf8-4454-91a4-608950d3fba1",
+ "w": 24,
+ "x": 0,
+ "y": 40
+ },
+ "name": "Open Files",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "ac797cf1-56f6-4cf7-a472-8a2facd84588",
+ "layout": {
+ "h": 7,
+ "i": "ac797cf1-56f6-4cf7-a472-8a2facd84588",
+ "w": 24,
+ "x": 0,
+ "y": 41
+ },
+ "name": "MySQL Open Files",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "mysql_global_variables_open_files_limit{instance=~\"$instance\"}",
+ "legend": "Open Files Limit"
+ },
+ {
+ "expr": "mysql_global_status_innodb_num_open_files{instance=~\"$instance\"}",
+ "legend": "InnoDB Open Files"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "292f69d6-1a6c-463e-8aaf-14715b447c1f",
+ "layout": {
+ "h": 1,
+ "i": "292f69d6-1a6c-463e-8aaf-14715b447c1f",
+ "w": 24,
+ "x": 0,
+ "y": 48
+ },
+ "name": "Table Openings",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "**MySQL Table Open Cache Status**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",
+ "id": "0139a750-1a56-45ee-9004-7a8ef15d34dd",
+ "layout": {
+ "h": 7,
+ "i": "0139a750-1a56-45ee-9004-7a8ef15d34dd",
+ "w": 12,
+ "x": 0,
+ "y": 49
+ },
+ "name": "Table Open Cache Hit Ratio",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "percentUnit"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(mysql_global_status_table_open_cache_hits{instance=~\"$instance\"}[5m])\n/\n(\nrate(mysql_global_status_table_open_cache_hits{instance=~\"$instance\"}[5m])\n+\nrate(mysql_global_status_table_open_cache_misses{instance=~\"$instance\"}[5m])\n)",
+ "legend": "Table Open Cache Hit Ratio"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "**MySQL Open Tables**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",
+ "id": "fba77c7e-9e40-4829-89b6-ed8bb2a7add7",
+ "layout": {
+ "h": 7,
+ "i": "fba77c7e-9e40-4829-89b6-ed8bb2a7add7",
+ "w": 12,
+ "x": 12,
+ "y": 49
+ },
+ "name": "MySQL Open Tables",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "mysql_global_status_open_tables{instance=~\"$instance\"}",
+ "legend": "Open Tables"
+ },
+ {
+ "expr": "mysql_global_variables_table_open_cache{instance=~\"$instance\"}",
+ "legend": "Table Open Cache"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "label_values(mysql_global_status_uptime, instance)",
+ "name": "instance",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ }
+ ],
+ "version": "3.0.0"
+ }
}
\ No newline at end of file
diff --git a/docker/integrations/n9e/dashboards/n9e_server.json b/docker/integrations/n9e/dashboards/n9e_server.json
index 0b1775869c61257c64577778c524ef9229eac640..6ab7b188c30e3ee742149073a241fc0bbfcd7fa1 100644
--- a/docker/integrations/n9e/dashboards/n9e_server.json
+++ b/docker/integrations/n9e/dashboards/n9e_server.json
@@ -1,232 +1,251 @@
{
"name": "nightingale",
"tags": "",
+ "ident": "",
"configs": {
- "var": [],
"panels": [
{
- "targets": [
- {
- "refId": "A",
- "expr": "rate(n9e_server_samples_received_total[1m])"
- }
- ],
- "name": "number of data points received per second",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "53fcb9dc-23f9-41e0-bc5e-121eed14c3a4",
"layout": {
"h": 4,
+ "i": "53fcb9dc-23f9-41e0-bc5e-121eed14c3a4",
+ "isResizable": true,
"w": 12,
"x": 0,
- "y": 0,
- "i": "53fcb9dc-23f9-41e0-bc5e-121eed14c3a4",
- "isResizable": true
+ "y": 0
},
- "id": "53fcb9dc-23f9-41e0-bc5e-121eed14c3a4"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(n9e_server_alerts_total[10m])"
- }
- ],
- "name": "number of alarm events generated per second",
+ "name": "number of data points received per second",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "rate(n9e_server_samples_received_total[1m])",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "f70dcb8b-b58b-4ef9-9e48-f230d9e17140",
"layout": {
"h": 4,
+ "i": "47fc6252-9cc8-4b53-8e27-0c5c59a47269",
+ "isResizable": true,
"w": 12,
"x": 12,
- "y": 0,
- "i": "47fc6252-9cc8-4b53-8e27-0c5c59a47269",
- "isResizable": true
+ "y": 0
},
- "id": "f70dcb8b-b58b-4ef9-9e48-f230d9e17140"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "n9e_server_alert_queue_size"
- }
- ],
- "name": "queue length of alarm events",
+ "name": "number of alarm events generated per second",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "rate(n9e_server_alerts_total[10m])",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "caf23e58-d907-42b0-9ed6-722c8c6f3c5f",
"layout": {
"h": 4,
+ "i": "ad1af16c-de0c-45f4-8875-cea4e85d51d0",
+ "isResizable": true,
"w": 12,
"x": 0,
- "y": 4,
- "i": "ad1af16c-de0c-45f4-8875-cea4e85d51d0",
- "isResizable": true
+ "y": 4
},
- "id": "caf23e58-d907-42b0-9ed6-722c8c6f3c5f"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "n9e_server_http_request_duration_seconds_sum/n9e_server_http_request_duration_seconds_count"
- }
- ],
- "name": "The average response time of the data receiving interface (unit: seconds).",
+ "name": "queue length of alarm events",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "n9e_server_alert_queue_size",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "noraml"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "6b8d2db1-efca-4b9e-b429-57a9d2272bc5",
"layout": {
"h": 4,
+ "i": "64c3abc2-404c-4462-a82f-c109a21dac91",
+ "isResizable": true,
"w": 12,
"x": 12,
- "y": 4,
- "i": "64c3abc2-404c-4462-a82f-c109a21dac91",
- "isResizable": true
+ "y": 4
},
- "id": "6b8d2db1-efca-4b9e-b429-57a9d2272bc5"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "n9e_server_sample_queue_size"
- }
- ],
- "name": "length of the in-memory data queue",
+ "name": "The average response time of the data receiving interface (unit: seconds).",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
+ "targets": [
+ {
+ "expr": "n9e_server_http_request_duration_seconds_sum/n9e_server_http_request_duration_seconds_count",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "bd41677d-40d3-482e-bb6e-fbd25df46d87",
"layout": {
"h": 4,
+ "i": "1c7da942-58c2-40dc-b42f-983e4a35b89b",
+ "isResizable": true,
"w": 12,
"x": 0,
- "y": 8,
- "i": "1c7da942-58c2-40dc-b42f-983e4a35b89b",
- "isResizable": true
+ "y": 8
},
- "id": "bd41677d-40d3-482e-bb6e-fbd25df46d87"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "avg(n9e_server_forward_duration_seconds_sum/n9e_server_forward_duration_seconds_count)"
- }
- ],
- "name": "average time it takes to send data to TSDB (unit: seconds)",
+ "name": "length of the in-memory data queue",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
},
+ "targets": [
+ {
+ "expr": "n9e_server_sample_queue_size",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
"fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
"stack": "noraml"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "c8642e72-f384-46a5-8410-1e6be2953c3c",
"layout": {
"h": 4,
+ "i": "eed94a0b-954f-48ac-82e5-a2eada1c8a3d",
+ "isResizable": true,
"w": 12,
"x": 12,
- "y": 8,
- "i": "eed94a0b-954f-48ac-82e5-a2eada1c8a3d",
- "isResizable": true
+ "y": 8
},
- "id": "c8642e72-f384-46a5-8410-1e6be2953c3c"
+ "name": "average time it takes to send data to TSDB (unit: seconds)",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "avg(n9e_server_forward_duration_seconds_sum/n9e_server_forward_duration_seconds_count)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
}
],
- "version": "2.0.0"
+ "version": "3.0.0"
}
}
\ No newline at end of file
diff --git a/docker/integrations/net_response/dashboards/net_response_by_categraf.json b/docker/integrations/net_response/dashboards/net_response_by_categraf.json
index c33bf1e33f223f62a37cd331f540dec17e294402..a8d016caae03d612f98bb130046cc40cddddec74 100644
--- a/docker/integrations/net_response/dashboards/net_response_by_categraf.json
+++ b/docker/integrations/net_response/dashboards/net_response_by_categraf.json
@@ -1,91 +1,100 @@
{
- "name": "TCP detection",
- "tags": "",
- "ident": "",
- "configs": {
- "version": "2.0.0",
- "panels": [
- {
- "id": "b90370ef-ee1c-40c3-a570-e26a89448209",
- "type": "row",
- "name": "Default chart group",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0,
- "i": "b90370ef-ee1c-40c3-a570-e26a89448209"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "max(net_response_result_code) by (target)",
- "legend": "UP?"
- },
- {
- "expr": "max(net_response_response_time) by (target)",
- "refId": "C",
- "legend": "latency(s)"
- }
- ],
- "name": "Targets",
- "custom": {
- "showHeader": true,
- "calc": "lastNotNull",
- "displayMode": "labelValuesToRows",
- "aggrDimension": "target"
- },
- "options": {
- "valueMappings": [],
- "standardOptions": {}
- },
- "overrides": [
- {
- "properties": {
- "valueMappings": [
- {
- "type": "special",
- "match": {
- "special": 0
- },
- "result": {
- "text": "UP",
- "color": "#417505"
- }
- },
- {
- "type": "range",
- "match": {
- "special": 1,
- "from": 1
- },
- "result": {
- "text": "DOWN",
- "color": "#e90f0f"
- }
- }
- ],
- "standardOptions": {}
- },
- "matcher": {
- "value": "A"
- }
- }
- ],
- "version": "2.0.0",
- "type": "table",
- "layout": {
- "h": 15,
- "w": 24,
- "x": 0,
- "y": 1,
- "i": "73c6eaf9-1685-4a7a-bf53-3d52afa1792e"
- },
- "id": "73c6eaf9-1685-4a7a-bf53-3d52afa1792e"
- }
- ]
- }
+ "name": "TCP detection",
+ "tags": "",
+ "ident": "",
+ "configs": {
+ "panels": [
+ {
+ "collapsed": true,
+ "id": "b90370ef-ee1c-40c3-a570-e26a89448209",
+ "layout": {
+ "h": 1,
+ "i": "b90370ef-ee1c-40c3-a570-e26a89448209",
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "name": "Default chart group",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "aggrDimension": "target",
+ "calc": "lastNotNull",
+ "displayMode": "labelValuesToRows",
+ "showHeader": true
+ },
+ "id": "73c6eaf9-1685-4a7a-bf53-3d52afa1792e",
+ "layout": {
+ "h": 15,
+ "i": "73c6eaf9-1685-4a7a-bf53-3d52afa1792e",
+ "w": 24,
+ "x": 0,
+ "y": 1
+ },
+ "name": "Targets",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": []
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "value": "A"
+ },
+ "properties": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "special": 0
+ },
+ "result": {
+ "color": "#417505",
+ "text": "UP"
+ },
+ "type": "special"
+ },
+ {
+ "match": {
+ "from": 1,
+ "special": 1
+ },
+ "result": {
+ "color": "#e90f0f",
+ "text": "DOWN"
+ },
+ "type": "range"
+ }
+ ]
+ }
+ }
+ ],
+ "targets": [
+ {
+ "expr": "max(net_response_result_code) by (target)",
+ "legend": "UP?",
+ "refId": "A"
+ },
+ {
+ "expr": "max(net_response_response_time) by (target)",
+ "legend": "latency(s)",
+ "refId": "C"
+ }
+ ],
+ "type": "table",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "version": "3.0.0",
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ }
+ ]
+ }
}
\ No newline at end of file
diff --git a/docker/integrations/oracle/dashboards/oracle_by_categraf.json b/docker/integrations/oracle/dashboards/oracle_by_categraf.json
index 376e5c6e9a1e641450b91b59f326f5407b9b847a..534097ee14cf286d8de71fc90ba229c38420bc8c 100644
--- a/docker/integrations/oracle/dashboards/oracle_by_categraf.json
+++ b/docker/integrations/oracle/dashboards/oracle_by_categraf.json
@@ -1,824 +1,877 @@
{
- "name": "Oracle by categraf",
- "tags": "categraf",
- "ident": "",
- "configs": {
- "var": [
- {
- "name": "ident",
- "definition": "label_values(oracle_up,ident)",
- "options": [
- "tt-fc-log00.nj"
- ]
- },
- {
- "name": "instance",
- "definition": "label_values(oracle_up{ident=\"$ident\"},instance)"
- }
- ],
- "version": "2.0.0",
- "panels": [
- {
- "id": "16c3b81f-38ea-472e-ba9d-58f3218413c9",
- "type": "row",
- "name": "Activities",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0,
- "i": "16c3b81f-38ea-472e-ba9d-58f3218413c9"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(oracle_activity_execute_count_value{ident=\"$ident\", instance=\"$instance\"}[2m])"
- }
- ],
- "name": "execute count / second",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {
- "decimals": 1
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 6,
- "y": 1,
- "i": "6834fcfd-6448-4848-9f63-72350d818a39"
- },
- "id": "6834fcfd-6448-4848-9f63-72350d818a39"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(oracle_activity_user_commits_value{ident=\"$ident\", instance=\"$instance\"}[2m])"
- }
- ],
- "name": "user commits / second",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 12,
- "y": 1,
- "i": "1754fda2-fa98-481e-ba86-520f1d7ebc0d"
- },
- "id": "1754fda2-fa98-481e-ba86-520f1d7ebc0d"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(oracle_activity_user_rollbacks_value{ident=\"$ident\", instance=\"$instance\"}[2m])"
- }
- ],
- "name": "user rollbacks / second",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 18,
- "y": 1,
- "i": "18357a10-cab4-4795-a4a4-fd960d37ce95"
- },
- "id": "18357a10-cab4-4795-a4a4-fd960d37ce95"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "oracle_up{ident=\"$ident\", instance=\"$instance\"}"
- }
- ],
- "name": "status",
- "custom": {
- "textMode": "value",
- "colorMode": "background",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "special",
- "match": {
- "special": 1
- },
- "result": {
- "text": "UP",
- "color": "#5ea70f"
- }
- },
- {
- "type": "special",
- "match": {
- "special": 0
- },
- "result": {
- "text": "DOWN",
- "color": "#f60f0f"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 0,
- "y": 1,
- "i": "8e5f9501-7bc0-4b77-9178-3ab875202f43"
- },
- "id": "8e5f9501-7bc0-4b77-9178-3ab875202f43"
- },
- {
- "id": "aa019cdc-109a-4d3d-9549-9abc20720343",
- "type": "row",
- "name": "Waits",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 4,
- "i": "aa019cdc-109a-4d3d-9549-9abc20720343"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "oracle_wait_time_value{ident=\"$ident\", instance=\"$instance\"}",
- "legend": "{{wait_class}}"
- }
- ],
- "name": "Time waited",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 5,
- "i": "51451443-eb34-4bdc-8fc5-1f0ee35eb73c"
- },
- "id": "51451443-eb34-4bdc-8fc5-1f0ee35eb73c"
- },
- {
- "id": "108aa978-21be-45f4-92a6-f125f977965c",
- "type": "row",
- "name": "Tablespace",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 12,
- "i": "108aa978-21be-45f4-92a6-f125f977965c"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "oracle_tablespace_bytes{ident=\"$ident\", instance=\"$instance\"}/oracle_tablespace_max_bytes{ident=\"$ident\", instance=\"$instance\"}",
- "legend": "{{tablespace}}"
- }
- ],
- "name": "Used Percent",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "percentUnit"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 13,
- "i": "cf2454bd-0cf4-4f1a-a96a-b043db94da1f"
- },
- "id": "cf2454bd-0cf4-4f1a-a96a-b043db94da1f"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "oracle_tablespace_free{ident=\"$ident\", instance=\"$instance\"}",
- "legend": "{{tablespace}}"
- }
- ],
- "name": "Free space",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 13,
- "i": "8f4aa32b-1ab6-49d2-94c5-83f408dd3cc4"
- },
- "id": "8f4aa32b-1ab6-49d2-94c5-83f408dd3cc4"
- },
- {
- "id": "91c8d4ca-109e-4380-9222-92cffdcc5381",
- "type": "row",
- "name": "IO and TPS",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 20,
- "i": "91c8d4ca-109e-4380-9222-92cffdcc5381"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "oracle_sysmetric_io_requests_per_second_value{ident=\"$ident\", instance=\"$instance\"}"
- }
- ],
- "name": "IO Requests / Second",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 21,
- "i": "08552fed-10d2-4408-809e-eabc705db9f5"
- },
- "id": "08552fed-10d2-4408-809e-eabc705db9f5"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "oracle_sysmetric_user_transaction_per_sec_value{ident=\"$ident\", instance=\"$instance\"}"
- }
- ],
- "name": "TPS",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 8,
- "y": 21,
- "i": "c42236d6-d18a-40bb-84dc-d287b1d0ac25"
- },
- "id": "c42236d6-d18a-40bb-84dc-d287b1d0ac25"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "oracle_sysmetric_io_megabytes_per_second_value{ident=\"$ident\", instance=\"$instance\"}*1024*1024"
- }
- ],
- "name": "IO Bytes / Second",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 21,
- "i": "3a564e64-4bed-4381-ab08-517b51f6cc66"
- },
- "id": "3a564e64-4bed-4381-ab08-517b51f6cc66"
- },
- {
- "id": "34bc0a3c-23ee-4792-9552-0994fb027464",
- "type": "row",
- "name": "Connections",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 28,
- "i": "34bc0a3c-23ee-4792-9552-0994fb027464"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "oracle_sessions_value{ident=\"$ident\", instance=\"$instance\",status=\"ACTIVE\"}",
- "legend": ""
- }
- ],
- "name": "Sessions",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 29,
- "i": "f46676da-b625-458e-b8d2-9079441ac3d6"
- },
- "id": "f46676da-b625-458e-b8d2-9079441ac3d6"
- },
- {
- "id": "f8a61c95-0d00-4d38-a9d1-5813f70443da",
- "type": "row",
- "name": "Hit Ratio",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 36,
- "i": "f8a61c95-0d00-4d38-a9d1-5813f70443da"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "oracle_sysmetric_buffer_cache_hit_ratio_value{ident=\"$ident\", instance=\"$instance\"}"
- }
- ],
- "name": "Buffer Cache Hit Ratio",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 0,
- "y": 37,
- "i": "f35e0768-204e-43c8-8d43-32f34a391bf8"
- },
- "id": "f35e0768-204e-43c8-8d43-32f34a391bf8"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "oracle_sysmetric_redo_allocation_hit_ratio_value{ident=\"$ident\", instance=\"$instance\"}"
- }
- ],
- "name": "Redo Allocation Hit Ratio",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 37,
- "i": "4239c9e1-0bf3-42ae-a7a5-8db2c38f1900"
- },
- "id": "4239c9e1-0bf3-42ae-a7a5-8db2c38f1900"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "oracle_sysmetric_row_cache_hit_ratio_value{ident=\"$ident\", instance=\"$instance\"}"
- }
- ],
- "name": "Row Cache Hit Ratio",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 12,
- "y": 37,
- "i": "c40640c2-31b8-4bec-a88e-8a0f346da2a8"
- },
- "id": "c40640c2-31b8-4bec-a88e-8a0f346da2a8"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "oracle_sysmetric_library_cache_hit_ratio_value{ident=\"$ident\", instance=\"$instance\"}"
- }
- ],
- "name": "Library Cache Hit Ratio",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 18,
- "y": 37,
- "i": "93c7f8d2-093c-47fc-93e8-97b47bfcff80"
- },
- "id": "93c7f8d2-093c-47fc-93e8-97b47bfcff80"
- },
- {
- "id": "9857bf37-1e40-4cf5-adbc-8331f5e128c8",
- "type": "row",
- "name": "Physical Read Write",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 44,
- "i": "9857bf37-1e40-4cf5-adbc-8331f5e128c8"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "oracle_sysmetric_physical_read_bytes_per_sec_value{ident=\"$ident\", instance=\"$instance\"}"
- },
- {
- "expr": "oracle_sysmetric_Physical_Write_Bytes_Per_Sec{ident=\"$ident\", instance=\"$instance\"}",
- "refId": "B"
- }
- ],
- "name": "Physical Read Write Bytes / Second",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 0,
- "y": 45,
- "i": "b47bcfb9-2d26-454d-982a-039b769d405b"
- },
- "id": "b47bcfb9-2d26-454d-982a-039b769d405b"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "oracle_sysmetric_physical_read_total_bytes_per_sec_value{ident=\"$ident\", instance=\"$instance\"}"
- },
- {
- "expr": "oracle_sysmetric_Physical_Write_Total_Bytes_Per_Sec{ident=\"$ident\", instance=\"$instance\"}",
- "refId": "B"
- }
- ],
- "name": "Physical Read Write Total Bytes / Second",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 45,
- "i": "0c4ea45a-913f-4464-9c31-eb026a365729"
- },
- "id": "0c4ea45a-913f-4464-9c31-eb026a365729"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "oracle_sysmetric_physical_read_io_requests_per_sec_value{ident=\"$ident\", instance=\"$instance\"}"
- },
- {
- "expr": "oracle_sysmetric_Physical_Write_IO_Requests_Per_Sec{ident=\"$ident\", instance=\"$instance\"}",
- "refId": "B"
- }
- ],
- "name": "Physical RW IO Requests / Second",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 12,
- "y": 45,
- "i": "2bbfa751-4ac8-4ab9-affe-04b68e98daec"
- },
- "id": "2bbfa751-4ac8-4ab9-affe-04b68e98daec"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "oracle_sysmetric_physical_read_total_io_requests_per_sec_value{ident=\"$ident\", instance=\"$instance\"}"
- },
- {
- "expr": "oracle_sysmetric_Physical_Write_Total_IO_Requests_Per_Sec{ident=\"$ident\", instance=\"$instance\"}",
- "refId": "B"
- }
- ],
- "name": "Physical RW Total IO Requests / Second",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 18,
- "y": 45,
- "i": "2ec5b041-dbd1-4013-bac8-bb0ac6fb5df6"
- },
- "id": "2ec5b041-dbd1-4013-bac8-bb0ac6fb5df6"
- }
- ]
- }
+ "name": "Oracle by categraf",
+ "tags": "categraf",
+ "ident": "",
+ "configs": {
+ "panels": [
+ {
+ "collapsed": true,
+ "id": "16c3b81f-38ea-472e-ba9d-58f3218413c9",
+ "layout": {
+ "h": 1,
+ "i": "16c3b81f-38ea-472e-ba9d-58f3218413c9",
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "name": "Activities",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "6834fcfd-6448-4848-9f63-72350d818a39",
+ "layout": {
+ "h": 3,
+ "i": "6834fcfd-6448-4848-9f63-72350d818a39",
+ "w": 6,
+ "x": 6,
+ "y": 1
+ },
+ "name": "execute count / second",
+ "options": {
+ "standardOptions": {
+ "decimals": 1
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(oracle_activity_execute_count_value{ident=\"$ident\", instance=\"$instance\"}[2m])",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "1754fda2-fa98-481e-ba86-520f1d7ebc0d",
+ "layout": {
+ "h": 3,
+ "i": "1754fda2-fa98-481e-ba86-520f1d7ebc0d",
+ "w": 6,
+ "x": 12,
+ "y": 1
+ },
+ "name": "user commits / second",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "rate(oracle_activity_user_commits_value{ident=\"$ident\", instance=\"$instance\"}[2m])",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "18357a10-cab4-4795-a4a4-fd960d37ce95",
+ "layout": {
+ "h": 3,
+ "i": "18357a10-cab4-4795-a4a4-fd960d37ce95",
+ "w": 6,
+ "x": 18,
+ "y": 1
+ },
+ "name": "user rollbacks / second",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "rate(oracle_activity_user_rollbacks_value{ident=\"$ident\", instance=\"$instance\"}[2m])",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "background",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "8e5f9501-7bc0-4b77-9178-3ab875202f43",
+ "layout": {
+ "h": 3,
+ "i": "8e5f9501-7bc0-4b77-9178-3ab875202f43",
+ "w": 6,
+ "x": 0,
+ "y": 1
+ },
+ "name": "status",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "special": 1
+ },
+ "result": {
+ "color": "#5ea70f",
+ "text": "UP"
+ },
+ "type": "special"
+ },
+ {
+ "match": {
+ "special": 0
+ },
+ "result": {
+ "color": "#f60f0f",
+ "text": "DOWN"
+ },
+ "type": "special"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "oracle_up{ident=\"$ident\", instance=\"$instance\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "aa019cdc-109a-4d3d-9549-9abc20720343",
+ "layout": {
+ "h": 1,
+ "i": "aa019cdc-109a-4d3d-9549-9abc20720343",
+ "w": 24,
+ "x": 0,
+ "y": 4
+ },
+ "name": "Waits",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "51451443-eb34-4bdc-8fc5-1f0ee35eb73c",
+ "layout": {
+ "h": 7,
+ "i": "51451443-eb34-4bdc-8fc5-1f0ee35eb73c",
+ "w": 24,
+ "x": 0,
+ "y": 5
+ },
+ "name": "Time waited",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "oracle_wait_time_value{ident=\"$ident\", instance=\"$instance\"}",
+ "legend": "{{wait_class}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "108aa978-21be-45f4-92a6-f125f977965c",
+ "layout": {
+ "h": 1,
+ "i": "108aa978-21be-45f4-92a6-f125f977965c",
+ "w": 24,
+ "x": 0,
+ "y": 12
+ },
+ "name": "Tablespace",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "cf2454bd-0cf4-4f1a-a96a-b043db94da1f",
+ "layout": {
+ "h": 7,
+ "i": "cf2454bd-0cf4-4f1a-a96a-b043db94da1f",
+ "w": 12,
+ "x": 0,
+ "y": 13
+ },
+ "name": "Used Percent",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "percentUnit"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "oracle_tablespace_bytes{ident=\"$ident\", instance=\"$instance\"}/oracle_tablespace_max_bytes{ident=\"$ident\", instance=\"$instance\"}",
+ "legend": "{{tablespace}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "8f4aa32b-1ab6-49d2-94c5-83f408dd3cc4",
+ "layout": {
+ "h": 7,
+ "i": "8f4aa32b-1ab6-49d2-94c5-83f408dd3cc4",
+ "w": 12,
+ "x": 12,
+ "y": 13
+ },
+ "name": "Free space",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "oracle_tablespace_free{ident=\"$ident\", instance=\"$instance\"}",
+ "legend": "{{tablespace}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "91c8d4ca-109e-4380-9222-92cffdcc5381",
+ "layout": {
+ "h": 1,
+ "i": "91c8d4ca-109e-4380-9222-92cffdcc5381",
+ "w": 24,
+ "x": 0,
+ "y": 20
+ },
+ "name": "IO and TPS",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "08552fed-10d2-4408-809e-eabc705db9f5",
+ "layout": {
+ "h": 7,
+ "i": "08552fed-10d2-4408-809e-eabc705db9f5",
+ "w": 8,
+ "x": 0,
+ "y": 21
+ },
+ "name": "IO Requests / Second",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "oracle_sysmetric_io_requests_per_second_value{ident=\"$ident\", instance=\"$instance\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "c42236d6-d18a-40bb-84dc-d287b1d0ac25",
+ "layout": {
+ "h": 7,
+ "i": "c42236d6-d18a-40bb-84dc-d287b1d0ac25",
+ "w": 8,
+ "x": 8,
+ "y": 21
+ },
+ "name": "TPS",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "oracle_sysmetric_user_transaction_per_sec_value{ident=\"$ident\", instance=\"$instance\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "3a564e64-4bed-4381-ab08-517b51f6cc66",
+ "layout": {
+ "h": 7,
+ "i": "3a564e64-4bed-4381-ab08-517b51f6cc66",
+ "w": 8,
+ "x": 16,
+ "y": 21
+ },
+ "name": "IO Bytes / Second",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "oracle_sysmetric_io_megabytes_per_second_value{ident=\"$ident\", instance=\"$instance\"}*1024*1024",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "34bc0a3c-23ee-4792-9552-0994fb027464",
+ "layout": {
+ "h": 1,
+ "i": "34bc0a3c-23ee-4792-9552-0994fb027464",
+ "w": 24,
+ "x": 0,
+ "y": 28
+ },
+ "name": "Connections",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "f46676da-b625-458e-b8d2-9079441ac3d6",
+ "layout": {
+ "h": 7,
+ "i": "f46676da-b625-458e-b8d2-9079441ac3d6",
+ "w": 24,
+ "x": 0,
+ "y": 29
+ },
+ "name": "Sessions",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "oracle_sessions_value{ident=\"$ident\", instance=\"$instance\",status=\"ACTIVE\"}",
+ "legend": "",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "f8a61c95-0d00-4d38-a9d1-5813f70443da",
+ "layout": {
+ "h": 1,
+ "i": "f8a61c95-0d00-4d38-a9d1-5813f70443da",
+ "w": 24,
+ "x": 0,
+ "y": 36
+ },
+ "name": "Hit Ratio",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "f35e0768-204e-43c8-8d43-32f34a391bf8",
+ "layout": {
+ "h": 7,
+ "i": "f35e0768-204e-43c8-8d43-32f34a391bf8",
+ "w": 6,
+ "x": 0,
+ "y": 37
+ },
+ "name": "Buffer Cache Hit Ratio",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "oracle_sysmetric_buffer_cache_hit_ratio_value{ident=\"$ident\", instance=\"$instance\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "4239c9e1-0bf3-42ae-a7a5-8db2c38f1900",
+ "layout": {
+ "h": 7,
+ "i": "4239c9e1-0bf3-42ae-a7a5-8db2c38f1900",
+ "w": 6,
+ "x": 6,
+ "y": 37
+ },
+ "name": "Redo Allocation Hit Ratio",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "oracle_sysmetric_redo_allocation_hit_ratio_value{ident=\"$ident\", instance=\"$instance\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "c40640c2-31b8-4bec-a88e-8a0f346da2a8",
+ "layout": {
+ "h": 7,
+ "i": "c40640c2-31b8-4bec-a88e-8a0f346da2a8",
+ "w": 6,
+ "x": 12,
+ "y": 37
+ },
+ "name": "Row Cache Hit Ratio",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "oracle_sysmetric_row_cache_hit_ratio_value{ident=\"$ident\", instance=\"$instance\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "93c7f8d2-093c-47fc-93e8-97b47bfcff80",
+ "layout": {
+ "h": 7,
+ "i": "93c7f8d2-093c-47fc-93e8-97b47bfcff80",
+ "w": 6,
+ "x": 18,
+ "y": 37
+ },
+ "name": "Library Cache Hit Ratio",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "oracle_sysmetric_library_cache_hit_ratio_value{ident=\"$ident\", instance=\"$instance\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "9857bf37-1e40-4cf5-adbc-8331f5e128c8",
+ "layout": {
+ "h": 1,
+ "i": "9857bf37-1e40-4cf5-adbc-8331f5e128c8",
+ "w": 24,
+ "x": 0,
+ "y": 44
+ },
+ "name": "Physical Read Write",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "b47bcfb9-2d26-454d-982a-039b769d405b",
+ "layout": {
+ "h": 7,
+ "i": "b47bcfb9-2d26-454d-982a-039b769d405b",
+ "w": 6,
+ "x": 0,
+ "y": 45
+ },
+ "name": "Physical Read Write Bytes / Second",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "oracle_sysmetric_physical_read_bytes_per_sec_value{ident=\"$ident\", instance=\"$instance\"}",
+ "refId": "A"
+ },
+ {
+ "expr": "oracle_sysmetric_Physical_Write_Bytes_Per_Sec{ident=\"$ident\", instance=\"$instance\"}",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "0c4ea45a-913f-4464-9c31-eb026a365729",
+ "layout": {
+ "h": 7,
+ "i": "0c4ea45a-913f-4464-9c31-eb026a365729",
+ "w": 6,
+ "x": 6,
+ "y": 45
+ },
+ "name": "Physical Read Write Total Bytes / Second",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "oracle_sysmetric_physical_read_total_bytes_per_sec_value{ident=\"$ident\", instance=\"$instance\"}",
+ "refId": "A"
+ },
+ {
+ "expr": "oracle_sysmetric_Physical_Write_Total_Bytes_Per_Sec{ident=\"$ident\", instance=\"$instance\"}",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "2bbfa751-4ac8-4ab9-affe-04b68e98daec",
+ "layout": {
+ "h": 7,
+ "i": "2bbfa751-4ac8-4ab9-affe-04b68e98daec",
+ "w": 6,
+ "x": 12,
+ "y": 45
+ },
+ "name": "Physical RW IO Requests / Second",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "oracle_sysmetric_physical_read_io_requests_per_sec_value{ident=\"$ident\", instance=\"$instance\"}",
+ "refId": "A"
+ },
+ {
+ "expr": "oracle_sysmetric_Physical_Write_IO_Requests_Per_Sec{ident=\"$ident\", instance=\"$instance\"}",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "2ec5b041-dbd1-4013-bac8-bb0ac6fb5df6",
+ "layout": {
+ "h": 7,
+ "i": "2ec5b041-dbd1-4013-bac8-bb0ac6fb5df6",
+ "w": 6,
+ "x": 18,
+ "y": 45
+ },
+ "name": "Physical RW Total IO Requests / Second",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "oracle_sysmetric_physical_read_total_io_requests_per_sec_value{ident=\"$ident\", instance=\"$instance\"}",
+ "refId": "A"
+ },
+ {
+ "expr": "oracle_sysmetric_Physical_Write_Total_IO_Requests_Per_Sec{ident=\"$ident\", instance=\"$instance\"}",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "label_values(oracle_up,ident)",
+ "name": "ident",
+ "options": [
+ "tt-fc-log00.nj"
+ ],
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ },
+ {
+ "definition": "label_values(oracle_up{ident=\"$ident\"},instance)",
+ "name": "instance",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ }
+ ],
+ "version": "3.0.0"
+ }
}
\ No newline at end of file
diff --git a/docker/integrations/ping/dashboards/ping_by_categraf.json b/docker/integrations/ping/dashboards/ping_by_categraf.json
index 787de2c4cbb370d832ab5eebbfc88aeb527104fd..1ed36ea4bc0625d4c29f56659e155ff024dbc0f3 100644
--- a/docker/integrations/ping/dashboards/ping_by_categraf.json
+++ b/docker/integrations/ping/dashboards/ping_by_categraf.json
@@ -1,96 +1,105 @@
{
- "name": "PING detection",
- "tags": "",
- "ident": "",
- "configs": {
- "version": "2.0.0",
- "panels": [
- {
- "id": "eb08a300-c59a-4b0d-8537-62512e833f48",
- "type": "row",
- "name": "Default chart group",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0,
- "i": "eb08a300-c59a-4b0d-8537-62512e833f48"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "max(ping_result_code) by (target)",
- "legend": "UP?"
- },
- {
- "expr": "max(ping_percent_packet_loss) by (target)",
- "refId": "B",
- "legend": "Packet Loss %"
- },
- {
- "expr": "max(httpresponse_response_time) by (target)",
- "refId": "C",
- "legend": "latency(s)"
- }
- ],
- "name": "Ping",
- "custom": {
- "showHeader": true,
- "calc": "lastNotNull",
- "displayMode": "labelValuesToRows",
- "aggrDimension": "target"
- },
- "options": {
- "valueMappings": [],
- "standardOptions": {}
- },
- "overrides": [
- {
- "properties": {
- "valueMappings": [
- {
- "type": "special",
- "match": {
- "special": 0
- },
- "result": {
- "text": "UP",
- "color": "#417505"
- }
- },
- {
- "type": "range",
- "match": {
- "special": 1,
- "from": 1
- },
- "result": {
- "text": "DOWN",
- "color": "#e90f0f"
- }
- }
- ],
- "standardOptions": {}
- },
- "matcher": {
- "value": "A"
- }
- }
- ],
- "version": "2.0.0",
- "type": "table",
- "layout": {
- "h": 15,
- "w": 24,
- "x": 0,
- "y": 1,
- "i": "1677138f-0f33-485c-8ee1-2db24cabbf54"
- },
- "id": "1677138f-0f33-485c-8ee1-2db24cabbf54"
- }
- ]
- }
+ "name": "PING detection",
+ "tags": "",
+ "ident": "",
+ "configs": {
+ "panels": [
+ {
+ "collapsed": true,
+ "id": "eb08a300-c59a-4b0d-8537-62512e833f48",
+ "layout": {
+ "h": 1,
+ "i": "eb08a300-c59a-4b0d-8537-62512e833f48",
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "name": "Default chart group",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "aggrDimension": "target",
+ "calc": "lastNotNull",
+ "displayMode": "labelValuesToRows",
+ "showHeader": true
+ },
+ "id": "1677138f-0f33-485c-8ee1-2db24cabbf54",
+ "layout": {
+ "h": 15,
+ "i": "1677138f-0f33-485c-8ee1-2db24cabbf54",
+ "w": 24,
+ "x": 0,
+ "y": 1
+ },
+ "name": "Ping",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": []
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "value": "A"
+ },
+ "properties": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "special": 0
+ },
+ "result": {
+ "color": "#417505",
+ "text": "UP"
+ },
+ "type": "special"
+ },
+ {
+ "match": {
+ "from": 1,
+ "special": 1
+ },
+ "result": {
+ "color": "#e90f0f",
+ "text": "DOWN"
+ },
+ "type": "range"
+ }
+ ]
+ }
+ }
+ ],
+ "targets": [
+ {
+ "expr": "max(ping_result_code) by (target)",
+ "legend": "UP?",
+ "refId": "A"
+ },
+ {
+ "expr": "max(ping_percent_packet_loss) by (target)",
+ "legend": "Packet Loss %",
+ "refId": "B"
+ },
+ {
+ "expr": "max(httpresponse_response_time) by (target)",
+ "legend": "latency(s)",
+ "refId": "C"
+ }
+ ],
+ "type": "table",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "version": "3.0.0",
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ }
+ ]
+ }
}
\ No newline at end of file
diff --git a/docker/integrations/process/dashboards/process_by_exporter.json b/docker/integrations/process/dashboards/process_by_exporter.json
index 4589ac3bcc55a471127ed0d9d6da7d9dda342072..8da2236e4ac0790358d85f225564de7ea895aadd 100644
--- a/docker/integrations/process/dashboards/process_by_exporter.json
+++ b/docker/integrations/process/dashboards/process_by_exporter.json
@@ -1,1049 +1,1106 @@
{
- "name": "Linux Process - exporter",
- "tags": "Prometheus Process",
- "ident": "",
- "configs": {
- "var": [
- {
- "name": "instance",
- "definition": "label_values(namedprocess_namegroup_num_procs, instance)",
- "multi": false,
- "options": [
- "tt-fc-es02.nj:12346"
- ]
- },
- {
- "definition": "label_values(namedprocess_namegroup_cpu_seconds_total{instance=~\"$instance\"},groupname)",
- "name": "processes",
- "multi": true,
- "options": [
- "(sd-pam)",
- "NetworkManager",
- "YDLive",
- "YDPython",
- "YDService",
- "agent",
- "agetty",
- "atd",
- "auditd",
- "barad_agent",
- "bash",
- "chronyd",
- "crond",
- "dbus-daemon",
- "fc-agent",
- "fc-alert",
- "fc-checker",
- "gpg-agent",
- "less",
- "lsmd",
- "mongod",
- "mysql",
- "mysqld",
- "nginx",
- "ngo",
- "node",
- "openvpn",
- "podman pause",
- "polkitd",
- "process-agent",
- "redis-server",
- "rsyslogd",
- "sedispatch",
- "sgagent",
- "sh",
- "ssh-agent",
- "sshd",
- "sssd",
- "sssd_be",
- "sssd_nss",
- "su",
- "sudo",
- "systemd",
- "systemd-journal",
- "systemd-logind",
- "systemd-udevd",
- "tat_agent",
- "trace-agent",
- "tuned",
- "unbound-anchor",
- "vminsert-prod",
- "vmselect-prod",
- "vmstorage-prod"
- ],
- "allOption": true
- }
- ],
- "version": "2.0.0",
- "panels": [
- {
- "id": "021aedd5-dac7-4431-aeea-50c0c594e784",
- "type": "row",
- "name": "Cpu Usage",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0,
- "i": "021aedd5-dac7-4431-aeea-50c0c594e784"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,(rate(namedprocess_namegroup_cpu_seconds_total{mode=\"user\",groupname=~\"$processes\",instance=~\"$instance\"}[5m]) + ignoring(mode) rate(namedprocess_namegroup_cpu_seconds_total{mode=\"system\",groupname=~\"$processes\",instance=~\"$instance\"}[5m])) or (irate(namedprocess_namegroup_cpu_seconds_total{mode=\"user\",groupname=~\"$processes\",instance=~\"$instance\"}[5m]) + ignoring(mode) irate(namedprocess_namegroup_cpu_seconds_total{mode=\"system\",groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top processes by Total CPU cores used",
- "description": "进程占用CPU时间(用户态+内核态),倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "percentUnit"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 1,
- "i": "0f55cad5-ae67-44de-bba5-f6e1bd23066a"
- },
- "id": "0f55cad5-ae67-44de-bba5-f6e1bd23066a"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5, rate(namedprocess_namegroup_cpu_seconds_total{mode=\"system\",groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or ( irate(namedprocess_namegroup_cpu_seconds_total{mode=\"system\",groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top processes by System CPU cores used",
- "description": "进程占用CPU时间(内核态),倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "percentUnit"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 1,
- "i": "e200eb2a-9cd6-4954-880f-9a354c1af2cc"
- },
- "id": "e200eb2a-9cd6-4954-880f-9a354c1af2cc"
- },
- {
- "id": "3f0a9068-51ab-4889-82e1-444cd23c56e8",
- "type": "row",
- "name": "Memory Usage",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 8,
- "i": "3f0a9068-51ab-4889-82e1-444cd23c56e8"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,( (avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"swapped\",instance=~\"$instance\"}[5m])+ ignoring (memtype) avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"resident\",instance=~\"$instance\"}[5m])) or (avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"swapped\",instance=~\"$instance\"}[5m])+ ignoring (memtype) avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"resident\",instance=~\"$instance\"}[5m])) ))",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top processes by Used memory",
- "description": "进程常驻内存与交换空间平均占用容量之和,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 9,
- "i": "9cb0cc2f-c122-4f5e-98ed-8bf310bd612a"
- },
- "id": "9cb0cc2f-c122-4f5e-98ed-8bf310bd612a"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5, (avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"resident\",instance=~\"$instance\"}[5m]) or avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"resident\",instance=~\"$instance\"}[5m]) ))",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top processes by Resident Memory",
- "description": "进程常驻内存平均占用容量之和,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 9,
- "i": "7aceae00-23be-447f-87df-47f74b278190"
- },
- "id": "7aceae00-23be-447f-87df-47f74b278190"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,( avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"swapped\",instance=~\"$instance\"}[5m]) or avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"swapped\",instance=~\"$instance\"}[5m]))) ",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top processes by Swapped Memory",
- "description": "进程交换内存平均占用容量,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 11,
- "i": "55b255d8-756e-421c-9690-675d7c174e86"
- },
- "id": "55b255d8-756e-421c-9690-675d7c174e86"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,( avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"virtual\",instance=~\"$instance\"}[5m]) or avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"virtual\",instance=~\"$instance\"}[5m])))",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top processes by Virtual Memory",
- "description": "进程虚拟内存平均占用容量,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 11,
- "i": "3c900819-5955-4bef-b419-ea8c47107b0d"
- },
- "id": "3c900819-5955-4bef-b419-ea8c47107b0d"
- },
- {
- "id": "4d72a763-48f3-480b-9701-bc297be1bbfb",
- "type": "row",
- "name": "Disk IO Usage",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 18,
- "i": "4d72a763-48f3-480b-9701-bc297be1bbfb"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,(rate(namedprocess_namegroup_write_bytes_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or irate(namedprocess_namegroup_write_bytes_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top processes by Bytes Written",
- "description": "进程写数据量,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesSI"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 19,
- "i": "4cb30905-65f6-42aa-895e-ef3679905ef8"
- },
- "id": "4cb30905-65f6-42aa-895e-ef3679905ef8"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,(rate(namedprocess_namegroup_read_bytes_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or irate(namedprocess_namegroup_read_bytes_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top processes by Bytes Read",
- "description": "进程读数据量,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesSI"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 19,
- "i": "d74f4d5f-db71-4781-b539-0df17dfcd42f"
- },
- "id": "d74f4d5f-db71-4781-b539-0df17dfcd42f"
- },
- {
- "id": "e460097e-c3c8-45da-8202-dee1de996ddf",
- "type": "row",
- "name": "Process and Thread Counts",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 26,
- "i": "e460097e-c3c8-45da-8202-dee1de996ddf"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,(max_over_time(namedprocess_namegroup_num_procs{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or max_over_time(namedprocess_namegroup_num_procs{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top processes by number of processes instances",
- "description": "同名进程数,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 27,
- "i": "1b44ce6f-ca65-49f5-892e-05444c9aa580"
- },
- "id": "1b44ce6f-ca65-49f5-892e-05444c9aa580"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,(max_over_time(namedprocess_namegroup_num_threads{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or max_over_time(namedprocess_namegroup_num_threads{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top processes by number of threads",
- "description": "进程内线程数,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 27,
- "i": "24975aae-a573-4998-bdab-ffcb19cee2ae"
- },
- "id": "24975aae-a573-4998-bdab-ffcb19cee2ae"
- },
- {
- "id": "3df9fc7b-bf9c-45bc-baa1-72ef83bc6b34",
- "type": "row",
- "name": "Context Switches",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 34,
- "i": "3df9fc7b-bf9c-45bc-baa1-72ef83bc6b34"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,( rate(namedprocess_namegroup_context_switches_total{groupname=~\"$processes\",instance=~\"$instance\",ctxswitchtype=\"voluntary\"}[5m]) or irate(namedprocess_namegroup_context_switches_total{groupname=~\"$processes\",instance=~\"$instance\",ctxswitchtype=\"voluntary\"}[5m])))",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top Processes by Voluntary Context Switches",
- "description": "进程自愿中断(如I/O完成)次数,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 35,
- "i": "3775f2e7-fa98-4458-9659-0d1221b3cc03"
- },
- "id": "3775f2e7-fa98-4458-9659-0d1221b3cc03"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,( rate(namedprocess_namegroup_context_switches_total{groupname=~\"$processes\",instance=~\"$instance\",ctxswitchtype=\"nonvoluntary\"}[5m]) or irate(namedprocess_namegroup_context_switches_total{groupname=~\"$processes\",instance=~\"$instance\",ctxswitchtype=\"nonvoluntary\"}[5m])))",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top Processes by Non-Voluntary Context Switches",
- "description": "进程被迫中断(如CPU时间耗尽)次数,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 35,
- "i": "a0e912d2-5b0d-42d0-bcf6-27bd54b5f07d"
- },
- "id": "a0e912d2-5b0d-42d0-bcf6-27bd54b5f07d"
- },
- {
- "id": "79aedbba-da75-4393-b322-1565655017c0",
- "type": "row",
- "name": "File Descriptors",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 42,
- "i": "79aedbba-da75-4393-b322-1565655017c0"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,(max_over_time(namedprocess_namegroup_open_filedesc{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or max_over_time(namedprocess_namegroup_open_filedesc{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top processes by Open File Descriptors",
- "description": "打开文件数,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 43,
- "i": "73dc1195-8ffd-4c6e-b963-d10cde9ae7ba"
- },
- "id": "73dc1195-8ffd-4c6e-b963-d10cde9ae7ba"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,( max_over_time(namedprocess_namegroup_worst_fd_ratio{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or max_over_time(namedprocess_namegroup_worst_fd_ratio{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) ))*100",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top processes by File Descriptor Usage Percent",
- "description": "已打开文件数与允许打开文件数占比,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "percent"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 43,
- "i": "5ffa8032-5b55-4841-a12e-81c1fc8443dd"
- },
- "id": "5ffa8032-5b55-4841-a12e-81c1fc8443dd"
- },
- {
- "id": "fe967a6c-63bc-48d6-9632-07da1675581b",
- "type": "row",
- "name": "Page Faults",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 50,
- "i": "fe967a6c-63bc-48d6-9632-07da1675581b"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,( rate(namedprocess_namegroup_major_page_faults_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or irate(namedprocess_namegroup_major_page_faults_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top processes by Major Page Faults",
- "description": "主要页缺失次数,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 51,
- "i": "8944f17d-51e6-435d-808a-8301b8539f08"
- },
- "id": "8944f17d-51e6-435d-808a-8301b8539f08"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,( rate(namedprocess_namegroup_minor_page_faults_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or irate(namedprocess_namegroup_minor_page_faults_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top processes by Minor Page Faults",
- "description": "次要页缺失次数,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 51,
- "i": "b9bed634-d25a-4542-8fd9-4c63e9db766c"
- },
- "id": "b9bed634-d25a-4542-8fd9-4c63e9db766c"
- },
- {
- "id": "76910d2f-d2c7-48c1-ad05-9651110f0ff1",
- "type": "row",
- "name": "Statuses",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 58,
- "i": "76910d2f-d2c7-48c1-ad05-9651110f0ff1"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,( max_over_time(namedprocess_namegroup_states{instance=~\"$instance\", groupname=~\"$processes\", state=\"Running\"}[5m]) or max_over_time(namedprocess_namegroup_states{instance=~\"$instance\", groupname=~\"$processes\", state=\"Running\"}[5m])))",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top running processes",
- "description": "运行态同名进程数量,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 59,
- "i": "7c0a07a2-f936-41c1-a03e-328d8bc1feea"
- },
- "id": "7c0a07a2-f936-41c1-a03e-328d8bc1feea"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,( max_over_time(namedprocess_namegroup_states{instance=~\"$instance\", groupname=~\"$processes\", state=\"Waiting\"}[5m]) or max_over_time(namedprocess_namegroup_states{instance=~\"$instance\", groupname=~\"$processes\", state=\"Waiting\"}[5m])))",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Top of processes waiting on IO",
- "description": "等待IO状态同名进程数量,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 59,
- "i": "31829466-def5-496f-83e8-10806b19410b"
- },
- "id": "31829466-def5-496f-83e8-10806b19410b"
- },
- {
- "id": "9c79f06d-0262-4284-a65e-bcd0d84130be",
- "type": "row",
- "name": "Kernel Waits(WCHAN)",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 66,
- "i": "9c79f06d-0262-4284-a65e-bcd0d84130be"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,sum(avg_over_time(namedprocess_namegroup_threads_wchan{instance=~\"$instance\", groupname=~\"$processes\"}[5m])) by (wchan) )",
- "legend": "{{wchan}}"
- }
- ],
- "name": "Kernel waits for All",
- "description": "内核函数等待线程数量,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 67,
- "i": "5decb873-5452-4084-8bbf-7bd3c9fa33f4"
- },
- "id": "5decb873-5452-4084-8bbf-7bd3c9fa33f4"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "topk(5,sum(avg_over_time(namedprocess_namegroup_threads_wchan{instance=~\"$instance\", groupname=~\"$processes\"}[5m])) by (wchan,groupname) )",
- "legend": "{{wchan}}"
- }
- ],
- "name": "Kernel wait Details for All",
- "description": "内核函数等待线程数量按进程统计,倒排前5",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 67,
- "i": "20f14e96-5ac8-43f8-93a8-3f7696f5d8d5"
- },
- "id": "20f14e96-5ac8-43f8-93a8-3f7696f5d8d5"
- },
- {
- "id": "972e68da-d03d-4638-81a2-fba73d215788",
- "type": "row",
- "name": "Uptime",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 74,
- "i": "972e68da-d03d-4638-81a2-fba73d215788"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "time()-(namedprocess_namegroup_oldest_start_time_seconds{instance=~\"$instance\",groupname=~\"$processes\"}>0)",
- "legend": "{{groupname}}"
- }
- ],
- "name": "Processes by uptime",
- "description": "进程启动时长",
- "custom": {
- "showHeader": true,
- "calc": "lastNotNull",
- "displayMode": "seriesToRows"
- },
- "options": {
- "standardOptions": {
- "util": "seconds"
- }
- },
- "overrides": [
- {
- "properties": {
- "standardOptions": {
- "util": "seconds"
- },
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "to": 1800
- },
- "result": {
- "color": "#f91010"
- }
- },
- {
- "type": "range",
- "match": {
- "from": 1800
- },
- "result": {
- "color": "#21f312"
- }
- }
- ]
- }
- }
- ],
- "version": "2.0.0",
- "type": "table",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 75,
- "i": "eff1ee11-1d70-4c79-a159-588a363a2b60"
- },
- "id": "eff1ee11-1d70-4c79-a159-588a363a2b60"
- }
- ]
- }
+ "name": "Linux Process - exporter",
+ "tags": "Prometheus Process",
+ "ident": "",
+ "configs": {
+ "panels": [
+ {
+ "collapsed": true,
+ "id": "021aedd5-dac7-4431-aeea-50c0c594e784",
+ "layout": {
+ "h": 1,
+ "i": "021aedd5-dac7-4431-aeea-50c0c594e784",
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "name": "Cpu Usage",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "进程占用CPU时间(用户态+内核态),倒排前5",
+ "id": "0f55cad5-ae67-44de-bba5-f6e1bd23066a",
+ "layout": {
+ "h": 7,
+ "i": "0f55cad5-ae67-44de-bba5-f6e1bd23066a",
+ "w": 12,
+ "x": 0,
+ "y": 1
+ },
+ "name": "Top processes by Total CPU cores used",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "percentUnit"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,(rate(namedprocess_namegroup_cpu_seconds_total{mode=\"user\",groupname=~\"$processes\",instance=~\"$instance\"}[5m]) + ignoring(mode) rate(namedprocess_namegroup_cpu_seconds_total{mode=\"system\",groupname=~\"$processes\",instance=~\"$instance\"}[5m])) or (irate(namedprocess_namegroup_cpu_seconds_total{mode=\"user\",groupname=~\"$processes\",instance=~\"$instance\"}[5m]) + ignoring(mode) irate(namedprocess_namegroup_cpu_seconds_total{mode=\"system\",groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "进程占用CPU时间(内核态),倒排前5",
+ "id": "e200eb2a-9cd6-4954-880f-9a354c1af2cc",
+ "layout": {
+ "h": 7,
+ "i": "e200eb2a-9cd6-4954-880f-9a354c1af2cc",
+ "w": 12,
+ "x": 12,
+ "y": 1
+ },
+ "name": "Top processes by System CPU cores used",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "percentUnit"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5, rate(namedprocess_namegroup_cpu_seconds_total{mode=\"system\",groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or ( irate(namedprocess_namegroup_cpu_seconds_total{mode=\"system\",groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "3f0a9068-51ab-4889-82e1-444cd23c56e8",
+ "layout": {
+ "h": 1,
+ "i": "3f0a9068-51ab-4889-82e1-444cd23c56e8",
+ "w": 24,
+ "x": 0,
+ "y": 8
+ },
+ "name": "Memory Usage",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "进程常驻内存与交换空间平均占用容量之和,倒排前5",
+ "id": "9cb0cc2f-c122-4f5e-98ed-8bf310bd612a",
+ "layout": {
+ "h": 7,
+ "i": "9cb0cc2f-c122-4f5e-98ed-8bf310bd612a",
+ "w": 12,
+ "x": 0,
+ "y": 9
+ },
+ "name": "Top processes by Used memory",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,( (avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"swapped\",instance=~\"$instance\"}[5m])+ ignoring (memtype) avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"resident\",instance=~\"$instance\"}[5m])) or (avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"swapped\",instance=~\"$instance\"}[5m])+ ignoring (memtype) avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"resident\",instance=~\"$instance\"}[5m])) ))",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "进程常驻内存平均占用容量之和,倒排前5",
+ "id": "7aceae00-23be-447f-87df-47f74b278190",
+ "layout": {
+ "h": 7,
+ "i": "7aceae00-23be-447f-87df-47f74b278190",
+ "w": 12,
+ "x": 12,
+ "y": 9
+ },
+ "name": "Top processes by Resident Memory",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5, (avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"resident\",instance=~\"$instance\"}[5m]) or avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"resident\",instance=~\"$instance\"}[5m]) ))",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "进程交换内存平均占用容量,倒排前5",
+ "id": "55b255d8-756e-421c-9690-675d7c174e86",
+ "layout": {
+ "h": 7,
+ "i": "55b255d8-756e-421c-9690-675d7c174e86",
+ "w": 12,
+ "x": 0,
+ "y": 11
+ },
+ "name": "Top processes by Swapped Memory",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,( avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"swapped\",instance=~\"$instance\"}[5m]) or avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"swapped\",instance=~\"$instance\"}[5m]))) ",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "进程虚拟内存平均占用容量,倒排前5",
+ "id": "3c900819-5955-4bef-b419-ea8c47107b0d",
+ "layout": {
+ "h": 7,
+ "i": "3c900819-5955-4bef-b419-ea8c47107b0d",
+ "w": 12,
+ "x": 12,
+ "y": 11
+ },
+ "name": "Top processes by Virtual Memory",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,( avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"virtual\",instance=~\"$instance\"}[5m]) or avg_over_time(namedprocess_namegroup_memory_bytes{groupname=~\"$processes\", memtype=\"virtual\",instance=~\"$instance\"}[5m])))",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "4d72a763-48f3-480b-9701-bc297be1bbfb",
+ "layout": {
+ "h": 1,
+ "i": "4d72a763-48f3-480b-9701-bc297be1bbfb",
+ "w": 24,
+ "x": 0,
+ "y": 18
+ },
+ "name": "Disk IO Usage",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "进程写数据量,倒排前5",
+ "id": "4cb30905-65f6-42aa-895e-ef3679905ef8",
+ "layout": {
+ "h": 7,
+ "i": "4cb30905-65f6-42aa-895e-ef3679905ef8",
+ "w": 12,
+ "x": 0,
+ "y": 19
+ },
+ "name": "Top processes by Bytes Written",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesSI"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,(rate(namedprocess_namegroup_write_bytes_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or irate(namedprocess_namegroup_write_bytes_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "进程读数据量,倒排前5",
+ "id": "d74f4d5f-db71-4781-b539-0df17dfcd42f",
+ "layout": {
+ "h": 7,
+ "i": "d74f4d5f-db71-4781-b539-0df17dfcd42f",
+ "w": 12,
+ "x": 12,
+ "y": 19
+ },
+ "name": "Top processes by Bytes Read",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesSI"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,(rate(namedprocess_namegroup_read_bytes_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or irate(namedprocess_namegroup_read_bytes_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "e460097e-c3c8-45da-8202-dee1de996ddf",
+ "layout": {
+ "h": 1,
+ "i": "e460097e-c3c8-45da-8202-dee1de996ddf",
+ "w": 24,
+ "x": 0,
+ "y": 26
+ },
+ "name": "Process and Thread Counts",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "同名进程数,倒排前5",
+ "id": "1b44ce6f-ca65-49f5-892e-05444c9aa580",
+ "layout": {
+ "h": 7,
+ "i": "1b44ce6f-ca65-49f5-892e-05444c9aa580",
+ "w": 12,
+ "x": 0,
+ "y": 27
+ },
+ "name": "Top processes by number of processes instances",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,(max_over_time(namedprocess_namegroup_num_procs{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or max_over_time(namedprocess_namegroup_num_procs{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "进程内线程数,倒排前5",
+ "id": "24975aae-a573-4998-bdab-ffcb19cee2ae",
+ "layout": {
+ "h": 7,
+ "i": "24975aae-a573-4998-bdab-ffcb19cee2ae",
+ "w": 12,
+ "x": 12,
+ "y": 27
+ },
+ "name": "Top processes by number of threads",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,(max_over_time(namedprocess_namegroup_num_threads{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or max_over_time(namedprocess_namegroup_num_threads{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "3df9fc7b-bf9c-45bc-baa1-72ef83bc6b34",
+ "layout": {
+ "h": 1,
+ "i": "3df9fc7b-bf9c-45bc-baa1-72ef83bc6b34",
+ "w": 24,
+ "x": 0,
+ "y": 34
+ },
+ "name": "Context Switches",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "进程自愿中断(如I/O完成)次数,倒排前5",
+ "id": "3775f2e7-fa98-4458-9659-0d1221b3cc03",
+ "layout": {
+ "h": 7,
+ "i": "3775f2e7-fa98-4458-9659-0d1221b3cc03",
+ "w": 12,
+ "x": 0,
+ "y": 35
+ },
+ "name": "Top Processes by Voluntary Context Switches",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,( rate(namedprocess_namegroup_context_switches_total{groupname=~\"$processes\",instance=~\"$instance\",ctxswitchtype=\"voluntary\"}[5m]) or irate(namedprocess_namegroup_context_switches_total{groupname=~\"$processes\",instance=~\"$instance\",ctxswitchtype=\"voluntary\"}[5m])))",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "进程被迫中断(如CPU时间耗尽)次数,倒排前5",
+ "id": "a0e912d2-5b0d-42d0-bcf6-27bd54b5f07d",
+ "layout": {
+ "h": 7,
+ "i": "a0e912d2-5b0d-42d0-bcf6-27bd54b5f07d",
+ "w": 12,
+ "x": 12,
+ "y": 35
+ },
+ "name": "Top Processes by Non-Voluntary Context Switches",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,( rate(namedprocess_namegroup_context_switches_total{groupname=~\"$processes\",instance=~\"$instance\",ctxswitchtype=\"nonvoluntary\"}[5m]) or irate(namedprocess_namegroup_context_switches_total{groupname=~\"$processes\",instance=~\"$instance\",ctxswitchtype=\"nonvoluntary\"}[5m])))",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "79aedbba-da75-4393-b322-1565655017c0",
+ "layout": {
+ "h": 1,
+ "i": "79aedbba-da75-4393-b322-1565655017c0",
+ "w": 24,
+ "x": 0,
+ "y": 42
+ },
+ "name": "File Descriptors",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "打开文件数,倒排前5",
+ "id": "73dc1195-8ffd-4c6e-b963-d10cde9ae7ba",
+ "layout": {
+ "h": 7,
+ "i": "73dc1195-8ffd-4c6e-b963-d10cde9ae7ba",
+ "w": 12,
+ "x": 0,
+ "y": 43
+ },
+ "name": "Top processes by Open File Descriptors",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,(max_over_time(namedprocess_namegroup_open_filedesc{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or max_over_time(namedprocess_namegroup_open_filedesc{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "已打开文件数与允许打开文件数占比,倒排前5",
+ "id": "5ffa8032-5b55-4841-a12e-81c1fc8443dd",
+ "layout": {
+ "h": 7,
+ "i": "5ffa8032-5b55-4841-a12e-81c1fc8443dd",
+ "w": 12,
+ "x": 12,
+ "y": 43
+ },
+ "name": "Top processes by File Descriptor Usage Percent",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "percent"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,( max_over_time(namedprocess_namegroup_worst_fd_ratio{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or max_over_time(namedprocess_namegroup_worst_fd_ratio{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) ))*100",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "fe967a6c-63bc-48d6-9632-07da1675581b",
+ "layout": {
+ "h": 1,
+ "i": "fe967a6c-63bc-48d6-9632-07da1675581b",
+ "w": 24,
+ "x": 0,
+ "y": 50
+ },
+ "name": "Page Faults",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "主要页缺失次数,倒排前5",
+ "id": "8944f17d-51e6-435d-808a-8301b8539f08",
+ "layout": {
+ "h": 7,
+ "i": "8944f17d-51e6-435d-808a-8301b8539f08",
+ "w": 12,
+ "x": 0,
+ "y": 51
+ },
+ "name": "Top processes by Major Page Faults",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,( rate(namedprocess_namegroup_major_page_faults_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or irate(namedprocess_namegroup_major_page_faults_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "次要页缺失次数,倒排前5",
+ "id": "b9bed634-d25a-4542-8fd9-4c63e9db766c",
+ "layout": {
+ "h": 7,
+ "i": "b9bed634-d25a-4542-8fd9-4c63e9db766c",
+ "w": 12,
+ "x": 12,
+ "y": 51
+ },
+ "name": "Top processes by Minor Page Faults",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,( rate(namedprocess_namegroup_minor_page_faults_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m]) or irate(namedprocess_namegroup_minor_page_faults_total{groupname=~\"$processes\",instance=~\"$instance\"}[5m])))",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "76910d2f-d2c7-48c1-ad05-9651110f0ff1",
+ "layout": {
+ "h": 1,
+ "i": "76910d2f-d2c7-48c1-ad05-9651110f0ff1",
+ "w": 24,
+ "x": 0,
+ "y": 58
+ },
+ "name": "Statuses",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "运行态同名进程数量,倒排前5",
+ "id": "7c0a07a2-f936-41c1-a03e-328d8bc1feea",
+ "layout": {
+ "h": 7,
+ "i": "7c0a07a2-f936-41c1-a03e-328d8bc1feea",
+ "w": 12,
+ "x": 0,
+ "y": 59
+ },
+ "name": "Top running processes",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,( max_over_time(namedprocess_namegroup_states{instance=~\"$instance\", groupname=~\"$processes\", state=\"Running\"}[5m]) or max_over_time(namedprocess_namegroup_states{instance=~\"$instance\", groupname=~\"$processes\", state=\"Running\"}[5m])))",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "等待IO状态同名进程数量,倒排前5",
+ "id": "31829466-def5-496f-83e8-10806b19410b",
+ "layout": {
+ "h": 7,
+ "i": "31829466-def5-496f-83e8-10806b19410b",
+ "w": 12,
+ "x": 12,
+ "y": 59
+ },
+ "name": "Top of processes waiting on IO",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,( max_over_time(namedprocess_namegroup_states{instance=~\"$instance\", groupname=~\"$processes\", state=\"Waiting\"}[5m]) or max_over_time(namedprocess_namegroup_states{instance=~\"$instance\", groupname=~\"$processes\", state=\"Waiting\"}[5m])))",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "9c79f06d-0262-4284-a65e-bcd0d84130be",
+ "layout": {
+ "h": 1,
+ "i": "9c79f06d-0262-4284-a65e-bcd0d84130be",
+ "w": 24,
+ "x": 0,
+ "y": 66
+ },
+ "name": "Kernel Waits(WCHAN)",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "内核函数等待线程数量,倒排前5",
+ "id": "5decb873-5452-4084-8bbf-7bd3c9fa33f4",
+ "layout": {
+ "h": 7,
+ "i": "5decb873-5452-4084-8bbf-7bd3c9fa33f4",
+ "w": 12,
+ "x": 0,
+ "y": 67
+ },
+ "name": "Kernel waits for All",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,sum(avg_over_time(namedprocess_namegroup_threads_wchan{instance=~\"$instance\", groupname=~\"$processes\"}[5m])) by (wchan) )",
+ "legend": "{{wchan}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "内核函数等待线程数量按进程统计,倒排前5",
+ "id": "20f14e96-5ac8-43f8-93a8-3f7696f5d8d5",
+ "layout": {
+ "h": 7,
+ "i": "20f14e96-5ac8-43f8-93a8-3f7696f5d8d5",
+ "w": 12,
+ "x": 12,
+ "y": 67
+ },
+ "name": "Kernel wait Details for All",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5,sum(avg_over_time(namedprocess_namegroup_threads_wchan{instance=~\"$instance\", groupname=~\"$processes\"}[5m])) by (wchan,groupname) )",
+ "legend": "{{wchan}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "972e68da-d03d-4638-81a2-fba73d215788",
+ "layout": {
+ "h": 1,
+ "i": "972e68da-d03d-4638-81a2-fba73d215788",
+ "w": 24,
+ "x": 0,
+ "y": 74
+ },
+ "name": "Uptime",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "displayMode": "seriesToRows",
+ "showHeader": true
+ },
+ "description": "进程启动时长",
+ "id": "eff1ee11-1d70-4c79-a159-588a363a2b60",
+ "layout": {
+ "h": 7,
+ "i": "eff1ee11-1d70-4c79-a159-588a363a2b60",
+ "w": 24,
+ "x": 0,
+ "y": 75
+ },
+ "name": "Processes by uptime",
+ "options": {
+ "standardOptions": {
+ "util": "seconds"
+ }
+ },
+ "overrides": [
+ {
+ "properties": {
+ "standardOptions": {
+ "util": "seconds"
+ },
+ "valueMappings": [
+ {
+ "match": {
+ "to": 1800
+ },
+ "result": {
+ "color": "#f91010"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 1800
+ },
+ "result": {
+ "color": "#21f312"
+ },
+ "type": "range"
+ }
+ ]
+ }
+ }
+ ],
+ "targets": [
+ {
+ "expr": "time()-(namedprocess_namegroup_oldest_start_time_seconds{instance=~\"$instance\",groupname=~\"$processes\"}>0)",
+ "legend": "{{groupname}}",
+ "refId": "A"
+ }
+ ],
+ "type": "table",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "label_values(namedprocess_namegroup_num_procs, instance)",
+ "multi": false,
+ "name": "instance",
+ "options": [
+ "tt-fc-es02.nj:12346"
+ ],
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ },
+ {
+ "allOption": true,
+ "definition": "label_values(namedprocess_namegroup_cpu_seconds_total{instance=~\"$instance\"},groupname)",
+ "multi": true,
+ "name": "processes",
+ "options": [
+ "(sd-pam)",
+ "NetworkManager",
+ "YDLive",
+ "YDPython",
+ "YDService",
+ "agent",
+ "agetty",
+ "atd",
+ "auditd",
+ "barad_agent",
+ "bash",
+ "chronyd",
+ "crond",
+ "dbus-daemon",
+ "fc-agent",
+ "fc-alert",
+ "fc-checker",
+ "gpg-agent",
+ "less",
+ "lsmd",
+ "mongod",
+ "mysql",
+ "mysqld",
+ "nginx",
+ "ngo",
+ "node",
+ "openvpn",
+ "podman pause",
+ "polkitd",
+ "process-agent",
+ "redis-server",
+ "rsyslogd",
+ "sedispatch",
+ "sgagent",
+ "sh",
+ "ssh-agent",
+ "sshd",
+ "sssd",
+ "sssd_be",
+ "sssd_nss",
+ "su",
+ "sudo",
+ "systemd",
+ "systemd-journal",
+ "systemd-logind",
+ "systemd-udevd",
+ "tat_agent",
+ "trace-agent",
+ "tuned",
+ "unbound-anchor",
+ "vminsert-prod",
+ "vmselect-prod",
+ "vmstorage-prod"
+ ],
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ }
+ ],
+ "version": "3.0.0"
+ }
}
\ No newline at end of file
diff --git a/docker/integrations/rabbixmq/dashboards/rabbitmq_by_categraf.json b/docker/integrations/rabbixmq/dashboards/rabbitmq_by_categraf.json
index 2fd93c8880cf496c8a99ef5a00221ef470a08568..7901cc6f7378082ec1f68f0bfbfafd6674e5841c 100644
--- a/docker/integrations/rabbixmq/dashboards/rabbitmq_by_categraf.json
+++ b/docker/integrations/rabbixmq/dashboards/rabbitmq_by_categraf.json
@@ -1,1716 +1,1808 @@
{
- "name": "RabbitMQ 3.8+",
- "tags": "",
- "ident": "",
- "configs": {
- "var": [
- {
- "definition": "label_values(rabbitmq_identity_info, rabbitmq_cluster)",
- "name": "rabbitmq_cluster"
- }
- ],
- "version": "2.0.0",
- "panels": [
- {
- "id": "4466a232-248d-45a8-bf4d-05d5139c7346",
- "type": "row",
- "name": "Overview",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0,
- "i": "4466a232-248d-45a8-bf4d-05d5139c7346"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rabbitmq_queue_messages_ready * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})"
- }
- ],
- "name": "Ready messages",
- "custom": {
- "textMode": "valueAndName",
- "colorMode": "background",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "from": 10000
- },
- "result": {
- "color": "#4a90e2"
- }
- },
- {
- "type": "range",
- "match": {
- "from": 100000
- },
- "result": {
- "color": "#f50a0a"
- }
- },
- {
- "type": "range",
- "match": {
- "to": 9999
- },
- "result": {
- "color": "#417505"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 7,
- "x": 0,
- "y": 1,
- "i": "a20b5d06-4343-457a-89f2-33a52c4dec04"
- },
- "id": "a20b5d06-4343-457a-89f2-33a52c4dec04"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_channel_messages_published_total[60s]) * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})"
- }
- ],
- "name": "Incoming messages / s",
- "custom": {
- "textMode": "valueAndName",
- "colorMode": "background",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "from": 50
- },
- "result": {
- "color": "#417505"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 5,
- "x": 7,
- "y": 1,
- "i": "893409b0-4ca0-450b-a0c9-f48eddf0e243"
- },
- "id": "893409b0-4ca0-450b-a0c9-f48eddf0e243"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rabbitmq_channels * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) - sum(rabbitmq_channel_consumers * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})"
- }
- ],
- "name": "Publishers",
- "custom": {
- "textMode": "valueAndName",
- "colorMode": "background",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "from": 10
- },
- "result": {
- "color": "#417505"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 12,
- "y": 1,
- "i": "d596e7f0-5095-420e-bc38-674001dcf5f4"
- },
- "id": "d596e7f0-5095-420e-bc38-674001dcf5f4"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rabbitmq_connections * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})"
- }
- ],
- "name": "Connections",
- "custom": {
- "textMode": "valueAndName",
- "colorMode": "background",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "from": 10
- },
- "result": {
- "color": "#417505"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 16,
- "y": 1,
- "i": "9f6d7dee-666d-4e1b-90d0-129b2e5ba085"
- },
- "id": "9f6d7dee-666d-4e1b-90d0-129b2e5ba085"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rabbitmq_queues * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})"
- }
- ],
- "name": "Queues",
- "custom": {
- "textMode": "valueAndName",
- "colorMode": "background",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "from": 10
- },
- "result": {
- "color": "#417505"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 20,
- "y": 1,
- "i": "910eae0f-2b78-4d10-a780-8f997f6e96cb"
- },
- "id": "910eae0f-2b78-4d10-a780-8f997f6e96cb"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rabbitmq_queue_messages_unacked * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})"
- }
- ],
- "name": "Unacknowledged messages",
- "custom": {
- "textMode": "valueAndName",
- "colorMode": "background",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "to": 99
- },
- "result": {
- "color": "#417505"
- }
- },
- {
- "type": "range",
- "match": {
- "from": 100
- },
- "result": {
- "color": "#4a90e2"
- }
- },
- {
- "type": "range",
- "match": {
- "from": 500
- },
- "result": {
- "color": "#d0021b"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 7,
- "x": 0,
- "y": 2,
- "i": "2e8cd60f-51b0-46b2-8c0f-bf55604d340d"
- },
- "id": "2e8cd60f-51b0-46b2-8c0f-bf55604d340d"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_channel_messages_redelivered_total[60s]) * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) +\nsum(rate(rabbitmq_channel_messages_delivered_total[60s]) * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) +\nsum(rate(rabbitmq_channel_messages_delivered_ack_total[60s]) * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) +\nsum(rate(rabbitmq_channel_get_total[60s]) * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) +\nsum(rate(rabbitmq_channel_get_ack_total[60s]) * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})"
- }
- ],
- "name": "Outgoing messages / s",
- "custom": {
- "textMode": "valueAndName",
- "colorMode": "background",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "from": 50
- },
- "result": {
- "color": "#417505"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 5,
- "x": 7,
- "y": 2,
- "i": "4b242c1e-85d5-48b3-8cce-b467209245ec"
- },
- "id": "4b242c1e-85d5-48b3-8cce-b467209245ec"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rabbitmq_channel_consumers * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})"
- }
- ],
- "name": "Consumers",
- "custom": {
- "textMode": "valueAndName",
- "colorMode": "background",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "from": 10
- },
- "result": {
- "color": "#417505"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 12,
- "y": 2,
- "i": "b87b1c6b-644a-42f4-915a-bd6857540f70"
- },
- "id": "b87b1c6b-644a-42f4-915a-bd6857540f70"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rabbitmq_channels * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})"
- }
- ],
- "name": "Channels",
- "custom": {
- "textMode": "valueAndName",
- "colorMode": "background",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "from": 10
- },
- "result": {
- "color": "#417505"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 16,
- "y": 2,
- "i": "65103bcf-fb21-488d-a06b-7b0ea130ca4d"
- },
- "id": "65103bcf-fb21-488d-a06b-7b0ea130ca4d"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rabbitmq_build_info * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})"
- }
- ],
- "name": "Nodes",
- "custom": {
- "textMode": "valueAndName",
- "colorMode": "background",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "to": null,
- "from": 3
- },
- "result": {
- "color": "#417505"
- }
- },
- {
- "type": "range",
- "match": {
- "from": 8
- },
- "result": {
- "color": "#e70909"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 20,
- "y": 2,
- "i": "c6454712-e265-4387-ae86-9ac865af46f2"
- },
- "id": "c6454712-e265-4387-ae86-9ac865af46f2"
- },
- {
- "id": "1712a96f-bcde-4d33-90b6-e2eba20527b9",
- "type": "row",
- "name": "Nodes",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 5,
- "i": "1712a96f-bcde-4d33-90b6-e2eba20527b9"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rabbitmq_build_info * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}"
- }
- ],
- "name": "nodes",
- "custom": {
- "showHeader": true,
- "calc": "lastNotNull",
- "displayMode": "labelsOfSeriesToRows",
- "columns": [
- "rabbitmq_cluster",
- "rabbitmq_node",
- "rabbitmq_version",
- "erlang_version"
- ]
- },
- "options": {
- "standardOptions": {}
- },
- "overrides": [
- {}
- ],
- "version": "2.0.0",
- "type": "table",
- "layout": {
- "h": 3,
- "w": 24,
- "x": 0,
- "y": 6,
- "i": "1b3fdea0-1921-48ae-b11f-31cc27f816b0"
- },
- "id": "1b3fdea0-1921-48ae-b11f-31cc27f816b0"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "(rabbitmq_resident_memory_limit_bytes * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) -\n(rabbitmq_process_resident_memory_bytes * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})"
- }
- ],
- "name": "Memory available before publishers blocked",
- "description": "If the value is zero or less, the memory alarm will be triggered and all publishing connections across all cluster nodes will be blocked.\n\nThis value can temporarily go negative because the memory alarm is triggered with a slight delay.\n\nThe kernel's view of the amount of memory used by the node can differ from what the node itself can observe. This means that this value can be negative for a sustained period of time.\n\nBy default nodes use resident set size (RSS) to compute how much memory they use. This strategy can be changed (see the guides below).\n\n* [Alarms](https://www.rabbitmq.com/alarms.html)\n* [Memory Alarms](https://www.rabbitmq.com/memory.html)\n* [Reasoning About Memory Use](https://www.rabbitmq.com/memory-use.html)\n* [Blocked Connection Notifications](https://www.rabbitmq.com/connection-blocked.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 7,
- "i": "b91068ed-0914-4a8d-91dd-9ffb3b692516"
- },
- "id": "b91068ed-0914-4a8d-91dd-9ffb3b692516"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rabbitmq_disk_space_available_bytes * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}"
- }
- ],
- "name": "Disk space available before publishers blocked",
- "description": "This metric is reported for the partition where the RabbitMQ data directory is stored.\n\nIf the value is zero or less, the disk alarm will be triggered and all publishing connections across all cluster nodes will be blocked.\n\nThis value can temporarily go negative because the free disk space alarm is triggered with a slight delay.\n\n* [Alarms](https://www.rabbitmq.com/alarms.html)\n* [Disk Space Alarms](https://www.rabbitmq.com/disk-alarms.html)\n* [Disk Space](https://www.rabbitmq.com/production-checklist.html#resource-limits-disk-space)\n* [Persistence Configuration](https://www.rabbitmq.com/persistence-conf.html)\n* [Blocked Connection Notifications](https://www.rabbitmq.com/connection-blocked.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 8,
- "y": 7,
- "i": "a74ca489-6101-49bc-9560-4cde368bc47e"
- },
- "id": "a74ca489-6101-49bc-9560-4cde368bc47e"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "(rabbitmq_process_max_fds * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) -\n(rabbitmq_process_open_fds * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})"
- }
- ],
- "name": "File descriptors available",
- "description": "When this value reaches zero, new connections will not be accepted and disk write operations may fail.\n\nClient libraries, peer nodes and CLI tools will not be able to connect when the node runs out of available file descriptors.\n\n* [Open File Handles Limit](https://www.rabbitmq.com/production-checklist.html#resource-limits-file-handle-limit)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 8,
- "x": 16,
- "y": 7,
- "i": "100ed9ae-2b84-4f2b-82b2-0444dd28deed"
- },
- "id": "100ed9ae-2b84-4f2b-82b2-0444dd28deed"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "(rabbitmq_process_max_tcp_sockets * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) -\n(rabbitmq_process_open_tcp_sockets * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})"
- }
- ],
- "name": "TCP sockets available",
- "description": "When this value reaches zero, new connections will not be accepted.\n\nClient libraries, peer nodes and CLI tools will not be able to connect when the node runs out of available file descriptors.\n\n* [Networking and RabbitMQ](https://www.rabbitmq.com/networking.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 8,
- "x": 16,
- "y": 8,
- "i": "a4859891-2538-47fc-946b-7ae3aa507c51"
- },
- "id": "a4859891-2538-47fc-946b-7ae3aa507c51"
- },
- {
- "id": "fec98a71-0615-4782-bf8d-960529e243f9",
- "type": "row",
- "name": "QUEUED MESSAGES",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 14,
- "i": "fec98a71-0615-4782-bf8d-960529e243f9"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rabbitmq_queue_messages_ready * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Messages ready to be delivered to consumers",
- "description": "Total number of ready messages ready to be delivered to consumers.\n\nAim to keep this value as low as possible. RabbitMQ behaves best when messages are flowing through it. It's OK for publishers to occasionally outpace consumers, but the expectation is that consumers will eventually process all ready messages.\n\nIf this metric keeps increasing, your system will eventually run out of memory and/or disk space. Consider using TTL or Queue Length Limit to prevent unbounded message growth.\n\n* [Queues](https://www.rabbitmq.com/queues.html)\n* [Consumers](https://www.rabbitmq.com/consumers.html)\n* [Queue Length Limit](https://www.rabbitmq.com/maxlength.html)\n* [Time-To-Live and Expiration](https://www.rabbitmq.com/ttl.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 0,
- "y": 15,
- "i": "145dc75a-d3b8-491f-9ba6-6da787c8e265"
- },
- "id": "145dc75a-d3b8-491f-9ba6-6da787c8e265"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rabbitmq_queue_messages_unacked * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Messages pending consumer acknowledgement",
- "description": "The total number of messages that are either in-flight to consumers, currently being processed by consumers or simply waiting for the consumer acknowledgements to be processed by the queue. Until the queue processes the message acknowledgement, the message will remain unacknowledged.\n\n* [Queues](https://www.rabbitmq.com/queues.html)\n* [Confirms and Acknowledgements](https://www.rabbitmq.com/confirms.html)\n* [Consumer Prefetch](https://www.rabbitmq.com/consumer-prefetch.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 12,
- "y": 15,
- "i": "a6ca328a-8b19-488e-a70d-74372f994901"
- },
- "id": "a6ca328a-8b19-488e-a70d-74372f994901"
- },
- {
- "id": "500c51ed-a0d6-41d9-903f-d000e289dc2b",
- "type": "row",
- "name": "INCOMING MESSAGES",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 18,
- "i": "500c51ed-a0d6-41d9-903f-d000e289dc2b"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_channel_messages_published_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Messages published / s",
- "description": "The incoming message rate before any routing rules are applied.\n\nIf this value is lower than the number of messages published to queues, it may indicate that some messages are delivered to more than one queue.\n\nIf this value is higher than the number of messages published to queues, messages cannot be routed and will either be dropped or returned to publishers.\n\n* [Publishers](https://www.rabbitmq.com/publishers.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 0,
- "y": 19,
- "i": "ef4352a4-c281-4596-b89e-d79a565ca112"
- },
- "id": "ef4352a4-c281-4596-b89e-d79a565ca112"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_channel_messages_confirmed_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Messages confirmed to publishers / s",
- "description": "The rate of messages confirmed by the broker to publishers. Publishers must opt-in to receive message confirmations.\n\nIf this metric is consistently at zero it may suggest that publisher confirms are not used by clients. The safety of published messages is likely to be at risk.\n\n* [Publisher Confirms](https://www.rabbitmq.com/confirms.html#publisher-confirms)\n* [Publisher Confirms and Data Safety](https://www.rabbitmq.com/publishers.html#data-safety)\n* [When Will Published Messages Be Confirmed by the Broker?](https://www.rabbitmq.com/confirms.html#when-publishes-are-confirmed)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 12,
- "y": 19,
- "i": "f0932549-d4a7-4eb1-a86e-35eb49569f29"
- },
- "id": "f0932549-d4a7-4eb1-a86e-35eb49569f29"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_queue_messages_published_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Messages routed to queues / s",
- "description": "The rate of messages received from publishers and successfully routed to the master queue replicas.\n\n* [Queues](https://www.rabbitmq.com/queues.html)\n* [Publishers](https://www.rabbitmq.com/publishers.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 0,
- "y": 20,
- "i": "f47766cb-3cdb-4f67-896f-77af421ff404"
- },
- "id": "f47766cb-3cdb-4f67-896f-77af421ff404"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_channel_messages_unconfirmed[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Messages unconfirmed to publishers / s",
- "description": "The rate of messages received from publishers that have publisher confirms enabled and the broker has not confirmed yet.\n\n* [Publishers](https://www.rabbitmq.com/publishers.html)\n* [Confirms and Acknowledgements](https://www.rabbitmq.com/confirms.html)\n* [When Will Published Messages Be Confirmed by the Broker?](https://www.rabbitmq.com/confirms.html#when-publishes-are-confirmed)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 12,
- "y": 20,
- "i": "644302ba-3c99-4787-8023-93770b0a9e6c"
- },
- "id": "644302ba-3c99-4787-8023-93770b0a9e6c"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_channel_messages_unroutable_dropped_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Unroutable messages dropped / s",
- "description": "The rate of messages that cannot be routed and are dropped. \n\nAny value above zero means message loss and likely suggests a routing problem on the publisher end.\n\n* [Unroutable Message Handling](https://www.rabbitmq.com/publishers.html#unroutable)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 0,
- "y": 21,
- "i": "0a3eadfd-d84c-4070-9527-b4c62fc20787"
- },
- "id": "0a3eadfd-d84c-4070-9527-b4c62fc20787"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_channel_messages_unroutable_returned_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Unroutable messages returned to publishers / s",
- "description": "The rate of messages that cannot be routed and are returned back to publishers.\n\nSustained values above zero may indicate a routing problem on the publisher end.\n\n* [Unroutable Message Handling](https://www.rabbitmq.com/publishers.html#unroutable)\n* [When Will Published Messages Be Confirmed by the Broker?](https://www.rabbitmq.com/confirms.html#when-publishes-are-confirmed)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 12,
- "y": 21,
- "i": "a14e8796-9614-4204-b5b8-5d1a47f356d8"
- },
- "id": "a14e8796-9614-4204-b5b8-5d1a47f356d8"
- },
- {
- "id": "2405258c-c08f-4e49-960a-5c9a12b29f12",
- "type": "row",
- "name": "OUTGOING MESSAGES",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 24,
- "i": "2405258c-c08f-4e49-960a-5c9a12b29f12"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(\n (rate(rabbitmq_channel_messages_delivered_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) +\n (rate(rabbitmq_channel_messages_delivered_ack_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})\n) by(rabbitmq_node)"
- }
- ],
- "name": "Messages delivered / s",
- "description": "The rate of messages delivered to consumers. It includes messages that have been redelivered.\n\nThis metric does not include messages that have been fetched by consumers using `basic.get` (consumed by polling).\n\n* [Consumers](https://www.rabbitmq.com/consumers.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 0,
- "y": 25,
- "i": "be0f1872-172c-4bc3-a901-4b645ebf5abe"
- },
- "id": "be0f1872-172c-4bc3-a901-4b645ebf5abe"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_channel_messages_redelivered_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Messages redelivered / s",
- "description": "The rate of messages that have been redelivered to consumers. It includes messages that have been requeued automatically and redelivered due to channel exceptions or connection closures.\n\nHaving some redeliveries is expected, but if this metric is consistently non-zero, it is worth investigating why.\n\n* [Negative Acknowledgement and Requeuing of Deliveries](https://www.rabbitmq.com/confirms.html#consumer-nacks-requeue)\n* [Consumers](https://www.rabbitmq.com/consumers.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 12,
- "y": 25,
- "i": "eff794ca-e844-4a12-b230-690aadefa53f"
- },
- "id": "eff794ca-e844-4a12-b230-690aadefa53f"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_channel_messages_delivered_ack_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Messages delivered with manual ack / s",
- "description": "The rate of message deliveries to consumers that use manual acknowledgement mode.\n\nWhen this mode is used, RabbitMQ waits for consumers to acknowledge messages before more messages can be delivered.\n\nThis is the safest way of consuming messages.\n\n* [Consumer Acknowledgements](https://www.rabbitmq.com/confirms.html)\n* [Consumer Prefetch](https://www.rabbitmq.com/consumer-prefetch.html)\n* [Consumer Acknowledgement Modes, Prefetch and Throughput](https://www.rabbitmq.com/confirms.html#channel-qos-prefetch-throughput)\n* [Consumers](https://www.rabbitmq.com/consumers.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 0,
- "y": 26,
- "i": "2ed4be63-4fe9-462f-bc2f-967319bc3626"
- },
- "id": "2ed4be63-4fe9-462f-bc2f-967319bc3626"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_channel_messages_delivered_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Messages delivered auto ack / s",
- "description": "The rate of message deliveries to consumers that use automatic acknowledgement mode.\n\nWhen this mode is used, RabbitMQ does not wait for consumers to acknowledge message deliveries.\n\nThis mode is fire-and-forget and does not offer any delivery safety guarantees. It tends to provide higher throughput and it may lead to consumer overload and higher consumer memory usage.\n\n* [Consumer Acknowledgement Modes, Prefetch and Throughput](https://www.rabbitmq.com/confirms.html#channel-qos-prefetch-throughput)\n* [Consumers](https://www.rabbitmq.com/consumers.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 12,
- "y": 26,
- "i": "116c44e0-c8e1-4f02-8eae-2140997e2280"
- },
- "id": "116c44e0-c8e1-4f02-8eae-2140997e2280"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_channel_messages_acked_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Messages acknowledged / s",
- "description": "The rate of message acknowledgements coming from consumers that use manual acknowledgement mode.\n\n* [Consumer Acknowledgements](https://www.rabbitmq.com/confirms.html)\n* [Consumer Prefetch](https://www.rabbitmq.com/consumer-prefetch.html)\n* [Consumer Acknowledgement Modes, Prefetch and Throughput](https://www.rabbitmq.com/confirms.html#channel-qos-prefetch-throughput)\n* [Consumers](https://www.rabbitmq.com/consumers.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 0,
- "y": 27,
- "i": "a1184534-3226-4c9a-ba6c-6d5258998518"
- },
- "id": "a1184534-3226-4c9a-ba6c-6d5258998518"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_channel_get_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Polling operations with auto ack / s",
- "description": "The rate of messages delivered to polling consumers that use automatic acknowledgement mode.\n\nThe use of polling consumers is highly inefficient and therefore strongly discouraged.\n\n* [Fetching individual messages](https://www.rabbitmq.com/consumers.html#fetching)\n* [Consumers](https://www.rabbitmq.com/consumers.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 12,
- "y": 27,
- "i": "2f34e8c7-e7fb-4695-afce-034a10081437"
- },
- "id": "2f34e8c7-e7fb-4695-afce-034a10081437"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_channel_get_empty_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Polling operations that yield no result / s",
- "description": "The rate of polling consumer operations that yield no result.\n\nAny value above zero means that RabbitMQ resources are wasted by polling consumers.\n\nCompare this metric to the other polling consumer metrics to see the inefficiency rate.\n\nThe use of polling consumers is highly inefficient and therefore strongly discouraged.\n\n* [Fetching individual messages](https://www.rabbitmq.com/consumers.html#fetching)\n* [Consumers](https://www.rabbitmq.com/consumers.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 0,
- "y": 28,
- "i": "c7b1f4b8-5069-480f-a1f7-1c85dbc389c1"
- },
- "id": "c7b1f4b8-5069-480f-a1f7-1c85dbc389c1"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_channel_get_ack_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Polling operations with manual ack / s",
- "description": "The rate of messages delivered to polling consumers that use manual acknowledgement mode.\n\nThe use of polling consumers is highly inefficient and therefore strongly discouraged.\n\n* [Fetching individual messages](https://www.rabbitmq.com/consumers.html#fetching)\n* [Consumers](https://www.rabbitmq.com/consumers.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 12,
- "y": 28,
- "i": "4c2f60db-3cb4-4926-944c-022cf876eec2"
- },
- "id": "4c2f60db-3cb4-4926-944c-022cf876eec2"
- },
- {
- "id": "b6aa6f06-924f-4575-b4e0-d116ab744ea1",
- "type": "row",
- "name": "QUEUES",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 31,
- "i": "b6aa6f06-924f-4575-b4e0-d116ab744ea1"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rabbitmq_queues * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}"
- }
- ],
- "name": "Total queues",
- "description": "Total number of queue masters per node. \n\nThis metric makes it easy to see sub-optimal queue distribution in a cluster.\n\n* [Queue Masters, Data Locality](https://www.rabbitmq.com/ha.html#master-migration-data-locality)\n* [Queues](https://www.rabbitmq.com/queues.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 0,
- "y": 32,
- "i": "c26434ca-065f-4088-81c6-ef8f0cbca552"
- },
- "id": "c26434ca-065f-4088-81c6-ef8f0cbca552"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_queues_declared_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Queues declared / s",
- "description": "The rate of queue declarations performed by clients.\n\nLow sustained values above zero are to be expected. High rates may be indicative of queue churn or high rates of connection recovery. Confirm connection recovery rates by using the _Connections opened_ metric.\n\n* [Queues](https://www.rabbitmq.com/queues.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 12,
- "y": 32,
- "i": "ff021951-7991-4c3e-a667-8cd11e5c444c"
- },
- "id": "ff021951-7991-4c3e-a667-8cd11e5c444c"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_queues_created_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Queues created / s",
- "description": "The rate of new queues created (as opposed to redeclarations).\n\nLow sustained values above zero are to be expected. High rates may be indicative of queue churn or high rates of connection recovery. Confirm connection recovery rates by using the _Connections opened_ metric.\n\n* [Queues](https://www.rabbitmq.com/queues.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 16,
- "y": 32,
- "i": "00bbb4fc-5cdf-4b29-a440-ff4da4325a0c"
- },
- "id": "00bbb4fc-5cdf-4b29-a440-ff4da4325a0c"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_queues_deleted_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Queues deleted / s",
- "description": "The rate of queues deleted.\n\nLow sustained values above zero are to be expected. High rates may be indicative of queue churn or high rates of connection recovery. Confirm connection recovery rates by using the _Connections opened_ metric.\n\n* [Queues](https://www.rabbitmq.com/queues.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 20,
- "y": 32,
- "i": "f802e41d-14fe-4193-a5cf-c31957b146f7"
- },
- "id": "f802e41d-14fe-4193-a5cf-c31957b146f7"
- },
- {
- "id": "5c7acadf-f9ff-4db9-a284-a206be245733",
- "type": "row",
- "name": "CHANNELS",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 35,
- "i": "5c7acadf-f9ff-4db9-a284-a206be245733"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rabbitmq_channels * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}"
- }
- ],
- "name": "Total channels",
- "description": "Total number of channels on all currently opened connections.\n\nIf this metric grows monotonically it is highly likely a channel leak in one of the applications. Confirm channel leaks by using the _Channels opened_ and _Channels closed_ metrics.\n\n* [Channel Leak](https://www.rabbitmq.com/channels.html#channel-leaks)\n* [Channels](https://www.rabbitmq.com/channels.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 0,
- "y": 36,
- "i": "362c622f-3fd8-4bdd-8dce-7ebf335f42f9"
- },
- "id": "362c622f-3fd8-4bdd-8dce-7ebf335f42f9"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_channels_opened_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Channels opened / s",
- "description": "The rate of new channels opened by applications across all connections. Channels are expected to be long-lived.\n\nLow sustained values above zero are to be expected. High rates may be indicative of channel churn or mass connection recovery. Confirm connection recovery rates by using the _Connections opened_ metric.\n\n* [High Channel Churn](https://www.rabbitmq.com/channels.html#high-channel-churn)\n* [Channels](https://www.rabbitmq.com/channels.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 12,
- "y": 36,
- "i": "3a1a643b-8e2a-4ed1-8621-e5fae3ebc7c2"
- },
- "id": "3a1a643b-8e2a-4ed1-8621-e5fae3ebc7c2"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_channels_closed_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Channels closed / s",
- "description": "The rate of channels closed by applications across all connections. Channels are expected to be long-lived.\n\nLow sustained values above zero are to be expected. High rates may be indicative of channel churn or mass connection recovery. Confirm connection recovery rates by using the _Connections opened_ metric.\n\n* [High Channel Churn](https://www.rabbitmq.com/channels.html#high-channel-churn)\n* [Channels](https://www.rabbitmq.com/channels.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 18,
- "y": 36,
- "i": "01f1771a-dd54-45e5-aa1d-b6ee2111c53b"
- },
- "id": "01f1771a-dd54-45e5-aa1d-b6ee2111c53b"
- },
- {
- "id": "419f22e8-08cc-4d91-8bc9-7c1055368146",
- "type": "row",
- "name": "CONNECTIONS",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 39,
- "i": "419f22e8-08cc-4d91-8bc9-7c1055368146"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_connections_closed_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Connections closed / s",
- "description": "The rate of connections closed. Connections are expected to be long-lived.\n\nLow sustained values above zero are to be expected. High rates may be indicative of connection churn or mass connection recovery.\n\n* [Connections](https://www.rabbitmq.com/connections.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 18,
- "y": 40,
- "i": "c14fd6f4-d3de-4811-82c6-2b20c9146e89"
- },
- "id": "c14fd6f4-d3de-4811-82c6-2b20c9146e89"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rabbitmq_connections * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}"
- }
- ],
- "name": "Total connections",
- "description": "Total number of client connections.\n\nIf this metric grows monotonically it is highly likely a connection leak in one of the applications. Confirm connection leaks by using the _Connections opened_ and _Connections closed_ metrics.\n\n* [Connection Leak](https://www.rabbitmq.com/connections.html#monitoring)\n* [Connections](https://www.rabbitmq.com/connections.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 12,
- "x": 0,
- "y": 40,
- "i": "1d06679b-c603-4cbf-85a7-7c8f4594258f"
- },
- "id": "1d06679b-c603-4cbf-85a7-7c8f4594258f"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(rate(rabbitmq_connections_opened_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)"
- }
- ],
- "name": "Connections opened / s",
- "description": "The rate of new connections opened by clients. Connections are expected to be long-lived.\n\nLow sustained values above zero are to be expected. High rates may be indicative of connection churn or mass connection recovery.\n\n* [Connection Leak](https://www.rabbitmq.com/connections.html#monitoring)\n* [Connections](https://www.rabbitmq.com/connections.html)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 12,
- "y": 40,
- "i": "8c91f7fe-79e9-454a-9dd3-6f214a29e1eb"
- },
- "id": "8c91f7fe-79e9-454a-9dd3-6f214a29e1eb"
- }
- ]
- }
+ "name": "RabbitMQ 3.8+",
+ "tags": "",
+ "ident": "",
+ "configs": {
+ "panels": [
+ {
+ "collapsed": true,
+ "id": "4466a232-248d-45a8-bf4d-05d5139c7346",
+ "layout": {
+ "h": 1,
+ "i": "4466a232-248d-45a8-bf4d-05d5139c7346",
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "name": "Overview",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "background",
+ "textMode": "valueAndName",
+ "textSize": {}
+ },
+ "id": "a20b5d06-4343-457a-89f2-33a52c4dec04",
+ "layout": {
+ "h": 3,
+ "i": "a20b5d06-4343-457a-89f2-33a52c4dec04",
+ "w": 7,
+ "x": 0,
+ "y": 1
+ },
+ "name": "Ready messages",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "from": 10000
+ },
+ "result": {
+ "color": "#4a90e2"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 100000
+ },
+ "result": {
+ "color": "#f50a0a"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "to": 9999
+ },
+ "result": {
+ "color": "#417505"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "sum(rabbitmq_queue_messages_ready * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "background",
+ "textMode": "valueAndName",
+ "textSize": {}
+ },
+ "id": "893409b0-4ca0-450b-a0c9-f48eddf0e243",
+ "layout": {
+ "h": 3,
+ "i": "893409b0-4ca0-450b-a0c9-f48eddf0e243",
+ "w": 5,
+ "x": 7,
+ "y": 1
+ },
+ "name": "Incoming messages / s",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "from": 50
+ },
+ "result": {
+ "color": "#417505"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_channel_messages_published_total[60s]) * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "background",
+ "textMode": "valueAndName",
+ "textSize": {}
+ },
+ "id": "d596e7f0-5095-420e-bc38-674001dcf5f4",
+ "layout": {
+ "h": 3,
+ "i": "d596e7f0-5095-420e-bc38-674001dcf5f4",
+ "w": 4,
+ "x": 12,
+ "y": 1
+ },
+ "name": "Publishers",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "from": 10
+ },
+ "result": {
+ "color": "#417505"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "sum(rabbitmq_channels * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) - sum(rabbitmq_channel_consumers * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "background",
+ "textMode": "valueAndName",
+ "textSize": {}
+ },
+ "id": "9f6d7dee-666d-4e1b-90d0-129b2e5ba085",
+ "layout": {
+ "h": 3,
+ "i": "9f6d7dee-666d-4e1b-90d0-129b2e5ba085",
+ "w": 4,
+ "x": 16,
+ "y": 1
+ },
+ "name": "Connections",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "from": 10
+ },
+ "result": {
+ "color": "#417505"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "sum(rabbitmq_connections * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "background",
+ "textMode": "valueAndName",
+ "textSize": {}
+ },
+ "id": "910eae0f-2b78-4d10-a780-8f997f6e96cb",
+ "layout": {
+ "h": 3,
+ "i": "910eae0f-2b78-4d10-a780-8f997f6e96cb",
+ "w": 4,
+ "x": 20,
+ "y": 1
+ },
+ "name": "Queues",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "from": 10
+ },
+ "result": {
+ "color": "#417505"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "sum(rabbitmq_queues * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "background",
+ "textMode": "valueAndName",
+ "textSize": {}
+ },
+ "id": "2e8cd60f-51b0-46b2-8c0f-bf55604d340d",
+ "layout": {
+ "h": 3,
+ "i": "2e8cd60f-51b0-46b2-8c0f-bf55604d340d",
+ "w": 7,
+ "x": 0,
+ "y": 2
+ },
+ "name": "Unacknowledged messages",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "to": 99
+ },
+ "result": {
+ "color": "#417505"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 100
+ },
+ "result": {
+ "color": "#4a90e2"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 500
+ },
+ "result": {
+ "color": "#d0021b"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "sum(rabbitmq_queue_messages_unacked * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "background",
+ "textMode": "valueAndName",
+ "textSize": {}
+ },
+ "id": "4b242c1e-85d5-48b3-8cce-b467209245ec",
+ "layout": {
+ "h": 3,
+ "i": "4b242c1e-85d5-48b3-8cce-b467209245ec",
+ "w": 5,
+ "x": 7,
+ "y": 2
+ },
+ "name": "Outgoing messages / s",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "from": 50
+ },
+ "result": {
+ "color": "#417505"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_channel_messages_redelivered_total[60s]) * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) +\nsum(rate(rabbitmq_channel_messages_delivered_total[60s]) * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) +\nsum(rate(rabbitmq_channel_messages_delivered_ack_total[60s]) * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) +\nsum(rate(rabbitmq_channel_get_total[60s]) * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) +\nsum(rate(rabbitmq_channel_get_ack_total[60s]) * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "background",
+ "textMode": "valueAndName",
+ "textSize": {}
+ },
+ "id": "b87b1c6b-644a-42f4-915a-bd6857540f70",
+ "layout": {
+ "h": 3,
+ "i": "b87b1c6b-644a-42f4-915a-bd6857540f70",
+ "w": 4,
+ "x": 12,
+ "y": 2
+ },
+ "name": "Consumers",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "from": 10
+ },
+ "result": {
+ "color": "#417505"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "sum(rabbitmq_channel_consumers * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "background",
+ "textMode": "valueAndName",
+ "textSize": {}
+ },
+ "id": "65103bcf-fb21-488d-a06b-7b0ea130ca4d",
+ "layout": {
+ "h": 3,
+ "i": "65103bcf-fb21-488d-a06b-7b0ea130ca4d",
+ "w": 4,
+ "x": 16,
+ "y": 2
+ },
+ "name": "Channels",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "from": 10
+ },
+ "result": {
+ "color": "#417505"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "sum(rabbitmq_channels * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "background",
+ "textMode": "valueAndName",
+ "textSize": {}
+ },
+ "id": "c6454712-e265-4387-ae86-9ac865af46f2",
+ "layout": {
+ "h": 3,
+ "i": "c6454712-e265-4387-ae86-9ac865af46f2",
+ "w": 4,
+ "x": 20,
+ "y": 2
+ },
+ "name": "Nodes",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "from": 3,
+ "to": null
+ },
+ "result": {
+ "color": "#417505"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 8
+ },
+ "result": {
+ "color": "#e70909"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "sum(rabbitmq_build_info * on(instance) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "1712a96f-bcde-4d33-90b6-e2eba20527b9",
+ "layout": {
+ "h": 1,
+ "i": "1712a96f-bcde-4d33-90b6-e2eba20527b9",
+ "w": 24,
+ "x": 0,
+ "y": 5
+ },
+ "name": "Nodes",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "columns": [
+ "rabbitmq_cluster",
+ "rabbitmq_node",
+ "rabbitmq_version",
+ "erlang_version"
+ ],
+ "displayMode": "labelsOfSeriesToRows",
+ "showHeader": true
+ },
+ "id": "1b3fdea0-1921-48ae-b11f-31cc27f816b0",
+ "layout": {
+ "h": 3,
+ "i": "1b3fdea0-1921-48ae-b11f-31cc27f816b0",
+ "w": 24,
+ "x": 0,
+ "y": 6
+ },
+ "name": "nodes",
+ "options": {
+ "standardOptions": {}
+ },
+ "overrides": [
+ {}
+ ],
+ "targets": [
+ {
+ "expr": "rabbitmq_build_info * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "table",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "If the value is zero or less, the memory alarm will be triggered and all publishing connections across all cluster nodes will be blocked.\n\nThis value can temporarily go negative because the memory alarm is triggered with a slight delay.\n\nThe kernel's view of the amount of memory used by the node can differ from what the node itself can observe. This means that this value can be negative for a sustained period of time.\n\nBy default nodes use resident set size (RSS) to compute how much memory they use. This strategy can be changed (see the guides below).\n\n* [Alarms](https://www.rabbitmq.com/alarms.html)\n* [Memory Alarms](https://www.rabbitmq.com/memory.html)\n* [Reasoning About Memory Use](https://www.rabbitmq.com/memory-use.html)\n* [Blocked Connection Notifications](https://www.rabbitmq.com/connection-blocked.html)",
+ "id": "b91068ed-0914-4a8d-91dd-9ffb3b692516",
+ "layout": {
+ "h": 7,
+ "i": "b91068ed-0914-4a8d-91dd-9ffb3b692516",
+ "w": 8,
+ "x": 0,
+ "y": 7
+ },
+ "name": "Memory available before publishers blocked",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "(rabbitmq_resident_memory_limit_bytes * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) -\n(rabbitmq_process_resident_memory_bytes * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "This metric is reported for the partition where the RabbitMQ data directory is stored.\n\nIf the value is zero or less, the disk alarm will be triggered and all publishing connections across all cluster nodes will be blocked.\n\nThis value can temporarily go negative because the free disk space alarm is triggered with a slight delay.\n\n* [Alarms](https://www.rabbitmq.com/alarms.html)\n* [Disk Space Alarms](https://www.rabbitmq.com/disk-alarms.html)\n* [Disk Space](https://www.rabbitmq.com/production-checklist.html#resource-limits-disk-space)\n* [Persistence Configuration](https://www.rabbitmq.com/persistence-conf.html)\n* [Blocked Connection Notifications](https://www.rabbitmq.com/connection-blocked.html)",
+ "id": "a74ca489-6101-49bc-9560-4cde368bc47e",
+ "layout": {
+ "h": 7,
+ "i": "a74ca489-6101-49bc-9560-4cde368bc47e",
+ "w": 8,
+ "x": 8,
+ "y": 7
+ },
+ "name": "Disk space available before publishers blocked",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rabbitmq_disk_space_available_bytes * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "When this value reaches zero, new connections will not be accepted and disk write operations may fail.\n\nClient libraries, peer nodes and CLI tools will not be able to connect when the node runs out of available file descriptors.\n\n* [Open File Handles Limit](https://www.rabbitmq.com/production-checklist.html#resource-limits-file-handle-limit)",
+ "id": "100ed9ae-2b84-4f2b-82b2-0444dd28deed",
+ "layout": {
+ "h": 3,
+ "i": "100ed9ae-2b84-4f2b-82b2-0444dd28deed",
+ "w": 8,
+ "x": 16,
+ "y": 7
+ },
+ "name": "File descriptors available",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "(rabbitmq_process_max_fds * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) -\n(rabbitmq_process_open_fds * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "When this value reaches zero, new connections will not be accepted.\n\nClient libraries, peer nodes and CLI tools will not be able to connect when the node runs out of available file descriptors.\n\n* [Networking and RabbitMQ](https://www.rabbitmq.com/networking.html)",
+ "id": "a4859891-2538-47fc-946b-7ae3aa507c51",
+ "layout": {
+ "h": 3,
+ "i": "a4859891-2538-47fc-946b-7ae3aa507c51",
+ "w": 8,
+ "x": 16,
+ "y": 8
+ },
+ "name": "TCP sockets available",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "(rabbitmq_process_max_tcp_sockets * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) -\n(rabbitmq_process_open_tcp_sockets * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "fec98a71-0615-4782-bf8d-960529e243f9",
+ "layout": {
+ "h": 1,
+ "i": "fec98a71-0615-4782-bf8d-960529e243f9",
+ "w": 24,
+ "x": 0,
+ "y": 14
+ },
+ "name": "QUEUED MESSAGES",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "Total number of ready messages ready to be delivered to consumers.\n\nAim to keep this value as low as possible. RabbitMQ behaves best when messages are flowing through it. It's OK for publishers to occasionally outpace consumers, but the expectation is that consumers will eventually process all ready messages.\n\nIf this metric keeps increasing, your system will eventually run out of memory and/or disk space. Consider using TTL or Queue Length Limit to prevent unbounded message growth.\n\n* [Queues](https://www.rabbitmq.com/queues.html)\n* [Consumers](https://www.rabbitmq.com/consumers.html)\n* [Queue Length Limit](https://www.rabbitmq.com/maxlength.html)\n* [Time-To-Live and Expiration](https://www.rabbitmq.com/ttl.html)",
+ "id": "145dc75a-d3b8-491f-9ba6-6da787c8e265",
+ "layout": {
+ "h": 3,
+ "i": "145dc75a-d3b8-491f-9ba6-6da787c8e265",
+ "w": 12,
+ "x": 0,
+ "y": 15
+ },
+ "name": "Messages ready to be delivered to consumers",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rabbitmq_queue_messages_ready * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The total number of messages that are either in-flight to consumers, currently being processed by consumers or simply waiting for the consumer acknowledgements to be processed by the queue. Until the queue processes the message acknowledgement, the message will remain unacknowledged.\n\n* [Queues](https://www.rabbitmq.com/queues.html)\n* [Confirms and Acknowledgements](https://www.rabbitmq.com/confirms.html)\n* [Consumer Prefetch](https://www.rabbitmq.com/consumer-prefetch.html)",
+ "id": "a6ca328a-8b19-488e-a70d-74372f994901",
+ "layout": {
+ "h": 3,
+ "i": "a6ca328a-8b19-488e-a70d-74372f994901",
+ "w": 12,
+ "x": 12,
+ "y": 15
+ },
+ "name": "Messages pending consumer acknowledgement",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rabbitmq_queue_messages_unacked * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "500c51ed-a0d6-41d9-903f-d000e289dc2b",
+ "layout": {
+ "h": 1,
+ "i": "500c51ed-a0d6-41d9-903f-d000e289dc2b",
+ "w": 24,
+ "x": 0,
+ "y": 18
+ },
+ "name": "INCOMING MESSAGES",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The incoming message rate before any routing rules are applied.\n\nIf this value is lower than the number of messages published to queues, it may indicate that some messages are delivered to more than one queue.\n\nIf this value is higher than the number of messages published to queues, messages cannot be routed and will either be dropped or returned to publishers.\n\n* [Publishers](https://www.rabbitmq.com/publishers.html)",
+ "id": "ef4352a4-c281-4596-b89e-d79a565ca112",
+ "layout": {
+ "h": 3,
+ "i": "ef4352a4-c281-4596-b89e-d79a565ca112",
+ "w": 12,
+ "x": 0,
+ "y": 19
+ },
+ "name": "Messages published / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_channel_messages_published_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of messages confirmed by the broker to publishers. Publishers must opt-in to receive message confirmations.\n\nIf this metric is consistently at zero it may suggest that publisher confirms are not used by clients. The safety of published messages is likely to be at risk.\n\n* [Publisher Confirms](https://www.rabbitmq.com/confirms.html#publisher-confirms)\n* [Publisher Confirms and Data Safety](https://www.rabbitmq.com/publishers.html#data-safety)\n* [When Will Published Messages Be Confirmed by the Broker?](https://www.rabbitmq.com/confirms.html#when-publishes-are-confirmed)",
+ "id": "f0932549-d4a7-4eb1-a86e-35eb49569f29",
+ "layout": {
+ "h": 3,
+ "i": "f0932549-d4a7-4eb1-a86e-35eb49569f29",
+ "w": 12,
+ "x": 12,
+ "y": 19
+ },
+ "name": "Messages confirmed to publishers / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_channel_messages_confirmed_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of messages received from publishers and successfully routed to the master queue replicas.\n\n* [Queues](https://www.rabbitmq.com/queues.html)\n* [Publishers](https://www.rabbitmq.com/publishers.html)",
+ "id": "f47766cb-3cdb-4f67-896f-77af421ff404",
+ "layout": {
+ "h": 3,
+ "i": "f47766cb-3cdb-4f67-896f-77af421ff404",
+ "w": 12,
+ "x": 0,
+ "y": 20
+ },
+ "name": "Messages routed to queues / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_queue_messages_published_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of messages received from publishers that have publisher confirms enabled and the broker has not confirmed yet.\n\n* [Publishers](https://www.rabbitmq.com/publishers.html)\n* [Confirms and Acknowledgements](https://www.rabbitmq.com/confirms.html)\n* [When Will Published Messages Be Confirmed by the Broker?](https://www.rabbitmq.com/confirms.html#when-publishes-are-confirmed)",
+ "id": "644302ba-3c99-4787-8023-93770b0a9e6c",
+ "layout": {
+ "h": 3,
+ "i": "644302ba-3c99-4787-8023-93770b0a9e6c",
+ "w": 12,
+ "x": 12,
+ "y": 20
+ },
+ "name": "Messages unconfirmed to publishers / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_channel_messages_unconfirmed[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of messages that cannot be routed and are dropped. \n\nAny value above zero means message loss and likely suggests a routing problem on the publisher end.\n\n* [Unroutable Message Handling](https://www.rabbitmq.com/publishers.html#unroutable)",
+ "id": "0a3eadfd-d84c-4070-9527-b4c62fc20787",
+ "layout": {
+ "h": 3,
+ "i": "0a3eadfd-d84c-4070-9527-b4c62fc20787",
+ "w": 12,
+ "x": 0,
+ "y": 21
+ },
+ "name": "Unroutable messages dropped / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_channel_messages_unroutable_dropped_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of messages that cannot be routed and are returned back to publishers.\n\nSustained values above zero may indicate a routing problem on the publisher end.\n\n* [Unroutable Message Handling](https://www.rabbitmq.com/publishers.html#unroutable)\n* [When Will Published Messages Be Confirmed by the Broker?](https://www.rabbitmq.com/confirms.html#when-publishes-are-confirmed)",
+ "id": "a14e8796-9614-4204-b5b8-5d1a47f356d8",
+ "layout": {
+ "h": 3,
+ "i": "a14e8796-9614-4204-b5b8-5d1a47f356d8",
+ "w": 12,
+ "x": 12,
+ "y": 21
+ },
+ "name": "Unroutable messages returned to publishers / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_channel_messages_unroutable_returned_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "2405258c-c08f-4e49-960a-5c9a12b29f12",
+ "layout": {
+ "h": 1,
+ "i": "2405258c-c08f-4e49-960a-5c9a12b29f12",
+ "w": 24,
+ "x": 0,
+ "y": 24
+ },
+ "name": "OUTGOING MESSAGES",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of messages delivered to consumers. It includes messages that have been redelivered.\n\nThis metric does not include messages that have been fetched by consumers using `basic.get` (consumed by polling).\n\n* [Consumers](https://www.rabbitmq.com/consumers.html)",
+ "id": "be0f1872-172c-4bc3-a901-4b645ebf5abe",
+ "layout": {
+ "h": 3,
+ "i": "be0f1872-172c-4bc3-a901-4b645ebf5abe",
+ "w": 12,
+ "x": 0,
+ "y": 25
+ },
+ "name": "Messages delivered / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(\n (rate(rabbitmq_channel_messages_delivered_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) +\n (rate(rabbitmq_channel_messages_delivered_ack_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"})\n) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of messages that have been redelivered to consumers. It includes messages that have been requeued automatically and redelivered due to channel exceptions or connection closures.\n\nHaving some redeliveries is expected, but if this metric is consistently non-zero, it is worth investigating why.\n\n* [Negative Acknowledgement and Requeuing of Deliveries](https://www.rabbitmq.com/confirms.html#consumer-nacks-requeue)\n* [Consumers](https://www.rabbitmq.com/consumers.html)",
+ "id": "eff794ca-e844-4a12-b230-690aadefa53f",
+ "layout": {
+ "h": 3,
+ "i": "eff794ca-e844-4a12-b230-690aadefa53f",
+ "w": 12,
+ "x": 12,
+ "y": 25
+ },
+ "name": "Messages redelivered / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_channel_messages_redelivered_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of message deliveries to consumers that use manual acknowledgement mode.\n\nWhen this mode is used, RabbitMQ waits for consumers to acknowledge messages before more messages can be delivered.\n\nThis is the safest way of consuming messages.\n\n* [Consumer Acknowledgements](https://www.rabbitmq.com/confirms.html)\n* [Consumer Prefetch](https://www.rabbitmq.com/consumer-prefetch.html)\n* [Consumer Acknowledgement Modes, Prefetch and Throughput](https://www.rabbitmq.com/confirms.html#channel-qos-prefetch-throughput)\n* [Consumers](https://www.rabbitmq.com/consumers.html)",
+ "id": "2ed4be63-4fe9-462f-bc2f-967319bc3626",
+ "layout": {
+ "h": 3,
+ "i": "2ed4be63-4fe9-462f-bc2f-967319bc3626",
+ "w": 12,
+ "x": 0,
+ "y": 26
+ },
+ "name": "Messages delivered with manual ack / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_channel_messages_delivered_ack_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of message deliveries to consumers that use automatic acknowledgement mode.\n\nWhen this mode is used, RabbitMQ does not wait for consumers to acknowledge message deliveries.\n\nThis mode is fire-and-forget and does not offer any delivery safety guarantees. It tends to provide higher throughput and it may lead to consumer overload and higher consumer memory usage.\n\n* [Consumer Acknowledgement Modes, Prefetch and Throughput](https://www.rabbitmq.com/confirms.html#channel-qos-prefetch-throughput)\n* [Consumers](https://www.rabbitmq.com/consumers.html)",
+ "id": "116c44e0-c8e1-4f02-8eae-2140997e2280",
+ "layout": {
+ "h": 3,
+ "i": "116c44e0-c8e1-4f02-8eae-2140997e2280",
+ "w": 12,
+ "x": 12,
+ "y": 26
+ },
+ "name": "Messages delivered auto ack / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_channel_messages_delivered_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of message acknowledgements coming from consumers that use manual acknowledgement mode.\n\n* [Consumer Acknowledgements](https://www.rabbitmq.com/confirms.html)\n* [Consumer Prefetch](https://www.rabbitmq.com/consumer-prefetch.html)\n* [Consumer Acknowledgement Modes, Prefetch and Throughput](https://www.rabbitmq.com/confirms.html#channel-qos-prefetch-throughput)\n* [Consumers](https://www.rabbitmq.com/consumers.html)",
+ "id": "a1184534-3226-4c9a-ba6c-6d5258998518",
+ "layout": {
+ "h": 3,
+ "i": "a1184534-3226-4c9a-ba6c-6d5258998518",
+ "w": 12,
+ "x": 0,
+ "y": 27
+ },
+ "name": "Messages acknowledged / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_channel_messages_acked_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of messages delivered to polling consumers that use automatic acknowledgement mode.\n\nThe use of polling consumers is highly inefficient and therefore strongly discouraged.\n\n* [Fetching individual messages](https://www.rabbitmq.com/consumers.html#fetching)\n* [Consumers](https://www.rabbitmq.com/consumers.html)",
+ "id": "2f34e8c7-e7fb-4695-afce-034a10081437",
+ "layout": {
+ "h": 3,
+ "i": "2f34e8c7-e7fb-4695-afce-034a10081437",
+ "w": 12,
+ "x": 12,
+ "y": 27
+ },
+ "name": "Polling operations with auto ack / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_channel_get_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of polling consumer operations that yield no result.\n\nAny value above zero means that RabbitMQ resources are wasted by polling consumers.\n\nCompare this metric to the other polling consumer metrics to see the inefficiency rate.\n\nThe use of polling consumers is highly inefficient and therefore strongly discouraged.\n\n* [Fetching individual messages](https://www.rabbitmq.com/consumers.html#fetching)\n* [Consumers](https://www.rabbitmq.com/consumers.html)",
+ "id": "c7b1f4b8-5069-480f-a1f7-1c85dbc389c1",
+ "layout": {
+ "h": 3,
+ "i": "c7b1f4b8-5069-480f-a1f7-1c85dbc389c1",
+ "w": 12,
+ "x": 0,
+ "y": 28
+ },
+ "name": "Polling operations that yield no result / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_channel_get_empty_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of messages delivered to polling consumers that use manual acknowledgement mode.\n\nThe use of polling consumers is highly inefficient and therefore strongly discouraged.\n\n* [Fetching individual messages](https://www.rabbitmq.com/consumers.html#fetching)\n* [Consumers](https://www.rabbitmq.com/consumers.html)",
+ "id": "4c2f60db-3cb4-4926-944c-022cf876eec2",
+ "layout": {
+ "h": 3,
+ "i": "4c2f60db-3cb4-4926-944c-022cf876eec2",
+ "w": 12,
+ "x": 12,
+ "y": 28
+ },
+ "name": "Polling operations with manual ack / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_channel_get_ack_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "b6aa6f06-924f-4575-b4e0-d116ab744ea1",
+ "layout": {
+ "h": 1,
+ "i": "b6aa6f06-924f-4575-b4e0-d116ab744ea1",
+ "w": 24,
+ "x": 0,
+ "y": 31
+ },
+ "name": "QUEUES",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "Total number of queue masters per node. \n\nThis metric makes it easy to see sub-optimal queue distribution in a cluster.\n\n* [Queue Masters, Data Locality](https://www.rabbitmq.com/ha.html#master-migration-data-locality)\n* [Queues](https://www.rabbitmq.com/queues.html)",
+ "id": "c26434ca-065f-4088-81c6-ef8f0cbca552",
+ "layout": {
+ "h": 3,
+ "i": "c26434ca-065f-4088-81c6-ef8f0cbca552",
+ "w": 12,
+ "x": 0,
+ "y": 32
+ },
+ "name": "Total queues",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rabbitmq_queues * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of queue declarations performed by clients.\n\nLow sustained values above zero are to be expected. High rates may be indicative of queue churn or high rates of connection recovery. Confirm connection recovery rates by using the _Connections opened_ metric.\n\n* [Queues](https://www.rabbitmq.com/queues.html)",
+ "id": "ff021951-7991-4c3e-a667-8cd11e5c444c",
+ "layout": {
+ "h": 3,
+ "i": "ff021951-7991-4c3e-a667-8cd11e5c444c",
+ "w": 4,
+ "x": 12,
+ "y": 32
+ },
+ "name": "Queues declared / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_queues_declared_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of new queues created (as opposed to redeclarations).\n\nLow sustained values above zero are to be expected. High rates may be indicative of queue churn or high rates of connection recovery. Confirm connection recovery rates by using the _Connections opened_ metric.\n\n* [Queues](https://www.rabbitmq.com/queues.html)",
+ "id": "00bbb4fc-5cdf-4b29-a440-ff4da4325a0c",
+ "layout": {
+ "h": 3,
+ "i": "00bbb4fc-5cdf-4b29-a440-ff4da4325a0c",
+ "w": 4,
+ "x": 16,
+ "y": 32
+ },
+ "name": "Queues created / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_queues_created_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of queues deleted.\n\nLow sustained values above zero are to be expected. High rates may be indicative of queue churn or high rates of connection recovery. Confirm connection recovery rates by using the _Connections opened_ metric.\n\n* [Queues](https://www.rabbitmq.com/queues.html)",
+ "id": "f802e41d-14fe-4193-a5cf-c31957b146f7",
+ "layout": {
+ "h": 3,
+ "i": "f802e41d-14fe-4193-a5cf-c31957b146f7",
+ "w": 4,
+ "x": 20,
+ "y": 32
+ },
+ "name": "Queues deleted / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_queues_deleted_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "5c7acadf-f9ff-4db9-a284-a206be245733",
+ "layout": {
+ "h": 1,
+ "i": "5c7acadf-f9ff-4db9-a284-a206be245733",
+ "w": 24,
+ "x": 0,
+ "y": 35
+ },
+ "name": "CHANNELS",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "Total number of channels on all currently opened connections.\n\nIf this metric grows monotonically it is highly likely a channel leak in one of the applications. Confirm channel leaks by using the _Channels opened_ and _Channels closed_ metrics.\n\n* [Channel Leak](https://www.rabbitmq.com/channels.html#channel-leaks)\n* [Channels](https://www.rabbitmq.com/channels.html)",
+ "id": "362c622f-3fd8-4bdd-8dce-7ebf335f42f9",
+ "layout": {
+ "h": 3,
+ "i": "362c622f-3fd8-4bdd-8dce-7ebf335f42f9",
+ "w": 12,
+ "x": 0,
+ "y": 36
+ },
+ "name": "Total channels",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rabbitmq_channels * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of new channels opened by applications across all connections. Channels are expected to be long-lived.\n\nLow sustained values above zero are to be expected. High rates may be indicative of channel churn or mass connection recovery. Confirm connection recovery rates by using the _Connections opened_ metric.\n\n* [High Channel Churn](https://www.rabbitmq.com/channels.html#high-channel-churn)\n* [Channels](https://www.rabbitmq.com/channels.html)",
+ "id": "3a1a643b-8e2a-4ed1-8621-e5fae3ebc7c2",
+ "layout": {
+ "h": 3,
+ "i": "3a1a643b-8e2a-4ed1-8621-e5fae3ebc7c2",
+ "w": 6,
+ "x": 12,
+ "y": 36
+ },
+ "name": "Channels opened / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_channels_opened_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of channels closed by applications across all connections. Channels are expected to be long-lived.\n\nLow sustained values above zero are to be expected. High rates may be indicative of channel churn or mass connection recovery. Confirm connection recovery rates by using the _Connections opened_ metric.\n\n* [High Channel Churn](https://www.rabbitmq.com/channels.html#high-channel-churn)\n* [Channels](https://www.rabbitmq.com/channels.html)",
+ "id": "01f1771a-dd54-45e5-aa1d-b6ee2111c53b",
+ "layout": {
+ "h": 3,
+ "i": "01f1771a-dd54-45e5-aa1d-b6ee2111c53b",
+ "w": 6,
+ "x": 18,
+ "y": 36
+ },
+ "name": "Channels closed / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_channels_closed_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "419f22e8-08cc-4d91-8bc9-7c1055368146",
+ "layout": {
+ "h": 1,
+ "i": "419f22e8-08cc-4d91-8bc9-7c1055368146",
+ "w": 24,
+ "x": 0,
+ "y": 39
+ },
+ "name": "CONNECTIONS",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of connections closed. Connections are expected to be long-lived.\n\nLow sustained values above zero are to be expected. High rates may be indicative of connection churn or mass connection recovery.\n\n* [Connections](https://www.rabbitmq.com/connections.html)",
+ "id": "c14fd6f4-d3de-4811-82c6-2b20c9146e89",
+ "layout": {
+ "h": 3,
+ "i": "c14fd6f4-d3de-4811-82c6-2b20c9146e89",
+ "w": 6,
+ "x": 18,
+ "y": 40
+ },
+ "name": "Connections closed / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_connections_closed_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "Total number of client connections.\n\nIf this metric grows monotonically it is highly likely a connection leak in one of the applications. Confirm connection leaks by using the _Connections opened_ and _Connections closed_ metrics.\n\n* [Connection Leak](https://www.rabbitmq.com/connections.html#monitoring)\n* [Connections](https://www.rabbitmq.com/connections.html)",
+ "id": "1d06679b-c603-4cbf-85a7-7c8f4594258f",
+ "layout": {
+ "h": 3,
+ "i": "1d06679b-c603-4cbf-85a7-7c8f4594258f",
+ "w": 12,
+ "x": 0,
+ "y": 40
+ },
+ "name": "Total connections",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rabbitmq_connections * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "The rate of new connections opened by clients. Connections are expected to be long-lived.\n\nLow sustained values above zero are to be expected. High rates may be indicative of connection churn or mass connection recovery.\n\n* [Connection Leak](https://www.rabbitmq.com/connections.html#monitoring)\n* [Connections](https://www.rabbitmq.com/connections.html)",
+ "id": "8c91f7fe-79e9-454a-9dd3-6f214a29e1eb",
+ "layout": {
+ "h": 3,
+ "i": "8c91f7fe-79e9-454a-9dd3-6f214a29e1eb",
+ "w": 6,
+ "x": 12,
+ "y": 40
+ },
+ "name": "Connections opened / s",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(rabbitmq_connections_opened_total[60s]) * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$rabbitmq_cluster\"}) by(rabbitmq_node)",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "label_values(rabbitmq_identity_info, rabbitmq_cluster)",
+ "name": "rabbitmq_cluster",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ }
+ ],
+ "version": "3.0.0"
+ }
}
\ No newline at end of file
diff --git a/docker/integrations/redis/dashboards/redis_by_categraf.json b/docker/integrations/redis/dashboards/redis_by_categraf.json
index 1f44d00fed1c00d50f8262877b62efb384d8929e..7b3638d629d08f71857d5ccb61200071c9e154d4 100644
--- a/docker/integrations/redis/dashboards/redis_by_categraf.json
+++ b/docker/integrations/redis/dashboards/redis_by_categraf.json
@@ -1,478 +1,510 @@
{
- "name": "Redis Overview - categraf",
- "tags": "Redis Prometheus",
- "ident": "",
- "configs": {
- "var": [
- {
- "name": "instance",
- "definition": "label_values(redis_uptime_in_seconds,instance)",
- "selected": "10.206.0.16:6379"
- }
- ],
- "version": "2.0.0",
- "panels": [
- {
- "id": "2ecb82c6-4d1a-41b5-8cdc-0284db16bd54",
- "type": "row",
- "name": "Basic Info",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0,
- "i": "2ecb82c6-4d1a-41b5-8cdc-0284db16bd54"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "min(redis_uptime_in_seconds{instance=~\"$instance\"})"
- }
- ],
- "name": "Redis Uptime",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {
- "util": "humantimeSeconds"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 0,
- "y": 1,
- "i": "b5acc352-a2bd-4afc-b6cd-d6db0905f807"
- },
- "id": "b5acc352-a2bd-4afc-b6cd-d6db0905f807"
- },
- {
- "targets": [
- {
- "expr": "sum(redis_connected_clients{instance=~\"$instance\"})"
- }
- ],
- "name": "Connected Clients",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 6,
- "y": 1,
- "i": "8ccada5e-02f3-4efc-9b36-2a367612e4cb"
- },
- "id": "8ccada5e-02f3-4efc-9b36-2a367612e4cb"
- },
- {
- "targets": [
- {
- "expr": "redis_used_memory{instance=~\"$instance\"}"
- }
- ],
- "name": "Memory Used",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "to": 128000000
- },
- "result": {
- "color": "#079e05"
- }
- },
- {
- "type": "range",
- "match": {
- "from": 128000000
- },
- "result": {
- "color": "#f10909"
- }
- }
- ],
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 0
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 12,
- "y": 1,
- "i": "716dc7e7-c9ec-4195-93f6-db1c572ae8b0"
- },
- "id": "716dc7e7-c9ec-4195-93f6-db1c572ae8b0"
- },
- {
- "targets": [
- {
- "expr": "redis_maxmemory{instance=~\"$instance\"}"
- }
- ],
- "name": "Max Memory Limit",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {
- "util": "bytesIEC"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 18,
- "y": 1,
- "i": "c6948161-db07-42df-beb1-765ee9c071a9"
- },
- "id": "c6948161-db07-42df-beb1-765ee9c071a9"
- },
- {
- "id": "bd54cf4f-1abb-4945-8aab-f89aec16daef",
- "type": "row",
- "name": "Commands",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 4,
- "i": "bd54cf4f-1abb-4945-8aab-f89aec16daef"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "rate(redis_total_commands_processed{instance=~\"$instance\"}[5m])"
- }
- ],
- "name": "Commands Executed / sec",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 5,
- "i": "3d5f8c4e-0ddf-4d68-9f6d-2cc57d864a8e"
- },
- "id": "3d5f8c4e-0ddf-4d68-9f6d-2cc57d864a8e"
- },
- {
- "targets": [
- {
- "expr": "irate(redis_keyspace_hits{instance=~\"$instance\"}[5m])",
- "legend": "hits"
- },
- {
- "expr": "irate(redis_keyspace_misses{instance=~\"$instance\"}[5m])",
- "legend": "misses"
- }
- ],
- "name": "Hits / Misses per Sec",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "noraml"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 8,
- "y": 5,
- "i": "344a874d-c34d-4d2d-9bb4-46e0912cd9f5"
- },
- "id": "344a874d-c34d-4d2d-9bb4-46e0912cd9f5"
- },
- {
- "targets": [
- {
- "expr": "topk(5, irate(redis_cmdstat_calls{instance=~\"$instance\"} [1m]))",
- "legend": "{{command}}"
- }
- ],
- "name": "Top Commands",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 5,
- "i": "3c83cd35-585c-4070-a210-1f17345f13f4"
- },
- "id": "3c83cd35-585c-4070-a210-1f17345f13f4"
- },
- {
- "id": "1ea61073-a46d-4d7c-b072-fcdcbc5ac084",
- "type": "row",
- "name": "Keys",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 12,
- "i": "1ea61073-a46d-4d7c-b072-fcdcbc5ac084"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "sum (redis_keyspace_keys{instance=~\"$instance\"}) by (db)",
- "legend": "{{db}}"
- }
- ],
- "name": "Total Items per DB",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 13,
- "i": "b2b4451c-4f8a-438a-8c48-69c95c68361e"
- },
- "id": "b2b4451c-4f8a-438a-8c48-69c95c68361e"
- },
- {
- "targets": [
- {
- "expr": "sum(rate(redis_expired_keys{instance=~\"$instance\"}[5m])) by (instance)",
- "legend": "expired"
- },
- {
- "expr": "sum(rate(redis_evicted_keys{instance=~\"$instance\"}[5m])) by (instance)",
- "legend": "evicted"
- }
- ],
- "name": "Expired / Evicted",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 8,
- "y": 13,
- "i": "894b9beb-e764-441c-ae04-13e5dbbb901d"
- },
- "id": "894b9beb-e764-441c-ae04-13e5dbbb901d"
- },
- {
- "targets": [
- {
- "expr": "sum(redis_keyspace_keys{instance=~\"$instance\"}) - sum(redis_keyspace_expires{instance=~\"$instance\"}) ",
- "legend": "not expiring"
- },
- {
- "expr": "sum(redis_keyspace_expires{instance=~\"$instance\"}) ",
- "legend": "expiring"
- }
- ],
- "name": "Expiring vs Not-Expiring Keys",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "noraml"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 13,
- "i": "f721a641-28c7-4e82-a37c-ec17704a0c57"
- },
- "id": "f721a641-28c7-4e82-a37c-ec17704a0c57"
- },
- {
- "id": "60ff41ed-9d41-40ee-a13b-c968f3ca49d0",
- "type": "row",
- "name": "Network",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 20,
- "i": "60ff41ed-9d41-40ee-a13b-c968f3ca49d0"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "sum(rate(redis_total_net_input_bytes{instance=~\"$instance\"}[5m]))",
- "legend": "input"
- },
- {
- "expr": "sum(rate(redis_total_net_output_bytes{instance=~\"$instance\"}[5m]))",
- "legend": "output"
- }
- ],
- "name": "Network I/O",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 2
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 21,
- "i": "1841950c-e867-4a62-b846-78754dc0e34d"
- },
- "id": "1841950c-e867-4a62-b846-78754dc0e34d"
- }
- ]
- }
+ "name": "Redis Overview - categraf",
+ "tags": "Redis Prometheus",
+ "ident": "",
+ "configs": {
+ "panels": [
+ {
+ "collapsed": true,
+ "id": "2ecb82c6-4d1a-41b5-8cdc-0284db16bd54",
+ "layout": {
+ "h": 1,
+ "i": "2ecb82c6-4d1a-41b5-8cdc-0284db16bd54",
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "name": "Basic Info",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "b5acc352-a2bd-4afc-b6cd-d6db0905f807",
+ "layout": {
+ "h": 3,
+ "i": "b5acc352-a2bd-4afc-b6cd-d6db0905f807",
+ "w": 6,
+ "x": 0,
+ "y": 1
+ },
+ "name": "Redis Uptime",
+ "options": {
+ "standardOptions": {
+ "util": "humantimeSeconds"
+ }
+ },
+ "targets": [
+ {
+ "expr": "min(redis_uptime_in_seconds{instance=~\"$instance\"})"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "8ccada5e-02f3-4efc-9b36-2a367612e4cb",
+ "layout": {
+ "h": 3,
+ "i": "8ccada5e-02f3-4efc-9b36-2a367612e4cb",
+ "w": 6,
+ "x": 6,
+ "y": 1
+ },
+ "name": "Connected Clients",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "sum(redis_connected_clients{instance=~\"$instance\"})"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "716dc7e7-c9ec-4195-93f6-db1c572ae8b0",
+ "layout": {
+ "h": 3,
+ "i": "716dc7e7-c9ec-4195-93f6-db1c572ae8b0",
+ "w": 6,
+ "x": 12,
+ "y": 1
+ },
+ "name": "Memory Used",
+ "options": {
+ "standardOptions": {
+ "decimals": 0,
+ "util": "bytesIEC"
+ },
+ "valueMappings": [
+ {
+ "match": {
+ "to": 128000000
+ },
+ "result": {
+ "color": "#079e05"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 128000000
+ },
+ "result": {
+ "color": "#f10909"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "redis_used_memory{instance=~\"$instance\"}"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "c6948161-db07-42df-beb1-765ee9c071a9",
+ "layout": {
+ "h": 3,
+ "i": "c6948161-db07-42df-beb1-765ee9c071a9",
+ "w": 6,
+ "x": 18,
+ "y": 1
+ },
+ "name": "Max Memory Limit",
+ "options": {
+ "standardOptions": {
+ "util": "bytesIEC"
+ }
+ },
+ "targets": [
+ {
+ "expr": "redis_maxmemory{instance=~\"$instance\"}"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "bd54cf4f-1abb-4945-8aab-f89aec16daef",
+ "layout": {
+ "h": 1,
+ "i": "bd54cf4f-1abb-4945-8aab-f89aec16daef",
+ "w": 24,
+ "x": 0,
+ "y": 4
+ },
+ "name": "Commands",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "3d5f8c4e-0ddf-4d68-9f6d-2cc57d864a8e",
+ "layout": {
+ "h": 7,
+ "i": "3d5f8c4e-0ddf-4d68-9f6d-2cc57d864a8e",
+ "w": 8,
+ "x": 0,
+ "y": 5
+ },
+ "name": "Commands Executed / sec",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(redis_total_commands_processed{instance=~\"$instance\"}[5m])"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "noraml"
+ },
+ "id": "344a874d-c34d-4d2d-9bb4-46e0912cd9f5",
+ "layout": {
+ "h": 7,
+ "i": "344a874d-c34d-4d2d-9bb4-46e0912cd9f5",
+ "w": 8,
+ "x": 8,
+ "y": 5
+ },
+ "name": "Hits / Misses per Sec",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(redis_keyspace_hits{instance=~\"$instance\"}[5m])",
+ "legend": "hits"
+ },
+ {
+ "expr": "irate(redis_keyspace_misses{instance=~\"$instance\"}[5m])",
+ "legend": "misses"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "3c83cd35-585c-4070-a210-1f17345f13f4",
+ "layout": {
+ "h": 7,
+ "i": "3c83cd35-585c-4070-a210-1f17345f13f4",
+ "w": 8,
+ "x": 16,
+ "y": 5
+ },
+ "name": "Top Commands",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5, irate(redis_cmdstat_calls{instance=~\"$instance\"} [1m]))",
+ "legend": "{{command}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "1ea61073-a46d-4d7c-b072-fcdcbc5ac084",
+ "layout": {
+ "h": 1,
+ "i": "1ea61073-a46d-4d7c-b072-fcdcbc5ac084",
+ "w": 24,
+ "x": 0,
+ "y": 12
+ },
+ "name": "Keys",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "b2b4451c-4f8a-438a-8c48-69c95c68361e",
+ "layout": {
+ "h": 7,
+ "i": "b2b4451c-4f8a-438a-8c48-69c95c68361e",
+ "w": 8,
+ "x": 0,
+ "y": 13
+ },
+ "name": "Total Items per DB",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum (redis_keyspace_keys{instance=~\"$instance\"}) by (db)",
+ "legend": "{{db}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "894b9beb-e764-441c-ae04-13e5dbbb901d",
+ "layout": {
+ "h": 7,
+ "i": "894b9beb-e764-441c-ae04-13e5dbbb901d",
+ "w": 8,
+ "x": 8,
+ "y": 13
+ },
+ "name": "Expired / Evicted",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(redis_expired_keys{instance=~\"$instance\"}[5m])) by (instance)",
+ "legend": "expired"
+ },
+ {
+ "expr": "sum(rate(redis_evicted_keys{instance=~\"$instance\"}[5m])) by (instance)",
+ "legend": "evicted"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "noraml"
+ },
+ "id": "f721a641-28c7-4e82-a37c-ec17704a0c57",
+ "layout": {
+ "h": 7,
+ "i": "f721a641-28c7-4e82-a37c-ec17704a0c57",
+ "w": 8,
+ "x": 16,
+ "y": 13
+ },
+ "name": "Expiring vs Not-Expiring Keys",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(redis_keyspace_keys{instance=~\"$instance\"}) - sum(redis_keyspace_expires{instance=~\"$instance\"}) ",
+ "legend": "not expiring"
+ },
+ {
+ "expr": "sum(redis_keyspace_expires{instance=~\"$instance\"}) ",
+ "legend": "expiring"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "60ff41ed-9d41-40ee-a13b-c968f3ca49d0",
+ "layout": {
+ "h": 1,
+ "i": "60ff41ed-9d41-40ee-a13b-c968f3ca49d0",
+ "w": 24,
+ "x": 0,
+ "y": 20
+ },
+ "name": "Network",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "1841950c-e867-4a62-b846-78754dc0e34d",
+ "layout": {
+ "h": 7,
+ "i": "1841950c-e867-4a62-b846-78754dc0e34d",
+ "w": 24,
+ "x": 0,
+ "y": 21
+ },
+ "name": "Network I/O",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 2,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(redis_total_net_input_bytes{instance=~\"$instance\"}[5m]))",
+ "legend": "input"
+ },
+ {
+ "expr": "sum(rate(redis_total_net_output_bytes{instance=~\"$instance\"}[5m]))",
+ "legend": "output"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "label_values(redis_uptime_in_seconds,instance)",
+ "name": "instance",
+ "selected": "10.206.0.16:6379",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ }
+ ],
+ "version": "3.0.0"
+ }
}
\ No newline at end of file
diff --git a/docker/integrations/redis/dashboards/redis_by_exporter.json b/docker/integrations/redis/dashboards/redis_by_exporter.json
index 993b4509385031e7f4cc32f2e03ce0cac2dfa58a..891637bb19629d5bbc8d3e59ba04af496136ad42 100644
--- a/docker/integrations/redis/dashboards/redis_by_exporter.json
+++ b/docker/integrations/redis/dashboards/redis_by_exporter.json
@@ -1,478 +1,510 @@
{
- "name": "Redis Overview - exporter",
- "tags": "Redis Prometheus",
- "ident": "",
- "configs": {
- "var": [
- {
- "name": "instance",
- "definition": "label_values(redis_uptime_in_seconds,instance)",
- "selected": "10.206.0.16:6379"
- }
- ],
- "version": "2.0.0",
- "panels": [
- {
- "id": "7e236455-0927-4695-8f19-3d911d0c83eb",
- "type": "row",
- "name": "Basic Info",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0,
- "i": "7e236455-0927-4695-8f19-3d911d0c83eb"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "min(redis_uptime_in_seconds{instance=~\"$instance\"})"
- }
- ],
- "name": "Redis Uptime",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {
- "util": "humantimeSeconds"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 0,
- "y": 1,
- "i": "d610dcec-a0f2-49dc-a368-a9fda3450f80"
- },
- "id": "d610dcec-a0f2-49dc-a368-a9fda3450f80"
- },
- {
- "targets": [
- {
- "expr": "sum(redis_connected_clients{instance=~\"$instance\"})"
- }
- ],
- "name": "Connected Clients",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 6,
- "y": 1,
- "i": "339e6670-4597-4608-9f49-f7bdb243f7f1"
- },
- "id": "339e6670-4597-4608-9f49-f7bdb243f7f1"
- },
- {
- "targets": [
- {
- "expr": "redis_memory_used_bytes{instance=~\"$instance\"}"
- }
- ],
- "name": "Memory Used",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "to": 128000000
- },
- "result": {
- "color": "#079e05"
- }
- },
- {
- "type": "range",
- "match": {
- "from": 128000000
- },
- "result": {
- "color": "#f10909"
- }
- }
- ],
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 0
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 12,
- "y": 1,
- "i": "321099de-9061-4027-b77a-a44885c11ec3"
- },
- "id": "321099de-9061-4027-b77a-a44885c11ec3"
- },
- {
- "targets": [
- {
- "expr": "redis_memory_max_bytes{instance=~\"$instance\"}"
- }
- ],
- "name": "Max Memory Limit",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {
- "util": "bytesIEC"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 18,
- "y": 1,
- "i": "3301dac6-df01-4373-84fb-b175ff2c7bfb"
- },
- "id": "3301dac6-df01-4373-84fb-b175ff2c7bfb"
- },
- {
- "id": "631895f0-8eba-42da-a82b-203aacf71855",
- "type": "row",
- "name": "Commands",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 4,
- "i": "631895f0-8eba-42da-a82b-203aacf71855"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "rate(redis_commands_processed_total{instance=~\"$instance\"}[5m])"
- }
- ],
- "name": "Commands Executed / sec",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 5,
- "i": "02b519fd-3ddb-4a5e-b5f3-0ac00e1392e2"
- },
- "id": "02b519fd-3ddb-4a5e-b5f3-0ac00e1392e2"
- },
- {
- "targets": [
- {
- "expr": "irate(redis_keyspace_hits_total{instance=~\"$instance\"}[5m])",
- "legend": "hits"
- },
- {
- "expr": "irate(redis_keyspace_misses_total{instance=~\"$instance\"}[5m])",
- "legend": "misses"
- }
- ],
- "name": "Hits / Misses per Sec",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "noraml"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 8,
- "y": 5,
- "i": "e65b838d-e38d-42c0-80fb-fb7ecad37445"
- },
- "id": "e65b838d-e38d-42c0-80fb-fb7ecad37445"
- },
- {
- "targets": [
- {
- "expr": "topk(5, irate(redis_commands_total{instance=~\"$instance\"} [1m]))",
- "legend": "{{cmd}}"
- }
- ],
- "name": "Top Commands",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 5,
- "i": "64301a42-adb8-4f12-9192-ae764f067305"
- },
- "id": "64301a42-adb8-4f12-9192-ae764f067305"
- },
- {
- "id": "2f8d0391-ecd6-4c35-acd7-99a340fa64bd",
- "type": "row",
- "name": "Keys",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 12,
- "i": "2f8d0391-ecd6-4c35-acd7-99a340fa64bd"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "sum (redis_db_keys{instance=~\"$instance\"}) by (db)",
- "legend": "{{db}}"
- }
- ],
- "name": "Total Items per DB",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 13,
- "i": "834d84f2-da11-49fc-8107-c253afcc4d67"
- },
- "id": "834d84f2-da11-49fc-8107-c253afcc4d67"
- },
- {
- "targets": [
- {
- "expr": "sum(rate(redis_expired_keys_total{instance=~\"$instance\"}[5m])) by (instance)",
- "legend": "expired"
- },
- {
- "expr": "sum(rate(redis_evicted_keys_total{instance=~\"$instance\"}[5m])) by (instance)",
- "legend": "evicted"
- }
- ],
- "name": "Expired / Evicted",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 8,
- "y": 13,
- "i": "e3503fcc-31c5-4f66-a31c-fbb421d03280"
- },
- "id": "e3503fcc-31c5-4f66-a31c-fbb421d03280"
- },
- {
- "targets": [
- {
- "expr": "sum(redis_db_keys{instance=~\"$instance\"}) - sum(redis_db_keys_expiring{instance=~\"$instance\"}) ",
- "legend": "not expiring"
- },
- {
- "expr": "sum(redis_db_keys_expiring{instance=~\"$instance\"}) ",
- "legend": "expiring"
- }
- ],
- "name": "Expiring vs Not-Expiring Keys",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "noraml"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 13,
- "i": "25daf589-9d61-476c-8f06-dd42a30f048d"
- },
- "id": "25daf589-9d61-476c-8f06-dd42a30f048d"
- },
- {
- "id": "c86fdeb4-768c-4aa2-8a2c-204296316090",
- "type": "row",
- "name": "Network",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 20,
- "i": "c86fdeb4-768c-4aa2-8a2c-204296316090"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "sum(rate(redis_net_input_bytes_total{instance=~\"$instance\"}[5m]))",
- "legend": "input"
- },
- {
- "expr": "sum(rate(redis_net_output_bytes_total{instance=~\"$instance\"}[5m]))",
- "legend": "output"
- }
- ],
- "name": "Network I/O",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 2
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 21,
- "i": "dd402e9d-7aff-4d8a-9e16-c338033d8a4d"
- },
- "id": "dd402e9d-7aff-4d8a-9e16-c338033d8a4d"
- }
- ]
- }
+ "name": "Redis Overview - exporter",
+ "tags": "Redis Prometheus",
+ "ident": "",
+ "configs": {
+ "panels": [
+ {
+ "collapsed": true,
+ "id": "7e236455-0927-4695-8f19-3d911d0c83eb",
+ "layout": {
+ "h": 1,
+ "i": "7e236455-0927-4695-8f19-3d911d0c83eb",
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "name": "Basic Info",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "d610dcec-a0f2-49dc-a368-a9fda3450f80",
+ "layout": {
+ "h": 3,
+ "i": "d610dcec-a0f2-49dc-a368-a9fda3450f80",
+ "w": 6,
+ "x": 0,
+ "y": 1
+ },
+ "name": "Redis Uptime",
+ "options": {
+ "standardOptions": {
+ "util": "humantimeSeconds"
+ }
+ },
+ "targets": [
+ {
+ "expr": "min(redis_uptime_in_seconds{instance=~\"$instance\"})"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "339e6670-4597-4608-9f49-f7bdb243f7f1",
+ "layout": {
+ "h": 3,
+ "i": "339e6670-4597-4608-9f49-f7bdb243f7f1",
+ "w": 6,
+ "x": 6,
+ "y": 1
+ },
+ "name": "Connected Clients",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "sum(redis_connected_clients{instance=~\"$instance\"})"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "321099de-9061-4027-b77a-a44885c11ec3",
+ "layout": {
+ "h": 3,
+ "i": "321099de-9061-4027-b77a-a44885c11ec3",
+ "w": 6,
+ "x": 12,
+ "y": 1
+ },
+ "name": "Memory Used",
+ "options": {
+ "standardOptions": {
+ "decimals": 0,
+ "util": "bytesIEC"
+ },
+ "valueMappings": [
+ {
+ "match": {
+ "to": 128000000
+ },
+ "result": {
+ "color": "#079e05"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 128000000
+ },
+ "result": {
+ "color": "#f10909"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "redis_memory_used_bytes{instance=~\"$instance\"}"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "3301dac6-df01-4373-84fb-b175ff2c7bfb",
+ "layout": {
+ "h": 3,
+ "i": "3301dac6-df01-4373-84fb-b175ff2c7bfb",
+ "w": 6,
+ "x": 18,
+ "y": 1
+ },
+ "name": "Max Memory Limit",
+ "options": {
+ "standardOptions": {
+ "util": "bytesIEC"
+ }
+ },
+ "targets": [
+ {
+ "expr": "redis_memory_max_bytes{instance=~\"$instance\"}"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "631895f0-8eba-42da-a82b-203aacf71855",
+ "layout": {
+ "h": 1,
+ "i": "631895f0-8eba-42da-a82b-203aacf71855",
+ "w": 24,
+ "x": 0,
+ "y": 4
+ },
+ "name": "Commands",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "02b519fd-3ddb-4a5e-b5f3-0ac00e1392e2",
+ "layout": {
+ "h": 7,
+ "i": "02b519fd-3ddb-4a5e-b5f3-0ac00e1392e2",
+ "w": 8,
+ "x": 0,
+ "y": 5
+ },
+ "name": "Commands Executed / sec",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(redis_commands_processed_total{instance=~\"$instance\"}[5m])"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "noraml"
+ },
+ "id": "e65b838d-e38d-42c0-80fb-fb7ecad37445",
+ "layout": {
+ "h": 7,
+ "i": "e65b838d-e38d-42c0-80fb-fb7ecad37445",
+ "w": 8,
+ "x": 8,
+ "y": 5
+ },
+ "name": "Hits / Misses per Sec",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(redis_keyspace_hits_total{instance=~\"$instance\"}[5m])",
+ "legend": "hits"
+ },
+ {
+ "expr": "irate(redis_keyspace_misses_total{instance=~\"$instance\"}[5m])",
+ "legend": "misses"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "64301a42-adb8-4f12-9192-ae764f067305",
+ "layout": {
+ "h": 7,
+ "i": "64301a42-adb8-4f12-9192-ae764f067305",
+ "w": 8,
+ "x": 16,
+ "y": 5
+ },
+ "name": "Top Commands",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "topk(5, irate(redis_commands_total{instance=~\"$instance\"} [1m]))",
+ "legend": "{{cmd}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "2f8d0391-ecd6-4c35-acd7-99a340fa64bd",
+ "layout": {
+ "h": 1,
+ "i": "2f8d0391-ecd6-4c35-acd7-99a340fa64bd",
+ "w": 24,
+ "x": 0,
+ "y": 12
+ },
+ "name": "Keys",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "834d84f2-da11-49fc-8107-c253afcc4d67",
+ "layout": {
+ "h": 7,
+ "i": "834d84f2-da11-49fc-8107-c253afcc4d67",
+ "w": 8,
+ "x": 0,
+ "y": 13
+ },
+ "name": "Total Items per DB",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum (redis_db_keys{instance=~\"$instance\"}) by (db)",
+ "legend": "{{db}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "e3503fcc-31c5-4f66-a31c-fbb421d03280",
+ "layout": {
+ "h": 7,
+ "i": "e3503fcc-31c5-4f66-a31c-fbb421d03280",
+ "w": 8,
+ "x": 8,
+ "y": 13
+ },
+ "name": "Expired / Evicted",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(redis_expired_keys_total{instance=~\"$instance\"}[5m])) by (instance)",
+ "legend": "expired"
+ },
+ {
+ "expr": "sum(rate(redis_evicted_keys_total{instance=~\"$instance\"}[5m])) by (instance)",
+ "legend": "evicted"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "noraml"
+ },
+ "id": "25daf589-9d61-476c-8f06-dd42a30f048d",
+ "layout": {
+ "h": 7,
+ "i": "25daf589-9d61-476c-8f06-dd42a30f048d",
+ "w": 8,
+ "x": 16,
+ "y": 13
+ },
+ "name": "Expiring vs Not-Expiring Keys",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(redis_db_keys{instance=~\"$instance\"}) - sum(redis_db_keys_expiring{instance=~\"$instance\"}) ",
+ "legend": "not expiring"
+ },
+ {
+ "expr": "sum(redis_db_keys_expiring{instance=~\"$instance\"}) ",
+ "legend": "expiring"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "c86fdeb4-768c-4aa2-8a2c-204296316090",
+ "layout": {
+ "h": 1,
+ "i": "c86fdeb4-768c-4aa2-8a2c-204296316090",
+ "w": 24,
+ "x": 0,
+ "y": 20
+ },
+ "name": "Network",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "dd402e9d-7aff-4d8a-9e16-c338033d8a4d",
+ "layout": {
+ "h": 7,
+ "i": "dd402e9d-7aff-4d8a-9e16-c338033d8a4d",
+ "w": 24,
+ "x": 0,
+ "y": 21
+ },
+ "name": "Network I/O",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 2,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "sum(rate(redis_net_input_bytes_total{instance=~\"$instance\"}[5m]))",
+ "legend": "input"
+ },
+ {
+ "expr": "sum(rate(redis_net_output_bytes_total{instance=~\"$instance\"}[5m]))",
+ "legend": "output"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "label_values(redis_uptime_in_seconds,instance)",
+ "name": "instance",
+ "selected": "10.206.0.16:6379",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ }
+ ],
+ "version": "3.0.0"
+ }
}
\ No newline at end of file
diff --git a/docker/integrations/tomcat/dashboards/tomcat_by_categraf.json b/docker/integrations/tomcat/dashboards/tomcat_by_categraf.json
index 4b15fc36e492025793b7abdb5afa5030b54b9899..f9219ca561c81864a9861f23f0c9ad01715d2f07 100644
--- a/docker/integrations/tomcat/dashboards/tomcat_by_categraf.json
+++ b/docker/integrations/tomcat/dashboards/tomcat_by_categraf.json
@@ -1,440 +1,468 @@
{
- "name": "Tomcat - categraf",
- "tags": "Categraf",
- "ident": "",
- "configs": {
- "var": [
- {
- "name": "instance",
- "definition": "label_values(tomcat_up, instance)"
- }
- ],
- "links": [
- {
- "title": "n9e",
- "url": "https://n9e.gitee.io/",
- "targetBlank": true
- }
- ],
- "version": "2.0.0",
- "panels": [
- {
- "id": "cdc17d90-17f5-44b8-99a1-94764de61698",
- "type": "row",
- "name": "connector",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0,
- "i": "cdc17d90-17f5-44b8-99a1-94764de61698"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(tomcat_connector_bytes_sent{instance=\"$instance\"}[1m])",
- "legend": "sent"
- },
- {
- "expr": "rate(tomcat_connector_bytes_received{instance=\"$instance\"}[1m])",
- "refId": "B",
- "legend": "received"
- }
- ],
- "name": "Traffic Bytes / Second",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 1,
- "i": "004b1408-dcfe-40e1-8910-a1f16a574a85"
- },
- "id": "004b1408-dcfe-40e1-8910-a1f16a574a85"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(tomcat_connector_request_count{instance=\"$instance\"}[1m])",
- "legend": "tomcat_connector_request_count"
- },
- {
- "expr": "rate(tomcat_connector_error_count{instance=\"$instance\"}[1m])",
- "refId": "B",
- "legend": "tomcat_connector_error_count"
- }
- ],
- "name": "Request count / Second",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 1,
- "i": "010aabe0-9b60-4bf3-867e-b5773703090a"
- },
- "id": "010aabe0-9b60-4bf3-867e-b5773703090a"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "tomcat_connector_max_threads{instance=\"$instance\"}",
- "legend": "max_threads"
- },
- {
- "expr": "tomcat_connector_current_thread_count{instance=\"$instance\"}",
- "refId": "B",
- "legend": "current_thread_count"
- },
- {
- "expr": "tomcat_connector_current_threads_busy{instance=\"$instance\"}",
- "refId": "C",
- "legend": "current_threads_busy"
- }
- ],
- "name": "Tread",
- "description": "max_threads: The maximum number of allowed worker threads.\ncurrent_thread_count: The number of threads managed by the thread pool\ncurrent_threads_busy: The number of threads that are in use",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 3,
- "i": "40ea7316-46b9-4447-8e45-6b5acb77f0d2"
- },
- "id": "40ea7316-46b9-4447-8e45-6b5acb77f0d2"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(tomcat_connector_processing_time{instance=\"$instance\"}[1m])",
- "legend": "{{name}}-processing_time"
- }
- ],
- "name": "Processing time",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 3,
- "i": "c99a33ea-53d1-464d-84aa-e7be9e15cfb1"
- },
- "id": "c99a33ea-53d1-464d-84aa-e7be9e15cfb1"
- },
- {
- "id": "1cca4a8b-9352-4d15-9488-ae3aee7b17e3",
- "type": "row",
- "name": "mem used",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 10,
- "i": "1cca4a8b-9352-4d15-9488-ae3aee7b17e3"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "tomcat_jvm_memory_max{instance=\"$instance\"}",
- "legend": "max"
- },
- {
- "expr": "tomcat_jvm_memory_total{instance=\"$instance\"}",
- "refId": "B",
- "legend": "used"
- },
- {
- "expr": "tomcat_jvm_memory_free{instance=\"$instance\"}",
- "refId": "C",
- "legend": "free"
- }
- ],
- "name": "Mem Used",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 11,
- "i": "07059834-fb32-4dfd-88cd-a3bad0203c79"
- },
- "id": "07059834-fb32-4dfd-88cd-a3bad0203c79"
- },
- {
- "id": "6e07a88a-41b4-4fe2-b11f-0f5c8cb95d52",
- "type": "row",
- "name": "memorypool",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 18,
- "i": "6e07a88a-41b4-4fe2-b11f-0f5c8cb95d52"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "tomcat_jvm_memorypool_used{instance=\"$instance\"}",
- "legend": "{{name}}"
- }
- ],
- "name": "Used",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 0,
- "y": 19,
- "i": "92d79cd5-7a53-4f29-a42a-34db741e3c62"
- },
- "id": "92d79cd5-7a53-4f29-a42a-34db741e3c62"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "tomcat_jvm_memorypool_max{instance=\"$instance\"}",
- "legend": "{{name}}"
- }
- ],
- "name": "Max",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 19,
- "i": "c6aace01-4b13-45dd-87e2-fd73cc3e5a28"
- },
- "id": "c6aace01-4b13-45dd-87e2-fd73cc3e5a28"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "tomcat_jvm_memorypool_committed{instance=\"$instance\"}",
- "legend": "{{name}}"
- }
- ],
- "name": "Committed",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 12,
- "y": 19,
- "i": "8cbc2b26-290e-4d11-a56c-e2f0645179a0"
- },
- "id": "8cbc2b26-290e-4d11-a56c-e2f0645179a0"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "tomcat_jvm_memorypool_init{instance=\"$instance\"}",
- "legend": "{{name}}"
- }
- ],
- "name": "Init",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 18,
- "y": 19,
- "i": "b81e4684-c03b-4ee1-86f2-45c883ace756"
- },
- "id": "b81e4684-c03b-4ee1-86f2-45c883ace756"
- }
- ]
- }
+ "name": "Tomcat - categraf",
+ "tags": "Categraf",
+ "ident": "",
+ "configs": {
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "n9e",
+ "url": "https://n9e.gitee.io/"
+ }
+ ],
+ "panels": [
+ {
+ "collapsed": true,
+ "id": "cdc17d90-17f5-44b8-99a1-94764de61698",
+ "layout": {
+ "h": 1,
+ "i": "cdc17d90-17f5-44b8-99a1-94764de61698",
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "name": "connector",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "004b1408-dcfe-40e1-8910-a1f16a574a85",
+ "layout": {
+ "h": 7,
+ "i": "004b1408-dcfe-40e1-8910-a1f16a574a85",
+ "w": 12,
+ "x": 0,
+ "y": 1
+ },
+ "name": "Traffic Bytes / Second",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(tomcat_connector_bytes_sent{instance=\"$instance\"}[1m])",
+ "legend": "sent",
+ "refId": "A"
+ },
+ {
+ "expr": "rate(tomcat_connector_bytes_received{instance=\"$instance\"}[1m])",
+ "legend": "received",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "010aabe0-9b60-4bf3-867e-b5773703090a",
+ "layout": {
+ "h": 7,
+ "i": "010aabe0-9b60-4bf3-867e-b5773703090a",
+ "w": 12,
+ "x": 12,
+ "y": 1
+ },
+ "name": "Request count / Second",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(tomcat_connector_request_count{instance=\"$instance\"}[1m])",
+ "legend": "tomcat_connector_request_count",
+ "refId": "A"
+ },
+ {
+ "expr": "rate(tomcat_connector_error_count{instance=\"$instance\"}[1m])",
+ "legend": "tomcat_connector_error_count",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "description": "max_threads: The maximum number of allowed worker threads.\ncurrent_thread_count: The number of threads managed by the thread pool\ncurrent_threads_busy: The number of threads that are in use",
+ "id": "40ea7316-46b9-4447-8e45-6b5acb77f0d2",
+ "layout": {
+ "h": 7,
+ "i": "40ea7316-46b9-4447-8e45-6b5acb77f0d2",
+ "w": 12,
+ "x": 0,
+ "y": 3
+ },
+ "name": "Tread",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "tomcat_connector_max_threads{instance=\"$instance\"}",
+ "legend": "max_threads",
+ "refId": "A"
+ },
+ {
+ "expr": "tomcat_connector_current_thread_count{instance=\"$instance\"}",
+ "legend": "current_thread_count",
+ "refId": "B"
+ },
+ {
+ "expr": "tomcat_connector_current_threads_busy{instance=\"$instance\"}",
+ "legend": "current_threads_busy",
+ "refId": "C"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "c99a33ea-53d1-464d-84aa-e7be9e15cfb1",
+ "layout": {
+ "h": 7,
+ "i": "c99a33ea-53d1-464d-84aa-e7be9e15cfb1",
+ "w": 12,
+ "x": 12,
+ "y": 3
+ },
+ "name": "Processing time",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(tomcat_connector_processing_time{instance=\"$instance\"}[1m])",
+ "legend": "{{name}}-processing_time",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "1cca4a8b-9352-4d15-9488-ae3aee7b17e3",
+ "layout": {
+ "h": 1,
+ "i": "1cca4a8b-9352-4d15-9488-ae3aee7b17e3",
+ "w": 24,
+ "x": 0,
+ "y": 10
+ },
+ "name": "mem used",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "07059834-fb32-4dfd-88cd-a3bad0203c79",
+ "layout": {
+ "h": 7,
+ "i": "07059834-fb32-4dfd-88cd-a3bad0203c79",
+ "w": 24,
+ "x": 0,
+ "y": 11
+ },
+ "name": "Mem Used",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "tomcat_jvm_memory_max{instance=\"$instance\"}",
+ "legend": "max",
+ "refId": "A"
+ },
+ {
+ "expr": "tomcat_jvm_memory_total{instance=\"$instance\"}",
+ "legend": "used",
+ "refId": "B"
+ },
+ {
+ "expr": "tomcat_jvm_memory_free{instance=\"$instance\"}",
+ "legend": "free",
+ "refId": "C"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "6e07a88a-41b4-4fe2-b11f-0f5c8cb95d52",
+ "layout": {
+ "h": 1,
+ "i": "6e07a88a-41b4-4fe2-b11f-0f5c8cb95d52",
+ "w": 24,
+ "x": 0,
+ "y": 18
+ },
+ "name": "memorypool",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "92d79cd5-7a53-4f29-a42a-34db741e3c62",
+ "layout": {
+ "h": 7,
+ "i": "92d79cd5-7a53-4f29-a42a-34db741e3c62",
+ "w": 6,
+ "x": 0,
+ "y": 19
+ },
+ "name": "Used",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "tomcat_jvm_memorypool_used{instance=\"$instance\"}",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "c6aace01-4b13-45dd-87e2-fd73cc3e5a28",
+ "layout": {
+ "h": 7,
+ "i": "c6aace01-4b13-45dd-87e2-fd73cc3e5a28",
+ "w": 6,
+ "x": 6,
+ "y": 19
+ },
+ "name": "Max",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "tomcat_jvm_memorypool_max{instance=\"$instance\"}",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "8cbc2b26-290e-4d11-a56c-e2f0645179a0",
+ "layout": {
+ "h": 7,
+ "i": "8cbc2b26-290e-4d11-a56c-e2f0645179a0",
+ "w": 6,
+ "x": 12,
+ "y": 19
+ },
+ "name": "Committed",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "tomcat_jvm_memorypool_committed{instance=\"$instance\"}",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "b81e4684-c03b-4ee1-86f2-45c883ace756",
+ "layout": {
+ "h": 7,
+ "i": "b81e4684-c03b-4ee1-86f2-45c883ace756",
+ "w": 6,
+ "x": 18,
+ "y": 19
+ },
+ "name": "Init",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "tomcat_jvm_memorypool_init{instance=\"$instance\"}",
+ "legend": "{{name}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "label_values(tomcat_up, instance)",
+ "name": "instance",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ }
+ ],
+ "version": "3.0.0"
+ }
}
\ No newline at end of file
diff --git a/docker/integrations/vmware/dashboards/vmware_by_vsphere-monitor.json b/docker/integrations/vmware/dashboards/vmware_by_vsphere-monitor.json
index 606c3263ac9184196f8ab318c12c350c3f3b3d7e..fd098069448fee97ca334895511127871165f5ca 100644
--- a/docker/integrations/vmware/dashboards/vmware_by_vsphere-monitor.json
+++ b/docker/integrations/vmware/dashboards/vmware_by_vsphere-monitor.json
@@ -1,475 +1,461 @@
{
"name": "VMware by vSphere-monitor",
"tags": "VMware vSphere-monitor",
+ "ident": "",
"configs": {
- "var": [
- {
- "type": "query",
- "name": "vcenter",
- "definition": "label_values(esxi_alive,ident)",
- "multi": false
- },
- {
- "type": "query",
- "name": "datacenter",
- "definition": "label_values(esxi_alive{ident=\"$vcenter\"},datacenter)",
- "multi": true,
- "allOption": true
- },
- {
- "type": "query",
- "definition": "label_values(esxi_alive{ident=\"$vcenter\",datacenter=~\"$datacenter\"},host)",
- "name": "esxi",
- "multi": true,
- "allOption": true
- },
- {
- "type": "query",
- "definition": "label_values(vm_power{ident=\"$vcenter\"},vm)",
- "name": "vm",
- "multi": true,
- "allOption": true
- }
- ],
"panels": [
{
- "type": "row",
- "id": "8d8b9e77-73dd-4ccf-bb4b-82c725f6be60",
- "name": "Vcenter Status",
"collapsed": true,
+ "id": "8d8b9e77-73dd-4ccf-bb4b-82c725f6be60",
"layout": {
"h": 1,
+ "i": "8d8b9e77-73dd-4ccf-bb4b-82c725f6be60",
+ "isResizable": false,
"w": 24,
"x": 0,
- "y": 0,
- "i": "8d8b9e77-73dd-4ccf-bb4b-82c725f6be60",
- "isResizable": false
+ "y": 0
},
- "panels": []
+ "name": "Vcenter Status",
+ "panels": [],
+ "type": "row"
},
{
- "name": "",
- "links": [
- {
- "url": "https://github.com/freedomkk-qfeng/vsphere-monitor",
- "title": "Vsphere-monitor",
- "targetBlank": true
- }
- ],
- "description": "",
"custom": {
- "textColor": "#ff9919",
+ "alignItems": "center",
"bgColor": "#1d78a1",
- "textSize": 22,
+ "content": "```VMware Vcenter```",
"justifyContent": "center",
- "alignItems": "center",
- "content": "```VMware Vcenter```"
+ "textColor": "#ff9919",
+ "textSize": 22
},
- "version": "2.0.0",
- "type": "text",
+ "description": "",
+ "id": "597e7302-ea67-4690-a8d0-0ef4db233825",
"layout": {
"h": 3,
+ "i": "597e7302-ea67-4690-a8d0-0ef4db233825",
+ "isResizable": true,
"w": 4,
"x": 0,
- "y": 1,
- "i": "597e7302-ea67-4690-a8d0-0ef4db233825",
- "isResizable": true
+ "y": 1
},
- "id": "597e7302-ea67-4690-a8d0-0ef4db233825"
- },
- {
- "targets": [
+ "links": [
{
- "refId": "A",
- "expr": "count(max(esxi_alive{ident=\"$vcenter\"}) by (datacenter))",
- "legend": "",
- "time": {
- "start": "now-30m",
- "end": "now"
- }
+ "targetBlank": true,
+ "title": "Vsphere-monitor",
+ "url": "https://github.com/freedomkk-qfeng/vsphere-monitor"
}
],
- "name": "Datacenter summary",
- "description": "所有Datacenter数量",
+ "name": "",
+ "type": "text",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
"textSize": {}
},
+ "description": "所有Datacenter数量",
+ "id": "65429acb-0817-4e45-a396-157ad73a77a2",
+ "layout": {
+ "h": 3,
+ "i": "62db6d95-be53-4123-bef1-6e5bd0adbfea",
+ "isResizable": true,
+ "w": 4,
+ "x": 4,
+ "y": 1
+ },
+ "name": "Datacenter summary",
"options": {
+ "standardOptions": {},
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 1
+ },
"result": {
"color": "#4ca3d9"
},
- "match": {
- "from": 1
- }
+ "type": "range"
}
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 1,
- "i": "62db6d95-be53-4123-bef1-6e5bd0adbfea",
- "isResizable": true
+ ]
},
- "id": "65429acb-0817-4e45-a396-157ad73a77a2"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "count(datastore_capacity{ident=\"$vcenter\"})",
+ "expr": "count(max(esxi_alive{ident=\"$vcenter\"}) by (datacenter))",
"legend": "",
+ "refId": "A",
"time": {
- "start": "now-30m",
- "end": "now"
+ "end": "now",
+ "start": "now-30m"
}
}
],
- "name": "Datastore summary",
- "description": "所有Datastore存储数量",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
"textSize": {}
},
+ "description": "所有Datastore存储数量",
+ "id": "20001d28-d0f6-400d-b0ac-340160dd8bdc",
+ "layout": {
+ "h": 3,
+ "i": "ecae770c-5e50-40e7-99dd-88dbd64174f1",
+ "isResizable": true,
+ "w": 4,
+ "x": 8,
+ "y": 1
+ },
+ "name": "Datastore summary",
"options": {
+ "standardOptions": {},
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 1
+ },
"result": {
"color": "#ff9919"
},
- "match": {
- "from": 1
- }
+ "type": "range"
}
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 8,
- "y": 1,
- "i": "ecae770c-5e50-40e7-99dd-88dbd64174f1",
- "isResizable": true
+ ]
},
- "id": "20001d28-d0f6-400d-b0ac-340160dd8bdc"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "count(esxi_alive{ident=\"$vcenter\"})",
+ "expr": "count(datastore_capacity{ident=\"$vcenter\"})",
"legend": "",
+ "refId": "A",
"time": {
- "start": "now-30m",
- "end": "now"
+ "end": "now",
+ "start": "now-30m"
}
}
],
- "name": "ESXI summary",
- "description": "所有ESXI主机的数量",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
"textSize": {}
},
+ "description": "所有ESXI主机的数量",
+ "id": "40fb3098-f205-432b-b38e-5defb98b1da0",
+ "layout": {
+ "h": 3,
+ "i": "ce2ce101-ee12-429a-8968-e1a6fe0e0f13",
+ "isResizable": true,
+ "w": 4,
+ "x": 12,
+ "y": 1
+ },
+ "name": "ESXI summary",
"options": {
+ "standardOptions": {},
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 1
+ },
"result": {
"color": "#e49d4e"
},
- "match": {
- "from": 1
- }
+ "type": "range"
}
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 12,
- "y": 1,
- "i": "ce2ce101-ee12-429a-8968-e1a6fe0e0f13",
- "isResizable": true
+ ]
},
- "id": "40fb3098-f205-432b-b38e-5defb98b1da0"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "count(vm_power{ident=\"$vcenter\"}==1)",
+ "expr": "count(esxi_alive{ident=\"$vcenter\"})",
"legend": "",
+ "refId": "A",
"time": {
- "start": "now-30m",
- "end": "now"
+ "end": "now",
+ "start": "now-30m"
}
}
],
- "name": "VM Power ON",
- "description": "开启的虚拟机数量",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
"textSize": {}
},
+ "description": "开启的虚拟机数量",
+ "id": "906403b1-4bc3-41e3-a5a4-3563ad335724",
+ "layout": {
+ "h": 3,
+ "i": "66911f96-94d4-41b4-9604-ef3c4268f3bf",
+ "isResizable": true,
+ "w": 4,
+ "x": 16,
+ "y": 1
+ },
+ "name": "VM Power ON",
"options": {
+ "standardOptions": {},
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 1
+ },
"result": {
"color": "#3fc453"
},
- "match": {
- "from": 1
- }
+ "type": "range"
}
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 16,
- "y": 1,
- "i": "66911f96-94d4-41b4-9604-ef3c4268f3bf",
- "isResizable": true
+ ]
},
- "id": "906403b1-4bc3-41e3-a5a4-3563ad335724"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "count(vm_power{ident=\"$vcenter\"} != 1) or vector(0)",
+ "expr": "count(vm_power{ident=\"$vcenter\"}==1)",
"legend": "",
+ "refId": "A",
"time": {
- "start": "now-30m",
- "end": "now"
+ "end": "now",
+ "start": "now-30m"
}
}
],
- "name": "VM Power OFF",
- "links": [],
- "description": "关闭的虚拟机数量",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
"calc": "first",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
"textSize": {}
},
+ "description": "关闭的虚拟机数量",
+ "id": "8b452644-5cf2-45fb-8bb9-eb9bf1dcfd43",
+ "layout": {
+ "h": 3,
+ "i": "4ca2f3fd-02ff-4e17-9d16-91f5897726bb",
+ "isResizable": true,
+ "w": 4,
+ "x": 20,
+ "y": 1
+ },
+ "links": [],
+ "name": "VM Power OFF",
"options": {
+ "standardOptions": {
+ "min": null
+ },
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 1,
+ "specialValue": "null",
+ "to": null
+ },
"result": {
"color": "#ce4f52",
"text": ""
},
- "match": {
- "from": 1,
- "to": null,
- "specialValue": "null"
- }
+ "type": "range"
},
{
- "type": "special",
+ "match": {
+ "special": 0
+ },
"result": {
"color": "#3fc453"
},
- "match": {
- "special": 0
- }
+ "type": "special"
}
- ],
- "standardOptions": {
- "min": null
- }
+ ]
},
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 20,
- "y": 1,
- "i": "4ca2f3fd-02ff-4e17-9d16-91f5897726bb",
- "isResizable": true
- },
- "id": "8b452644-5cf2-45fb-8bb9-eb9bf1dcfd43"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "sum(datastore_capacity{ident=\"$vcenter\"})",
+ "expr": "count(vm_power{ident=\"$vcenter\"} != 1) or vector(0)",
"legend": "",
+ "refId": "A",
"time": {
- "start": "now-30m",
- "end": "now"
+ "end": "now",
+ "start": "now-30m"
}
}
],
- "name": "Datastore Total",
- "description": "Datastore总空间",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
"textSize": {}
},
+ "description": "Datastore总空间",
+ "id": "aeacca5e-063d-4abf-9b05-80b8ca33ea02",
+ "layout": {
+ "h": 3,
+ "i": "3287ae88-1552-44c6-b5c2-168064d1e1e2",
+ "isResizable": true,
+ "w": 4,
+ "x": 0,
+ "y": 4
+ },
+ "name": "Datastore Total",
"options": {
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 1
+ },
"result": {
"color": "#9470ff"
},
- "match": {
- "from": 1
- }
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "bytesIEC"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 4,
- "i": "3287ae88-1552-44c6-b5c2-168064d1e1e2",
- "isResizable": true
+ ]
},
- "id": "aeacca5e-063d-4abf-9b05-80b8ca33ea02"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "(sum(datastore_capacity{ident=\"$vcenter\"})-sum(datastore_free{ident=\"$vcenter\"})) / sum(datastore_capacity{ident=\"$vcenter\"})",
+ "expr": "sum(datastore_capacity{ident=\"$vcenter\"})",
"legend": "",
+ "refId": "A",
"time": {
- "start": "now-30m",
- "end": "now"
+ "end": "now",
+ "start": "now-30m"
}
}
],
- "name": "Datastore Percent",
- "description": "Datastore总使用率",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
"textSize": {}
},
+ "description": "Datastore总使用率",
+ "id": "4c51137d-9403-473a-b0d7-bda0410546e3",
+ "layout": {
+ "h": 3,
+ "i": "8a6b9c64-f05f-4128-9c4e-9227d955192c",
+ "isResizable": true,
+ "w": 4,
+ "x": 4,
+ "y": 4
+ },
+ "name": "Datastore Percent",
"options": {
+ "standardOptions": {
+ "util": "percentUnit"
+ },
"valueMappings": [
{
- "type": "range",
- "result": {
- "color": "#2c9d3d"
- },
"match": {
"from": null,
"to": 0.6
- }
- },
- {
- "type": "range",
+ },
"result": {
- "color": "#ffae39"
+ "color": "#2c9d3d"
},
+ "type": "range"
+ },
+ {
"match": {
"from": 0.6,
"to": 0.8
- }
+ },
+ "result": {
+ "color": "#ffae39"
+ },
+ "type": "range"
},
{
- "type": "range",
+ "match": {
+ "from": 0.8
+ },
"result": {
"color": "#ce4f52"
},
- "match": {
- "from": 0.8
- }
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "percentUnit"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 4,
- "i": "8a6b9c64-f05f-4128-9c4e-9227d955192c",
- "isResizable": true
+ ]
},
- "id": "4c51137d-9403-473a-b0d7-bda0410546e3"
- },
- {
"targets": [
{
+ "expr": "(sum(datastore_capacity{ident=\"$vcenter\"})-sum(datastore_free{ident=\"$vcenter\"})) / sum(datastore_capacity{ident=\"$vcenter\"})",
+ "legend": "",
"refId": "A",
- "expr": "esxi_alive{ident=\"$vcenter\"} ",
- "legend": "{{ident}}(esxi-{{host}})",
"time": {
- "start": "now-30m",
- "end": "now"
+ "end": "now",
+ "start": "now-30m"
}
}
],
- "name": "ESXI List",
- "description": "ESXI列表",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "showHeader": false,
- "colorMode": "background",
"calc": "lastNotNull",
+ "colorMode": "background",
"displayMode": "seriesToRows",
+ "showHeader": false,
"sortColumn": "value",
"sortOrder": "ascend"
},
+ "description": "ESXI列表",
+ "id": "2fc78fbf-9238-42d8-8934-b5c5c0ea72c4",
+ "layout": {
+ "h": 9,
+ "i": "8dace014-0c83-4be0-8234-4a779e0d656a",
+ "isResizable": true,
+ "w": 8,
+ "x": 8,
+ "y": 4
+ },
+ "name": "ESXI List",
"options": {
- "valueMappings": [],
- "standardOptions": {}
+ "standardOptions": {},
+ "valueMappings": []
},
"overrides": [
{
@@ -479,881 +465,914 @@
"properties": {
"valueMappings": [
{
- "type": "special",
+ "match": {
+ "special": 1
+ },
"result": {
"color": "#2c9d3d",
"text": "UP"
},
- "match": {
- "special": 1
- }
+ "type": "special"
},
{
- "type": "special",
+ "match": {
+ "special": 0
+ },
"result": {
"color": "#ce4f52",
"text": "Down"
},
- "match": {
- "special": 0
- }
+ "type": "special"
}
]
}
}
],
- "version": "2.0.0",
- "type": "table",
- "layout": {
- "h": 9,
- "w": 8,
- "x": 8,
- "y": 4,
- "i": "8dace014-0c83-4be0-8234-4a779e0d656a",
- "isResizable": true
- },
- "id": "2fc78fbf-9238-42d8-8934-b5c5c0ea72c4"
- },
- {
"targets": [
{
+ "expr": "esxi_alive{ident=\"$vcenter\"} ",
+ "legend": "{{ident}}(esxi-{{host}})",
"refId": "A",
- "expr": "topk(10,(100 - vm_memory_freePercent{ident=\"$vcenter\"}))",
- "legend": "{{vm}}(Vcenter={{ident}})"
+ "time": {
+ "end": "now",
+ "start": "now-30m"
+ }
}
],
- "name": "虚拟机内存使用率 top10",
+ "type": "table",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "calc": "lastNotNull",
"baseColor": "#2c9d3d",
+ "calc": "lastNotNull",
"serieWidth": 40,
"sortOrder": "desc"
},
+ "id": "2027eb16-0b3f-493d-b5fc-7627d9427377",
+ "layout": {
+ "h": 9,
+ "i": "2027eb16-0b3f-493d-b5fc-7627d9427377",
+ "isResizable": true,
+ "w": 8,
+ "x": 16,
+ "y": 4
+ },
+ "name": "虚拟机内存使用率 top10",
"options": {
+ "standardOptions": {
+ "util": "percent"
+ },
"valueMappings": [
{
- "type": "range",
- "result": {
- "color": "#2c9d3d"
- },
"match": {
"from": null,
"to": 50
- }
- },
- {
- "type": "range",
+ },
"result": {
- "color": "#ffae39"
+ "color": "#2c9d3d"
},
+ "type": "range"
+ },
+ {
"match": {
"from": 50,
"to": 75
- }
- },
- {
- "type": "range",
+ },
"result": {
- "color": "#ce4f52"
+ "color": "#ffae39"
},
+ "type": "range"
+ },
+ {
"match": {
"from": 75,
"to": null
- }
+ },
+ "result": {
+ "color": "#ce4f52"
+ },
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "percent"
- }
- },
- "version": "2.0.0",
- "type": "barGauge",
- "layout": {
- "h": 9,
- "w": 8,
- "x": 16,
- "y": 4,
- "i": "2027eb16-0b3f-493d-b5fc-7627d9427377",
- "isResizable": true
+ ]
},
- "id": "2027eb16-0b3f-493d-b5fc-7627d9427377"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "sum(esxi_memory_capacity{ident=\"$vcenter\"})",
- "legend": "",
- "time": {
- "start": "now-30m",
- "end": "now"
- }
+ "expr": "topk(10,(100 - vm_memory_freePercent{ident=\"$vcenter\"}))",
+ "legend": "{{vm}}(Vcenter={{ident}})",
+ "refId": "A"
}
],
- "name": "Vcenter MEM Total",
- "description": "ESXI内存总量",
+ "type": "barGauge",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
"textSize": {}
},
+ "description": "ESXI内存总量",
+ "id": "c06e345f-f174-48a1-9cf6-cca48ef61289",
+ "layout": {
+ "h": 3,
+ "i": "b8014e1d-a5c9-4a06-ac04-195a32ccedf1",
+ "isResizable": true,
+ "w": 4,
+ "x": 0,
+ "y": 7
+ },
+ "name": "Vcenter MEM Total",
"options": {
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 1
+ },
"result": {
"color": "#9470ff"
},
- "match": {
- "from": 1
- }
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "bytesIEC"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 7,
- "i": "b8014e1d-a5c9-4a06-ac04-195a32ccedf1",
- "isResizable": true
+ ]
},
- "id": "c06e345f-f174-48a1-9cf6-cca48ef61289"
- },
- {
"targets": [
{
+ "expr": "sum(esxi_memory_capacity{ident=\"$vcenter\"})",
+ "legend": "",
"refId": "A",
- "expr": "sum(esxi_memory_usage{ident=\"$vcenter\"}) / sum(esxi_memory_capacity{ident=\"$vcenter\"})",
- "legend": "",
"time": {
- "start": "now-30m",
- "end": "now"
+ "end": "now",
+ "start": "now-30m"
}
}
],
- "name": "Vcenter MEM Percent",
- "description": "ESXI内存总使用率",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
"textSize": {}
},
+ "description": "ESXI内存总使用率",
+ "id": "ba9c54ef-d538-4063-b917-398c231db726",
+ "layout": {
+ "h": 3,
+ "i": "7a104eb0-fddb-4f0f-a826-8796dfac3eda",
+ "isResizable": true,
+ "w": 4,
+ "x": 4,
+ "y": 7
+ },
+ "name": "Vcenter MEM Percent",
"options": {
+ "standardOptions": {
+ "util": "percentUnit"
+ },
"valueMappings": [
{
- "type": "range",
- "result": {
- "color": "#2c9d3d"
- },
"match": {
"from": null,
"to": 0.6
- }
- },
- {
- "type": "range",
+ },
"result": {
- "color": "#ffae39"
+ "color": "#2c9d3d"
},
+ "type": "range"
+ },
+ {
"match": {
"from": 0.6,
"to": 0.8
- }
+ },
+ "result": {
+ "color": "#ffae39"
+ },
+ "type": "range"
},
{
- "type": "range",
+ "match": {
+ "from": 0.8
+ },
"result": {
"color": "#ce4f52"
},
- "match": {
- "from": 0.8
- }
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "percentUnit"
- }
+ ]
},
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 7,
- "i": "7a104eb0-fddb-4f0f-a826-8796dfac3eda",
- "isResizable": true
- },
- "id": "ba9c54ef-d538-4063-b917-398c231db726"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "count(esxi_alive{ident=\"$vcenter\"} ==1)",
+ "expr": "sum(esxi_memory_usage{ident=\"$vcenter\"}) / sum(esxi_memory_capacity{ident=\"$vcenter\"})",
"legend": "",
+ "refId": "A",
"time": {
- "start": "now-30m",
- "end": "now"
+ "end": "now",
+ "start": "now-30m"
}
}
],
- "name": "ESXI UP",
- "description": "ESXI存活数量",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
"textSize": {}
},
+ "description": "ESXI存活数量",
+ "id": "9ea6f568-c803-4890-aff1-4074a4d6309f",
+ "layout": {
+ "h": 3,
+ "i": "3a3545c2-3df6-4ec2-baa1-39ccd99beda8",
+ "isResizable": true,
+ "w": 4,
+ "x": 0,
+ "y": 10
+ },
+ "name": "ESXI UP",
"options": {
+ "standardOptions": {},
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 1
+ },
"result": {
"color": "#2c9d3d"
},
- "match": {
- "from": 1
- }
+ "type": "range"
}
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 10,
- "i": "3a3545c2-3df6-4ec2-baa1-39ccd99beda8",
- "isResizable": true
+ ]
},
- "id": "9ea6f568-c803-4890-aff1-4074a4d6309f"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "count(esxi_alive{ident=\"$vcenter\"} !=1) or vector(0)",
+ "expr": "count(esxi_alive{ident=\"$vcenter\"} ==1)",
"legend": "",
+ "refId": "A",
"time": {
- "start": "now-30m",
- "end": "now"
+ "end": "now",
+ "start": "now-30m"
}
}
],
- "name": "ESXI Down",
- "description": "ESXI宕机数量",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
"textSize": {}
},
+ "description": "ESXI宕机数量",
+ "id": "6bc0cb3a-71fb-4306-a150-8462a0e4c053",
+ "layout": {
+ "h": 3,
+ "i": "21d15ac6-9a68-46f2-87f6-d298f9b0d596",
+ "isResizable": true,
+ "w": 4,
+ "x": 4,
+ "y": 10
+ },
+ "name": "ESXI Down",
"options": {
+ "standardOptions": {},
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 1
+ },
"result": {
"color": "#ce4f52"
},
- "match": {
- "from": 1
- }
+ "type": "range"
},
{
- "type": "special",
+ "match": {
+ "special": 0
+ },
"result": {
"color": "#2c9d3d"
},
- "match": {
- "special": 0
- }
+ "type": "special"
}
- ],
- "standardOptions": {}
+ ]
},
- "version": "2.0.0",
+ "targets": [
+ {
+ "expr": "count(esxi_alive{ident=\"$vcenter\"} !=1) or vector(0)",
+ "legend": "",
+ "refId": "A",
+ "time": {
+ "end": "now",
+ "start": "now-30m"
+ }
+ }
+ ],
"type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 10,
- "i": "21d15ac6-9a68-46f2-87f6-d298f9b0d596",
- "isResizable": true
- },
- "id": "6bc0cb3a-71fb-4306-a150-8462a0e4c053"
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
- "type": "row",
- "id": "35b7dc01-0e58-4b01-9f84-e466cb817879",
- "name": "Datacenter Status",
"collapsed": true,
+ "id": "35b7dc01-0e58-4b01-9f84-e466cb817879",
"layout": {
"h": 1,
+ "i": "35b7dc01-0e58-4b01-9f84-e466cb817879",
+ "isResizable": false,
"w": 24,
"x": 0,
- "y": 13,
- "i": "35b7dc01-0e58-4b01-9f84-e466cb817879",
- "isResizable": false
+ "y": 13
},
- "panels": []
+ "name": "Datacenter Status",
+ "panels": [],
+ "type": "row"
},
{
- "targets": [
- {
- "refId": "A",
- "expr": "topk(10,(esxi_cpu_usage{ident=\"$vcenter\",datacenter=~\"$datacenter\"}))",
- "legend": "{{host}}(Vcenter={{ident}})"
- }
- ],
- "name": "Datacenter-Esxi CPU Usage top10",
"custom": {
- "calc": "lastNotNull",
"baseColor": "#2c9d3d",
+ "calc": "lastNotNull",
"serieWidth": 40,
"sortOrder": "desc"
},
+ "id": "ae61d444-e137-4467-ae4a-541976a0cb75",
+ "layout": {
+ "h": 9,
+ "i": "53b66c57-64da-431e-833b-b128654ddee6",
+ "isResizable": true,
+ "w": 8,
+ "x": 0,
+ "y": 14
+ },
+ "name": "Datacenter-Esxi CPU Usage top10",
"options": {
+ "standardOptions": {
+ "util": "percent"
+ },
"valueMappings": [
{
- "type": "range",
- "result": {
- "color": "#2c9d3d"
- },
"match": {
"from": null,
"to": 50
- }
- },
- {
- "type": "range",
+ },
"result": {
- "color": "#ffae39"
+ "color": "#2c9d3d"
},
+ "type": "range"
+ },
+ {
"match": {
"from": 50,
"to": 75
- }
- },
- {
- "type": "range",
+ },
"result": {
- "color": "#ce4f52"
+ "color": "#ffae39"
},
+ "type": "range"
+ },
+ {
"match": {
"from": 75,
"to": null
- }
+ },
+ "result": {
+ "color": "#ce4f52"
+ },
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "percent"
- }
- },
- "version": "2.0.0",
- "type": "barGauge",
- "layout": {
- "h": 9,
- "w": 8,
- "x": 0,
- "y": 14,
- "i": "53b66c57-64da-431e-833b-b128654ddee6",
- "isResizable": true
+ ]
},
- "id": "ae61d444-e137-4467-ae4a-541976a0cb75"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "topk(10,(100 - esxi_memory_freePercent{ident=\"$vcenter\"}))",
- "legend": "{{host}}(Vcenter={{ident}})"
+ "expr": "topk(10,(esxi_cpu_usage{ident=\"$vcenter\",datacenter=~\"$datacenter\"}))",
+ "legend": "{{host}}(Vcenter={{ident}})",
+ "refId": "A"
}
],
- "name": "Datacenter-Esxi Mem Usage top10",
+ "type": "barGauge",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "calc": "lastNotNull",
"baseColor": "#2c9d3d",
+ "calc": "lastNotNull",
"serieWidth": 40,
"sortOrder": "desc"
},
+ "id": "bffb1e95-6ee8-47d8-9f65-ef584c335d8b",
+ "layout": {
+ "h": 9,
+ "i": "5c71bbfe-7b70-4dbd-84ae-5c4b2318d0fb",
+ "isResizable": true,
+ "w": 8,
+ "x": 8,
+ "y": 14
+ },
+ "name": "Datacenter-Esxi Mem Usage top10",
"options": {
+ "standardOptions": {
+ "util": "percent"
+ },
"valueMappings": [
{
- "type": "range",
- "result": {
- "color": "#2c9d3d"
- },
"match": {
"from": null,
"to": 50
- }
- },
- {
- "type": "range",
+ },
"result": {
- "color": "#ffae39"
+ "color": "#2c9d3d"
},
+ "type": "range"
+ },
+ {
"match": {
"from": 50,
"to": 75
- }
- },
- {
- "type": "range",
+ },
"result": {
- "color": "#ce4f52"
+ "color": "#ffae39"
},
+ "type": "range"
+ },
+ {
"match": {
"from": 75,
"to": null
- }
+ },
+ "result": {
+ "color": "#ce4f52"
+ },
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "percent"
- }
+ ]
},
- "version": "2.0.0",
- "type": "barGauge",
- "layout": {
- "h": 9,
- "w": 8,
- "x": 8,
- "y": 14,
- "i": "5c71bbfe-7b70-4dbd-84ae-5c4b2318d0fb",
- "isResizable": true
- },
- "id": "bffb1e95-6ee8-47d8-9f65-ef584c335d8b"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "topk(10,(100 - datastore_freePercent{ident=\"$vcenter\",datacenter=~\"$datacenter\"}))",
- "legend": "{{datastore}}(Vcenter={{ident}})"
+ "expr": "topk(10,(100 - esxi_memory_freePercent{ident=\"$vcenter\"}))",
+ "legend": "{{host}}(Vcenter={{ident}})",
+ "refId": "A"
}
],
- "name": "Datacenter-Esxi Datastore Usage top10 top10",
+ "type": "barGauge",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "calc": "lastNotNull",
"baseColor": "#2c9d3d",
+ "calc": "lastNotNull",
"serieWidth": 40,
"sortOrder": "desc"
},
+ "id": "b36c69c2-6cb0-4b89-a4a0-7225140c271f",
+ "layout": {
+ "h": 9,
+ "i": "9f192b9b-dca8-4d0b-acd4-38e89277ed4e",
+ "isResizable": true,
+ "w": 8,
+ "x": 16,
+ "y": 14
+ },
+ "name": "Datacenter-Esxi Datastore Usage top10 top10",
"options": {
+ "standardOptions": {
+ "util": "percent"
+ },
"valueMappings": [
{
- "type": "range",
- "result": {
- "color": "#2c9d3d"
- },
"match": {
"from": null,
"to": 50
- }
- },
- {
- "type": "range",
+ },
"result": {
- "color": "#ffae39"
+ "color": "#2c9d3d"
},
+ "type": "range"
+ },
+ {
"match": {
"from": 50,
"to": 75
- }
- },
- {
- "type": "range",
+ },
"result": {
- "color": "#ce4f52"
+ "color": "#ffae39"
},
+ "type": "range"
+ },
+ {
"match": {
"from": 75,
"to": null
- }
+ },
+ "result": {
+ "color": "#ce4f52"
+ },
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "percent"
- }
- },
- "version": "2.0.0",
- "type": "barGauge",
- "layout": {
- "h": 9,
- "w": 8,
- "x": 16,
- "y": 14,
- "i": "9f192b9b-dca8-4d0b-acd4-38e89277ed4e",
- "isResizable": true
+ ]
},
- "id": "b36c69c2-6cb0-4b89-a4a0-7225140c271f"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "count(esxi_alive{ident=\"$vcenter\",datacenter=~\"$datacenter\"})",
- "legend": "",
- "time": {
- "start": "now-30m",
- "end": "now"
- }
+ "expr": "topk(10,(100 - datastore_freePercent{ident=\"$vcenter\",datacenter=~\"$datacenter\"}))",
+ "legend": "{{datastore}}(Vcenter={{ident}})",
+ "refId": "A"
}
],
- "name": "Datacenter-ESXI summary",
- "description": "所有ESXI主机的数量",
+ "type": "barGauge",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
"textSize": {}
},
+ "description": "所有ESXI主机的数量",
+ "id": "acc6adf8-ad83-4f59-b8c9-f9937e10c20e",
+ "layout": {
+ "h": 3,
+ "i": "0ee44882-4d66-426e-8bc0-003ae2b4bdfa",
+ "isResizable": true,
+ "w": 4,
+ "x": 0,
+ "y": 23
+ },
+ "name": "Datacenter-ESXI summary",
"options": {
+ "standardOptions": {},
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 1
+ },
"result": {
"color": "#e49d4e"
},
- "match": {
- "from": 1
- }
+ "type": "range"
}
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 23,
- "i": "0ee44882-4d66-426e-8bc0-003ae2b4bdfa",
- "isResizable": true
+ ]
},
- "id": "acc6adf8-ad83-4f59-b8c9-f9937e10c20e"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "count(datastore_capacity{ident=\"$vcenter\",datacenter=~\"$datacenter\"})",
+ "expr": "count(esxi_alive{ident=\"$vcenter\",datacenter=~\"$datacenter\"})",
"legend": "",
+ "refId": "A",
"time": {
- "start": "now-30m",
- "end": "now"
+ "end": "now",
+ "start": "now-30m"
}
}
],
- "name": "Datacenter-Datastore summary",
- "description": "所有Datastore存储数量",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
"textSize": {}
},
+ "description": "所有Datastore存储数量",
+ "id": "813109ee-42bd-4150-88e4-4e3e16d0bae7",
+ "layout": {
+ "h": 3,
+ "i": "bcc780a0-bfb9-4e90-87ed-8c2057255582",
+ "isResizable": true,
+ "w": 4,
+ "x": 4,
+ "y": 23
+ },
+ "name": "Datacenter-Datastore summary",
"options": {
+ "standardOptions": {},
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 1
+ },
"result": {
"color": "#ff9919"
},
- "match": {
- "from": 1
- }
+ "type": "range"
}
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 23,
- "i": "bcc780a0-bfb9-4e90-87ed-8c2057255582",
- "isResizable": true
+ ]
},
- "id": "813109ee-42bd-4150-88e4-4e3e16d0bae7"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "sum(datastore_capacity{ident=\"$vcenter\",datacenter=~\"$datacenter\"})",
+ "expr": "count(datastore_capacity{ident=\"$vcenter\",datacenter=~\"$datacenter\"})",
"legend": "",
+ "refId": "A",
"time": {
- "start": "now-30m",
- "end": "now"
+ "end": "now",
+ "start": "now-30m"
}
}
],
- "name": "Datacenter-Datastore Total",
- "description": "Datastore总空间",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
"textSize": {}
},
+ "description": "Datastore总空间",
+ "id": "d672145f-1b8e-40b5-9ae9-a72bd76d98fe",
+ "layout": {
+ "h": 3,
+ "i": "9ea70640-54a9-4065-a272-d7adfb434867",
+ "isResizable": true,
+ "w": 4,
+ "x": 8,
+ "y": 23
+ },
+ "name": "Datacenter-Datastore Total",
"options": {
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 1
+ },
"result": {
"color": "#9470ff"
},
- "match": {
- "from": 1
- }
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "bytesIEC"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 8,
- "y": 23,
- "i": "9ea70640-54a9-4065-a272-d7adfb434867",
- "isResizable": true
+ ]
},
- "id": "d672145f-1b8e-40b5-9ae9-a72bd76d98fe"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "(sum(datastore_capacity{ident=\"$vcenter\",datacenter=~\"$datacenter\"})-sum(datastore_free{ident=\"$vcenter\",datacenter=~\"$datacenter\"})) / sum(datastore_capacity{ident=\"$vcenter\",datacenter=~\"$datacenter\"})",
+ "expr": "sum(datastore_capacity{ident=\"$vcenter\",datacenter=~\"$datacenter\"})",
"legend": "",
+ "refId": "A",
"time": {
- "start": "now-30m",
- "end": "now"
+ "end": "now",
+ "start": "now-30m"
}
}
],
- "name": "Datacenter-Datastore Percent",
- "description": "Datastore总使用率",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
"textSize": {}
},
+ "description": "Datastore总使用率",
+ "id": "40c1c5ef-69e4-4054-93cf-3f3c29a14b95",
+ "layout": {
+ "h": 3,
+ "i": "c84978c3-b1f3-4a21-bd85-edb9abc95780",
+ "isResizable": true,
+ "w": 4,
+ "x": 12,
+ "y": 23
+ },
+ "name": "Datacenter-Datastore Percent",
"options": {
+ "standardOptions": {
+ "util": "percentUnit"
+ },
"valueMappings": [
{
- "type": "range",
- "result": {
- "color": "#2c9d3d"
- },
"match": {
"from": null,
"to": 0.6
- }
- },
- {
- "type": "range",
+ },
"result": {
- "color": "#ffae39"
+ "color": "#2c9d3d"
},
+ "type": "range"
+ },
+ {
"match": {
"from": 0.6,
"to": 0.8
- }
+ },
+ "result": {
+ "color": "#ffae39"
+ },
+ "type": "range"
},
{
- "type": "range",
+ "match": {
+ "from": 0.8
+ },
"result": {
"color": "#ce4f52"
},
- "match": {
- "from": 0.8
- }
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "percentUnit"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 12,
- "y": 23,
- "i": "c84978c3-b1f3-4a21-bd85-edb9abc95780",
- "isResizable": true
+ ]
},
- "id": "40c1c5ef-69e4-4054-93cf-3f3c29a14b95"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "sum(esxi_memory_capacity{ident=\"$vcenter\",datacenter=~\"$datacenter\"})",
+ "expr": "(sum(datastore_capacity{ident=\"$vcenter\",datacenter=~\"$datacenter\"})-sum(datastore_free{ident=\"$vcenter\",datacenter=~\"$datacenter\"})) / sum(datastore_capacity{ident=\"$vcenter\",datacenter=~\"$datacenter\"})",
"legend": "",
+ "refId": "A",
"time": {
- "start": "now-30m",
- "end": "now"
+ "end": "now",
+ "start": "now-30m"
}
}
],
- "name": "Datacenter-MEM Total",
- "description": "ESXI内存总量",
- "custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
"textSize": {}
},
+ "description": "ESXI内存总量",
+ "id": "e07d16cc-a7b1-4f26-b900-aa7a4c515954",
+ "layout": {
+ "h": 3,
+ "i": "3f3ab532-dfcf-4261-8f77-e068ed7d9cc7",
+ "isResizable": true,
+ "w": 4,
+ "x": 16,
+ "y": 23
+ },
+ "name": "Datacenter-MEM Total",
"options": {
+ "standardOptions": {
+ "util": "bytesIEC"
+ },
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 1
+ },
"result": {
"color": "#9470ff"
},
- "match": {
- "from": 1
- }
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "bytesIEC"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 16,
- "y": 23,
- "i": "3f3ab532-dfcf-4261-8f77-e068ed7d9cc7",
- "isResizable": true
+ ]
},
- "id": "e07d16cc-a7b1-4f26-b900-aa7a4c515954"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "sum(esxi_memory_usage{ident=\"$vcenter\",datacenter=~\"$datacenter\"}) / sum(esxi_memory_capacity{ident=\"$vcenter\",datacenter=~\"$datacenter\"})",
+ "expr": "sum(esxi_memory_capacity{ident=\"$vcenter\",datacenter=~\"$datacenter\"})",
"legend": "",
+ "refId": "A",
"time": {
- "start": "now-30m",
- "end": "now"
+ "end": "now",
+ "start": "now-30m"
}
}
],
- "name": "Datacenter-MEM Percent",
- "description": "ESXI内存总使用率",
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "textMode": "valueAndName",
- "colorMode": "value",
"calc": "lastNotNull",
"colSpan": 1,
+ "colorMode": "value",
+ "textMode": "valueAndName",
"textSize": {}
},
+ "description": "ESXI内存总使用率",
+ "id": "22a23007-9c6f-4c30-b684-381e5ff88c5b",
+ "layout": {
+ "h": 3,
+ "i": "9ebe01f2-f97d-4021-bc01-035afcbc66dc",
+ "isResizable": true,
+ "w": 4,
+ "x": 20,
+ "y": 23
+ },
+ "name": "Datacenter-MEM Percent",
"options": {
+ "standardOptions": {
+ "util": "percentUnit"
+ },
"valueMappings": [
{
- "type": "range",
- "result": {
- "color": "#2c9d3d"
- },
"match": {
"from": null,
"to": 0.6
- }
- },
- {
- "type": "range",
+ },
"result": {
- "color": "#ffae39"
+ "color": "#2c9d3d"
},
+ "type": "range"
+ },
+ {
"match": {
"from": 0.6,
"to": 0.8
- }
+ },
+ "result": {
+ "color": "#ffae39"
+ },
+ "type": "range"
},
{
- "type": "range",
+ "match": {
+ "from": 0.8
+ },
"result": {
"color": "#ce4f52"
},
- "match": {
- "from": 0.8
- }
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "percentUnit"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 4,
- "x": 20,
- "y": 23,
- "i": "9ebe01f2-f97d-4021-bc01-035afcbc66dc",
- "isResizable": true
+ ]
},
- "id": "22a23007-9c6f-4c30-b684-381e5ff88c5b"
- },
- {
"targets": [
{
+ "expr": "sum(esxi_memory_usage{ident=\"$vcenter\",datacenter=~\"$datacenter\"}) / sum(esxi_memory_capacity{ident=\"$vcenter\",datacenter=~\"$datacenter\"})",
+ "legend": "",
"refId": "A",
- "expr": "sum(esxi_cpu_usage{ident=\"$vcenter\"}) by (datacenter)",
- "legend": "{{datacenter}}",
"time": {
- "start": "now-7d",
- "end": "now"
+ "end": "now",
+ "start": "now-30m"
}
}
],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "bars",
+ "fillOpacity": 0.8,
+ "gradientMode": "none",
+ "lineWidth": 1,
+ "stack": "off"
+ },
+ "id": "ecb15e88-9f9b-4e58-b56e-280a77c30c12",
+ "layout": {
+ "h": 6,
+ "i": "1e978dc6-6a89-45c1-8c1a-4be48842830c",
+ "isResizable": true,
+ "w": 8,
+ "x": 0,
+ "y": 26
+ },
"name": "Datacenter-CPU Usage Trend",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "list",
"placement": "bottom"
@@ -1364,49 +1383,52 @@
"thresholds": {
"steps": [
{
- "value": 80,
- "color": "#ce4f52"
+ "color": "#ce4f52",
+ "value": 80
}
]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
+ "targets": [
+ {
+ "expr": "sum(esxi_cpu_usage{ident=\"$vcenter\"}) by (datacenter)",
+ "legend": "{{datacenter}}",
+ "refId": "A",
+ "time": {
+ "end": "now",
+ "start": "now-7d"
+ }
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "drawStyle": "bars",
- "lineWidth": 1,
- "fillOpacity": 0.8,
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
"gradientMode": "none",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "0b70e6aa-bdff-488c-b60e-586baa8b5626",
"layout": {
"h": 6,
+ "i": "4de6e60a-8b25-4e79-9989-6d9e5877d39a",
+ "isResizable": true,
"w": 8,
- "x": 0,
- "y": 26,
- "i": "1e978dc6-6a89-45c1-8c1a-4be48842830c",
- "isResizable": true
+ "x": 8,
+ "y": 26
},
- "id": "ecb15e88-9f9b-4e58-b56e-280a77c30c12"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "sum(esxi_memory_usage{ident=\"$vcenter\"}) by (datacenter) / sum(esxi_memory_capacity{ident=\"$vcenter\"}) by(datacenter)",
- "legend": "{{datacenter}}",
- "time": {
- "start": "now-7d",
- "end": "now"
- }
- }
- ],
"name": "Datacenter-MEM Usage Trend",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "list",
"placement": "bottom"
@@ -1416,46 +1438,48 @@
},
"thresholds": {
"steps": []
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
+ "targets": [
+ {
+ "expr": "sum(esxi_memory_usage{ident=\"$vcenter\"}) by (datacenter) / sum(esxi_memory_capacity{ident=\"$vcenter\"}) by(datacenter)",
+ "legend": "{{datacenter}}",
+ "refId": "A",
+ "time": {
+ "end": "now",
+ "start": "now-7d"
+ }
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "1b4adc0a-19d8-463d-a47c-0051cf7113f6",
"layout": {
"h": 6,
+ "i": "7074b7a0-88c5-45e1-9d50-c3f48a4b6d54",
+ "isResizable": true,
"w": 8,
- "x": 8,
- "y": 26,
- "i": "4de6e60a-8b25-4e79-9989-6d9e5877d39a",
- "isResizable": true
+ "x": 16,
+ "y": 26
},
- "id": "0b70e6aa-bdff-488c-b60e-586baa8b5626"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "(sum(datastore_capacity{ident=\"$vcenter\"})-sum(datastore_free{ident=\"$vcenter\"})) / sum(datastore_capacity{ident=\"$vcenter\"}) by (datacenter)",
- "legend": "{{datacenter}}",
- "time": {
- "start": "now-7d",
- "end": "now"
- }
- }
- ],
"name": "Datacenter-Datastore Usage Trend",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "list"
},
@@ -1464,967 +1488,1057 @@
},
"thresholds": {
"steps": []
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
}
},
- "custom": {
- "drawStyle": "lines",
- "lineWidth": 1,
- "fillOpacity": 0.5,
- "gradientMode": "none",
- "stack": "off",
- "lineInterpolation": "smooth"
- },
- "version": "2.0.0",
+ "targets": [
+ {
+ "expr": "(sum(datastore_capacity{ident=\"$vcenter\"})-sum(datastore_free{ident=\"$vcenter\"})) / sum(datastore_capacity{ident=\"$vcenter\"}) by (datacenter)",
+ "legend": "{{datacenter}}",
+ "refId": "A",
+ "time": {
+ "end": "now",
+ "start": "now-7d"
+ }
+ }
+ ],
"type": "timeseries",
- "layout": {
- "h": 6,
- "w": 8,
- "x": 16,
- "y": 26,
- "i": "7074b7a0-88c5-45e1-9d50-c3f48a4b6d54",
- "isResizable": true
- },
- "id": "1b4adc0a-19d8-463d-a47c-0051cf7113f6"
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
- "type": "row",
- "id": "3acc2ed5-a94a-4f6e-ba20-cf74af9ce773",
- "name": "ESXI Status",
"collapsed": true,
+ "id": "3acc2ed5-a94a-4f6e-ba20-cf74af9ce773",
"layout": {
"h": 1,
+ "i": "3acc2ed5-a94a-4f6e-ba20-cf74af9ce773",
+ "isResizable": false,
"w": 24,
"x": 0,
- "y": 32,
- "i": "3acc2ed5-a94a-4f6e-ba20-cf74af9ce773",
- "isResizable": false
+ "y": 32
},
- "panels": []
+ "name": "ESXI Status",
+ "panels": [],
+ "type": "row"
},
{
- "targets": [
- {
- "refId": "A",
- "expr": "esxi_alive{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
- "legend": "{{host}}"
- }
- ],
- "name": "ESXI-UP/Down",
"custom": {
- "showHeader": false,
- "colorMode": "value",
"calc": "lastNotNull",
- "displayMode": "seriesToRows"
- },
+ "colorMode": "value",
+ "displayMode": "seriesToRows",
+ "showHeader": false
+ },
+ "id": "e46c5596-5f99-4cd5-8761-dfa861df318c",
+ "layout": {
+ "h": 7,
+ "i": "b648687d-bc38-40c7-af77-e910de8d7090",
+ "isResizable": true,
+ "w": 4,
+ "x": 0,
+ "y": 33
+ },
+ "name": "ESXI-UP/Down",
"options": {
+ "standardOptions": {
+ "decimals": 0,
+ "util": "none"
+ },
"valueMappings": [
{
- "type": "special",
+ "match": {
+ "from": null,
+ "special": 1,
+ "to": 1
+ },
"result": {
"color": "#2c9d3d",
"text": "UP"
},
- "match": {
- "from": null,
- "to": 1,
- "special": 1
- }
+ "type": "special"
},
{
- "type": "special",
+ "match": {
+ "special": 0
+ },
"result": {
"color": "#ce4f52",
"text": "Down"
},
- "match": {
- "special": 0
- }
+ "type": "special"
}
- ],
- "standardOptions": {
- "util": "none",
- "decimals": 0
- }
+ ]
},
"overrides": [
{}
],
- "version": "2.0.0",
- "type": "table",
- "layout": {
- "h": 7,
- "w": 4,
- "x": 0,
- "y": 33,
- "i": "b648687d-bc38-40c7-af77-e910de8d7090",
- "isResizable": true
- },
- "id": "e46c5596-5f99-4cd5-8761-dfa861df318c"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "esxi_uptime{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"} /60 /60 /24",
- "legend": "{{host}}"
+ "expr": "esxi_alive{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
+ "legend": "{{host}}",
+ "refId": "A"
}
],
- "name": "ESXI-Uptime(天)",
+ "type": "table",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "showHeader": false,
- "colorMode": "value",
"calc": "lastNotNull",
+ "colorMode": "value",
"displayMode": "seriesToRows",
+ "showHeader": false,
"sortColumn": "value",
"sortOrder": "ascend"
},
+ "id": "64683543-70ea-447b-8667-c66642f66d39",
+ "layout": {
+ "h": 7,
+ "i": "64683543-70ea-447b-8667-c66642f66d39",
+ "isResizable": true,
+ "w": 4,
+ "x": 4,
+ "y": 33
+ },
+ "name": "ESXI-Uptime(天)",
"options": {
+ "standardOptions": {
+ "decimals": 0,
+ "util": "none"
+ },
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 1
+ },
"result": {
"color": "#ff9919"
},
- "match": {
- "from": 1
- }
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "none",
- "decimals": 0
- }
+ ]
},
"overrides": [
{}
],
- "version": "2.0.0",
- "type": "table",
- "layout": {
- "h": 7,
- "w": 4,
- "x": 4,
- "y": 33,
- "i": "64683543-70ea-447b-8667-c66642f66d39",
- "isResizable": true
- },
- "id": "64683543-70ea-447b-8667-c66642f66d39"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "esxi_memory_capacity{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
- "legend": "{{host}}"
+ "expr": "esxi_uptime{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"} /60 /60 /24",
+ "legend": "{{host}}",
+ "refId": "A"
}
],
- "name": "ESXI-MEM Total",
+ "type": "table",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "showHeader": false,
- "colorMode": "value",
"calc": "lastNotNull",
- "displayMode": "seriesToRows"
+ "colorMode": "value",
+ "displayMode": "seriesToRows",
+ "showHeader": false
+ },
+ "id": "6ec3bd61-cf30-45c3-9118-28c6dfd3c2bd",
+ "layout": {
+ "h": 7,
+ "i": "50431a0f-65f2-4eaf-87a6-7ffe3a77fec7",
+ "isResizable": true,
+ "w": 4,
+ "x": 8,
+ "y": 33
},
+ "name": "ESXI-MEM Total",
"options": {
+ "standardOptions": {
+ "decimals": 2,
+ "util": "bytesIEC"
+ },
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 1
+ },
"result": {
"color": "#70a0ff"
},
- "match": {
- "from": 1
- }
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 2
- }
+ ]
},
"overrides": [
{}
],
- "version": "2.0.0",
- "type": "table",
- "layout": {
- "h": 7,
- "w": 4,
- "x": 8,
- "y": 33,
- "i": "50431a0f-65f2-4eaf-87a6-7ffe3a77fec7",
- "isResizable": true
- },
- "id": "6ec3bd61-cf30-45c3-9118-28c6dfd3c2bd"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "esxi_cpu_usage{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
+ "expr": "esxi_memory_capacity{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
"legend": "{{host}}",
- "time": {
- "start": "now-12h",
- "end": "now"
- },
- "step": 15
+ "refId": "A"
}
],
- "name": "ESXI-CPU Usage",
+ "type": "table",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "showHeader": false,
- "colorMode": "value",
"calc": "lastNotNull",
+ "colorMode": "value",
"displayMode": "seriesToRows",
+ "showHeader": false,
"sortOrder": "ascend"
},
+ "id": "46a4eea7-6577-430d-8fb2-2a371c1c8c64",
+ "layout": {
+ "h": 7,
+ "i": "e6344a4e-cd2a-4db5-ad16-4fb69d321e9d",
+ "isResizable": true,
+ "w": 4,
+ "x": 12,
+ "y": 33
+ },
+ "name": "ESXI-CPU Usage",
"options": {
+ "standardOptions": {
+ "decimals": 2,
+ "util": "percent"
+ },
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 0.1
+ },
"result": {
"color": "#ff8286"
},
- "match": {
- "from": 0.1
- }
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "percent",
- "decimals": 2
- }
+ ]
},
"overrides": [
{}
],
- "version": "2.0.0",
- "type": "table",
- "layout": {
- "h": 7,
- "w": 4,
- "x": 12,
- "y": 33,
- "i": "e6344a4e-cd2a-4db5-ad16-4fb69d321e9d",
- "isResizable": true
- },
- "id": "46a4eea7-6577-430d-8fb2-2a371c1c8c64"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "esxi_net_if_in{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
+ "expr": "esxi_cpu_usage{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
"legend": "{{host}}",
+ "refId": "A",
+ "step": 15,
"time": {
- "start": "now-12h",
- "end": "now"
- },
- "step": 15
+ "end": "now",
+ "start": "now-12h"
+ }
}
],
- "name": "ESXI-NET_IN",
+ "type": "table",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "showHeader": false,
- "colorMode": "value",
"calc": "lastNotNull",
+ "colorMode": "value",
"displayMode": "seriesToRows",
+ "showHeader": false,
"sortOrder": "ascend"
},
+ "id": "e631e9e9-7d25-4bab-916b-e11da4bcb6b4",
+ "layout": {
+ "h": 7,
+ "i": "e6673ca5-5f7e-4ec2-bc68-8745b4bac2a8",
+ "isResizable": true,
+ "w": 4,
+ "x": 16,
+ "y": 33
+ },
+ "name": "ESXI-NET_IN",
"options": {
+ "standardOptions": {
+ "decimals": 2,
+ "util": "bytesIEC"
+ },
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 0.1
+ },
"result": {
"color": "#9470ff"
},
- "match": {
- "from": 0.1
- }
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 2
- }
+ ]
},
"overrides": [
{}
],
- "version": "2.0.0",
- "type": "table",
- "layout": {
- "h": 7,
- "w": 4,
- "x": 16,
- "y": 33,
- "i": "e6673ca5-5f7e-4ec2-bc68-8745b4bac2a8",
- "isResizable": true
- },
- "id": "e631e9e9-7d25-4bab-916b-e11da4bcb6b4"
- },
- {
"targets": [
{
- "refId": "A",
- "expr": "esxi_net_if_out{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
+ "expr": "esxi_net_if_in{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
"legend": "{{host}}",
+ "refId": "A",
+ "step": 15,
"time": {
- "start": "now-12h",
- "end": "now"
- },
- "step": 15
+ "end": "now",
+ "start": "now-12h"
+ }
}
],
- "name": "ESXI-NET_OUT",
+ "type": "table",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
- "showHeader": false,
- "colorMode": "value",
"calc": "lastNotNull",
+ "colorMode": "value",
"displayMode": "seriesToRows",
+ "showHeader": false,
"sortOrder": "ascend"
},
+ "id": "cbe91b45-d4de-4218-9f07-28848fb05202",
+ "layout": {
+ "h": 7,
+ "i": "62a2fcb0-584d-4e8b-a62e-de41352c43b8",
+ "isResizable": true,
+ "w": 4,
+ "x": 20,
+ "y": 33
+ },
+ "name": "ESXI-NET_OUT",
"options": {
+ "standardOptions": {
+ "decimals": 2,
+ "util": "bytesIEC"
+ },
"valueMappings": [
{
- "type": "range",
+ "match": {
+ "from": 0.1
+ },
"result": {
"color": "#ecd245"
},
- "match": {
- "from": 0.1
- }
+ "type": "range"
}
- ],
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 2
- }
+ ]
},
"overrides": [
{}
],
- "version": "2.0.0",
- "type": "table",
- "layout": {
- "h": 7,
- "w": 4,
- "x": 20,
- "y": 33,
- "i": "62a2fcb0-584d-4e8b-a62e-de41352c43b8",
- "isResizable": true
- },
- "id": "cbe91b45-d4de-4218-9f07-28848fb05202"
- },
- {
"targets": [
{
+ "expr": "esxi_net_if_out{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
+ "legend": "{{host}}",
"refId": "A",
- "expr": "esxi_cpu_usage{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
- "legend": "{{host}}"
+ "step": 15,
+ "time": {
+ "end": "now",
+ "start": "now-12h"
+ }
}
],
- "name": "ESXI-CPU Usage Trend",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "list"
- },
- "standardOptions": {
- "util": "percent",
- "decimals": 2
- },
- "thresholds": {}
- },
+ "type": "table",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "bars",
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
+ "lineWidth": 1,
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "b3265d25-c15d-41cb-8c8b-25417e655caa",
"layout": {
"h": 6,
+ "i": "b3265d25-c15d-41cb-8c8b-25417e655caa",
+ "isResizable": true,
"w": 12,
"x": 0,
- "y": 40,
- "i": "b3265d25-c15d-41cb-8c8b-25417e655caa",
- "isResizable": true
+ "y": 40
},
- "id": "b3265d25-c15d-41cb-8c8b-25417e655caa"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "esxi_memory_usage{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"} / esxi_memory_capacity{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
- "legend": "{{host}}"
- }
- ],
- "name": "ESXI-MEM Usage Trend",
+ "name": "ESXI-CPU Usage Trend",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "list"
},
"standardOptions": {
- "util": "percentUnit",
- "decimals": 2
+ "decimals": 2,
+ "util": "percent"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "esxi_cpu_usage{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
+ "legend": "{{host}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "opacity",
- "stack": "off",
- "lineInterpolation": "smooth"
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
+ "stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "25fd6cd6-be54-420f-b3ee-002a9579eb1d",
"layout": {
"h": 6,
+ "i": "e7042001-d660-4781-af81-861720fca815",
+ "isResizable": true,
"w": 12,
"x": 12,
- "y": 40,
- "i": "e7042001-d660-4781-af81-861720fca815",
- "isResizable": true
+ "y": 40
},
- "id": "25fd6cd6-be54-420f-b3ee-002a9579eb1d"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "esxi_net_if_in{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
- "legend": "{{host}}"
- }
- ],
- "name": "ESXI-NET_IN Trend",
+ "name": "ESXI-MEM Usage Trend",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "list"
},
"standardOptions": {
- "util": "bytesIEC",
- "decimals": 2
+ "decimals": 2,
+ "util": "percentUnit"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "esxi_memory_usage{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"} / esxi_memory_capacity{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
+ "legend": "{{host}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "opacity",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "868fca2d-df6e-487c-8c8d-e307d82c28ce",
"layout": {
"h": 7,
+ "i": "593f9476-adfe-48ad-8506-3b39fcaabd47",
+ "isResizable": true,
"w": 12,
"x": 0,
- "y": 46,
- "i": "593f9476-adfe-48ad-8506-3b39fcaabd47",
- "isResizable": true
+ "y": 46
},
- "id": "868fca2d-df6e-487c-8c8d-e307d82c28ce"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "esxi_net_if_out{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
- "legend": "{{host}}"
- }
- ],
- "name": "ESXI-NET_OUT Trend",
+ "name": "ESXI-NET_IN Trend",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "list"
},
"standardOptions": {
- "util": "bytesIEC",
- "decimals": 2
+ "decimals": 2,
+ "util": "bytesIEC"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "esxi_net_if_in{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
+ "legend": "{{host}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "opacity",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "aee98a26-c7dd-43d6-9195-72bdf1fc0b47",
"layout": {
"h": 7,
+ "i": "1f9fc9b6-5064-42b9-9aa6-8d741a36d5d0",
+ "isResizable": true,
"w": 12,
"x": 12,
- "y": 46,
- "i": "1f9fc9b6-5064-42b9-9aa6-8d741a36d5d0",
- "isResizable": true
+ "y": 46
+ },
+ "name": "ESXI-NET_OUT Trend",
+ "options": {
+ "legend": {
+ "displayMode": "list"
+ },
+ "standardOptions": {
+ "decimals": 2,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
- "id": "aee98a26-c7dd-43d6-9195-72bdf1fc0b47"
+ "targets": [
+ {
+ "expr": "esxi_net_if_out{ident=\"$vcenter\",datacenter=~\"$datacenter\",host=~\"$esxi\"}",
+ "legend": "{{host}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
},
{
- "type": "row",
- "id": "e5ed126a-2d17-4195-94c4-214864a9755d",
- "name": "VM Status",
"collapsed": true,
+ "id": "e5ed126a-2d17-4195-94c4-214864a9755d",
"layout": {
"h": 1,
+ "i": "e5ed126a-2d17-4195-94c4-214864a9755d",
+ "isResizable": false,
"w": 24,
"x": 0,
- "y": 53,
- "i": "e5ed126a-2d17-4195-94c4-214864a9755d",
- "isResizable": false
- }
+ "y": 53
+ },
+ "name": "VM Status",
+ "type": "row"
},
{
- "targets": [
- {
- "refId": "A",
- "expr": "vm_datastore_io_read_bytes{ident=\"$vcenter\",vm=~\"$vm\"}",
- "legend": "{{vm}}"
- }
- ],
- "name": "VM-IO_Read",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC"
- },
- "thresholds": {}
- },
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "182d718e-83af-449b-9492-7af701a16569",
"layout": {
"h": 5,
+ "i": "182d718e-83af-449b-9492-7af701a16569",
+ "isResizable": true,
"w": 4,
"x": 0,
- "y": 54,
- "i": "182d718e-83af-449b-9492-7af701a16569",
- "isResizable": true
+ "y": 54
},
- "id": "182d718e-83af-449b-9492-7af701a16569"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "vm_datastore_io_write_bytes{ident=\"$vcenter\",vm=~\"$vm\"}",
- "legend": "{{vm}}"
- }
- ],
- "name": "VM-IO_Write",
+ "name": "VM-IO_Read",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
"util": "bytesIEC"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "vm_datastore_io_read_bytes{ident=\"$vcenter\",vm=~\"$vm\"}",
+ "legend": "{{vm}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "43fe023c-8c3a-47f5-9c69-225189622d36",
"layout": {
"h": 5,
+ "i": "394d59f4-939c-4459-b875-381aac49d566",
+ "isResizable": true,
"w": 4,
"x": 4,
- "y": 54,
- "i": "394d59f4-939c-4459-b875-381aac49d566",
- "isResizable": true
+ "y": 54
},
- "id": "43fe023c-8c3a-47f5-9c69-225189622d36"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "vm_datastore_io_read_numbers{ident=\"$vcenter\",vm=~\"$vm\"}",
- "legend": "{{vm}}"
- }
- ],
- "name": "VM-IO_Read_Numbers",
+ "name": "VM-IO_Write",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
- "util": "none"
+ "util": "bytesIEC"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "vm_datastore_io_write_bytes{ident=\"$vcenter\",vm=~\"$vm\"}",
+ "legend": "{{vm}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "d8a40ecc-d125-4272-b60f-543e6018ca05",
"layout": {
"h": 5,
+ "i": "7ba230b1-9d71-4321-8729-3b046fdda035",
+ "isResizable": true,
"w": 4,
"x": 8,
- "y": 54,
- "i": "7ba230b1-9d71-4321-8729-3b046fdda035",
- "isResizable": true
+ "y": 54
},
- "id": "d8a40ecc-d125-4272-b60f-543e6018ca05"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "vm_datastore_io_write_numbers{ident=\"$vcenter\",vm=~\"$vm\"}",
- "legend": "{{vm}}"
- }
- ],
- "name": "VM-IO_Write_Numbers",
+ "name": "VM-IO_Read_Numbers",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
"util": "none"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "vm_datastore_io_read_numbers{ident=\"$vcenter\",vm=~\"$vm\"}",
+ "legend": "{{vm}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "1a48a82c-19b4-4b73-8093-b2c9c87ded20",
"layout": {
"h": 5,
+ "i": "563c4bed-0ac7-491a-835c-70c638edd5c8",
+ "isResizable": true,
"w": 4,
"x": 12,
- "y": 54,
- "i": "563c4bed-0ac7-491a-835c-70c638edd5c8",
- "isResizable": true
+ "y": 54
},
- "id": "1a48a82c-19b4-4b73-8093-b2c9c87ded20"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "vm_datastore_io_read_latency{ident=\"$vcenter\",vm=~\"$vm\"}",
- "legend": "{{vm}}"
- }
- ],
- "name": "VM-IO_Read_Latency",
+ "name": "VM-IO_Write_Numbers",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
- "util": "milliseconds"
+ "util": "none"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "vm_datastore_io_write_numbers{ident=\"$vcenter\",vm=~\"$vm\"}",
+ "legend": "{{vm}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "15147aa2-3c7d-490b-b53b-4c3e3f9731d5",
"layout": {
"h": 5,
+ "i": "9f0098bf-7f82-41ad-9749-272e6126e020",
+ "isResizable": true,
"w": 4,
"x": 16,
- "y": 54,
- "i": "9f0098bf-7f82-41ad-9749-272e6126e020",
- "isResizable": true
+ "y": 54
},
- "id": "15147aa2-3c7d-490b-b53b-4c3e3f9731d5"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "vm_datastore_io_write_latency{ident=\"$vcenter\",vm=~\"$vm\"}",
- "legend": "{{vm}}"
- }
- ],
- "name": "VM-IO_Write_Latency",
+ "name": "VM-IO_Read_Latency",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "hidden"
},
"standardOptions": {
"util": "milliseconds"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "vm_datastore_io_read_latency{ident=\"$vcenter\",vm=~\"$vm\"}",
+ "legend": "{{vm}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "1870bf34-d019-484f-a462-411629ca78fe",
"layout": {
"h": 5,
+ "i": "c89db128-f5e0-4141-a89b-c0dfc567f7e2",
+ "isResizable": true,
"w": 4,
"x": 20,
- "y": 54,
- "i": "c89db128-f5e0-4141-a89b-c0dfc567f7e2",
- "isResizable": true
+ "y": 54
},
- "id": "1870bf34-d019-484f-a462-411629ca78fe"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "vm_cpu_usage{ident=\"$vcenter\",vm=~\"$vm\"}",
- "legend": "{{vm}}"
- }
- ],
- "name": "VM-CPU Usage Trend",
+ "name": "VM-IO_Write_Latency",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
- "displayMode": "list"
+ "displayMode": "hidden"
},
"standardOptions": {
- "util": "percent",
- "decimals": 2
+ "util": "milliseconds"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "vm_datastore_io_write_latency{ident=\"$vcenter\",vm=~\"$vm\"}",
+ "legend": "{{vm}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "bars",
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
+ "lineWidth": 1,
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "e2751b2b-3b1f-469e-abd6-f6e843efd16a",
"layout": {
"h": 6,
+ "i": "0516c59f-70f9-4d65-9cdb-06c0932c1956",
+ "isResizable": true,
"w": 12,
"x": 0,
- "y": 59,
- "i": "0516c59f-70f9-4d65-9cdb-06c0932c1956",
- "isResizable": true
+ "y": 59
},
- "id": "e2751b2b-3b1f-469e-abd6-f6e843efd16a"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "vm_memory_usage{ident=\"$vcenter\",vm=~\"$vm\"} / vm_memory_capacity{ident=\"$vcenter\",vm=~\"$vm\"}",
- "legend": "{{vm}}"
- }
- ],
- "name": "VM-MEM Usage Trend",
+ "name": "VM-CPU Usage Trend",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "list"
},
"standardOptions": {
- "util": "percentUnit",
- "decimals": 2
+ "decimals": 2,
+ "util": "percent"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "vm_cpu_usage{ident=\"$vcenter\",vm=~\"$vm\"}",
+ "legend": "{{vm}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "opacity",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "1af92e8e-4163-475b-a3e4-ccdca9a74cdf",
"layout": {
"h": 6,
+ "i": "b1bc6cda-5d1e-4cd5-8e98-d3cca0a8d6aa",
+ "isResizable": true,
"w": 12,
"x": 12,
- "y": 59,
- "i": "b1bc6cda-5d1e-4cd5-8e98-d3cca0a8d6aa",
- "isResizable": true
+ "y": 59
},
- "id": "1af92e8e-4163-475b-a3e4-ccdca9a74cdf"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "vm_net_if_in{ident=\"$vcenter\",vm=~\"$vm\"}",
- "legend": "{{vm}}"
- }
- ],
- "name": "ESXI-NET_IN Trend",
+ "name": "VM-MEM Usage Trend",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "list"
},
"standardOptions": {
- "util": "bytesIEC",
- "decimals": 2
+ "decimals": 2,
+ "util": "percentUnit"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "vm_memory_usage{ident=\"$vcenter\",vm=~\"$vm\"} / vm_memory_capacity{ident=\"$vcenter\",vm=~\"$vm\"}",
+ "legend": "{{vm}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "opacity",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "380ea87f-9b4f-41dc-9117-579295a1a5de",
"layout": {
"h": 7,
+ "i": "3c04d89f-d880-495b-954a-708eb3c8cf02",
+ "isResizable": true,
"w": 12,
"x": 0,
- "y": 65,
- "i": "3c04d89f-d880-495b-954a-708eb3c8cf02",
- "isResizable": true
+ "y": 65
},
- "id": "380ea87f-9b4f-41dc-9117-579295a1a5de"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "vm_net_if_out{ident=\"$vcenter\",vm=~\"$vm\"}",
- "legend": "{{vm}}"
- }
- ],
- "name": "ESXI-NET_OUT Trend",
+ "name": "ESXI-NET_IN Trend",
"options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
"legend": {
"displayMode": "list"
},
"standardOptions": {
- "util": "bytesIEC",
- "decimals": 2
+ "decimals": 2,
+ "util": "bytesIEC"
},
- "thresholds": {}
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
},
+ "targets": [
+ {
+ "expr": "vm_net_if_in{ident=\"$vcenter\",vm=~\"$vm\"}",
+ "legend": "{{vm}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
"custom": {
"drawStyle": "lines",
- "lineInterpolation": "smooth",
- "lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "opacity",
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
"stack": "off"
},
- "version": "2.0.0",
- "type": "timeseries",
+ "id": "8d2bf7e4-eb86-4d24-96da-e45b1eef68f5",
"layout": {
"h": 7,
+ "i": "66f5afc9-ea2f-444c-9170-098c684e52ee",
+ "isResizable": true,
"w": 12,
"x": 12,
- "y": 65,
- "i": "66f5afc9-ea2f-444c-9170-098c684e52ee",
- "isResizable": true
+ "y": 65
},
- "id": "8d2bf7e4-eb86-4d24-96da-e45b1eef68f5"
+ "name": "ESXI-NET_OUT Trend",
+ "options": {
+ "legend": {
+ "displayMode": "list"
+ },
+ "standardOptions": {
+ "decimals": 2,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "vm_net_if_out{ident=\"$vcenter\",vm=~\"$vm\"}",
+ "legend": "{{vm}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "label_values(esxi_alive,ident)",
+ "multi": false,
+ "name": "vcenter",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ },
+ {
+ "allOption": true,
+ "definition": "label_values(esxi_alive{ident=\"$vcenter\"},datacenter)",
+ "multi": true,
+ "name": "datacenter",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ },
+ {
+ "allOption": true,
+ "definition": "label_values(esxi_alive{ident=\"$vcenter\",datacenter=~\"$datacenter\"},host)",
+ "multi": true,
+ "name": "esxi",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ },
+ {
+ "allOption": true,
+ "definition": "label_values(vm_power{ident=\"$vcenter\"},vm)",
+ "multi": true,
+ "name": "vm",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
}
],
- "version": "2.0.0"
+ "version": "3.0.0"
}
}
\ No newline at end of file
diff --git a/docker/integrations/windows/dashboards/windows_by_exporter.json b/docker/integrations/windows/dashboards/windows_by_exporter.json
index ffd89e89677c0a4714671827290e16c281b702df..5c684380d4a7ef301fbc1ce4a56811a55dcf746c 100644
--- a/docker/integrations/windows/dashboards/windows_by_exporter.json
+++ b/docker/integrations/windows/dashboards/windows_by_exporter.json
@@ -1,658 +1,698 @@
{
- "name": "Windows - exporter",
- "tags": "Windows Prometheus",
- "ident": "",
- "configs": {
- "var": [
- {
- "name": "instance",
- "definition": "label_values(windows_system_system_up_time, instance)"
- }
- ],
- "version": "2.0.0",
- "panels": [
- {
- "id": "13fc4558-3a83-4165-bf93-bc4eaea0f097",
- "type": "row",
- "name": "Basic Info",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0,
- "i": "13fc4558-3a83-4165-bf93-bc4eaea0f097"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "time() - windows_system_system_up_time{instance=~\"$instance\"}",
- "legend": ""
- }
- ],
- "name": "Uptime",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {
- "util": "humantimeSeconds"
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 0,
- "y": 1,
- "i": "666cda14-4732-4f80-a024-675e2d244051"
- },
- "id": "666cda14-4732-4f80-a024-675e2d244051"
- },
- {
- "targets": [
- {
- "expr": "windows_cs_logical_processors{instance=~\"$instance\"}",
- "legend": ""
- }
- ],
- "name": "CPU Core Total",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 6,
- "y": 1,
- "i": "164edb5c-d8f3-4b77-8af3-7907b24a1073"
- },
- "id": "164edb5c-d8f3-4b77-8af3-7907b24a1073"
- },
- {
- "targets": [
- {
- "expr": "windows_cs_physical_memory_bytes{instance=~\"$instance\"}"
- }
- ],
- "name": "Memory Total",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 0
- }
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 12,
- "y": 1,
- "i": "e9ddf0d3-53e5-43a8-83c7-10aa9d0028ad"
- },
- "id": "e9ddf0d3-53e5-43a8-83c7-10aa9d0028ad"
- },
- {
- "targets": [
- {
- "expr": "windows_os_processes{instance=~\"$instance\"}"
- }
- ],
- "name": "Process Total",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {}
- },
- "options": {
- "valueMappings": [
- {
- "type": "range",
- "match": {
- "to": 100
- },
- "result": {
- "color": "#109d06"
- }
- },
- {
- "type": "range",
- "match": {
- "from": 100
- },
- "result": {
- "color": "#d11010"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 18,
- "y": 1,
- "i": "288ae77f-aa29-427c-932a-d0445e7d749e"
- },
- "id": "288ae77f-aa29-427c-932a-d0445e7d749e"
- },
- {
- "id": "a0248950-a7c4-47f2-9e75-27666ef428cd",
- "type": "row",
- "name": "CPU Memory Disk",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 4,
- "i": "a0248950-a7c4-47f2-9e75-27666ef428cd"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "100 * sum by (instance) (rate(windows_cpu_time_total{mode != 'idle'}[5m])) / count by (instance) (windows_cpu_core_frequency_mhz) ",
- "legend": "CPU Util"
- }
- ],
- "name": "Cpu Util",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "decimals": 2
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 0,
- "y": 5,
- "i": "b1c60c40-94ba-4b76-a688-1532e26d3a52"
- },
- "id": "b1c60c40-94ba-4b76-a688-1532e26d3a52"
- },
- {
- "targets": [
- {
- "expr": "100 - (windows_os_physical_memory_free_bytes{instance=~\"$instance\"} / windows_cs_physical_memory_bytes{instance=~\"$instance\"})*100"
- }
- ],
- "name": "Memory Util",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "decimals": 2
- },
- "thresholds": {
- "steps": [
- {
- "value": 70,
- "color": "#e71313"
- }
- ]
- }
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 5,
- "i": "799d9f5c-450a-4db3-80d0-71a64c6d8d73"
- },
- "id": "799d9f5c-450a-4db3-80d0-71a64c6d8d73"
- },
- {
- "targets": [
- {
- "expr": "100 - (windows_logical_disk_free_bytes{instance=~\"$instance\"} / windows_logical_disk_size_bytes{instance=~\"$instance\"})*100",
- "legend": "{{volume}}"
- }
- ],
- "name": "Disk Util",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "decimals": 2
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 12,
- "y": 5,
- "i": "1dae2abc-d7eb-47b9-8280-fcc1810803cb"
- },
- "id": "1dae2abc-d7eb-47b9-8280-fcc1810803cb"
- },
- {
- "targets": [
- {
- "expr": "windows_logical_disk_free_bytes{instance=~\"$instance\"}",
- "legend": "{{volume}} Free"
- },
- {
- "expr": "windows_logical_disk_size_bytes{instance=~\"$instance\"}",
- "legend": "{{volume}} Total"
- }
- ],
- "name": "Disk Free",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 0
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 18,
- "y": 5,
- "i": "fd93766b-1099-4791-ace1-2648a38a23fb"
- },
- "id": "fd93766b-1099-4791-ace1-2648a38a23fb"
- },
- {
- "id": "47cfd14a-7c12-4d42-aa98-c768633bb1b9",
- "type": "row",
- "name": "Disk IO",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 12,
- "i": "47cfd14a-7c12-4d42-aa98-c768633bb1b9"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "irate(windows_logical_disk_read_bytes_total{instance=~\"$instance\"}[5m])",
- "legend": "{{volume}} Read"
- },
- {
- "expr": "irate(windows_logical_disk_write_bytes_total{instance=~\"$instance\"}[5m])",
- "legend": "{{volume}} Write"
- }
- ],
- "name": "Read/Write Bytes / Second",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bytesIEC",
- "decimals": 2
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 13,
- "i": "1105b0bf-476d-428c-b01b-c7fef29ee5c2"
- },
- "id": "1105b0bf-476d-428c-b01b-c7fef29ee5c2"
- },
- {
- "targets": [
- {
- "expr": "irate(windows_logical_disk_reads_total{instance=~\"$instance\"}[5m])",
- "legend": "{{volume}} Read"
- },
- {
- "expr": "irate(windows_logical_disk_writes_total{instance=~\"$instance\"}[5m])",
- "legend": "{{volume}} Write"
- }
- ],
- "name": "Read/Write / Second",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "decimals": 2
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 13,
- "i": "470503f0-e414-48ec-88bf-1d5c885960d0"
- },
- "id": "470503f0-e414-48ec-88bf-1d5c885960d0"
- },
- {
- "id": "22ffcddd-74d1-4db3-bfa6-b5fecbf99c6e",
- "type": "row",
- "name": "Network",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 20,
- "i": "22ffcddd-74d1-4db3-bfa6-b5fecbf99c6e"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "irate(windows_net_bytes_sent_total{instance=~\"$instance\",nic!~'isatap.*|VPN.*'}[5m])*8",
- "legend": "{{nic}} Sent"
- },
- {
- "expr": "irate(windows_net_bytes_received_total{instance=~\"$instance\",nic!~'isatap.*|VPN.*'}[5m])*8",
- "legend": "{{nic}} Received"
- }
- ],
- "name": "Sent/Received bits / Second",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "util": "bitsIEC",
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 21,
- "i": "6a2d168f-c316-4e6f-b9b4-d91a0de6ea10"
- },
- "id": "6a2d168f-c316-4e6f-b9b4-d91a0de6ea10"
- },
- {
- "targets": [
- {
- "expr": "(irate(windows_net_bytes_total{instance=~\"$instance\",nic!~'isatap.*|VPN.*'}[5m]) * 8 / windows_net_current_bandwidth{instance=~\"$instance\",nic!~'isatap.*|VPN.*'}) * 100"
- }
- ],
- "name": "Network Util",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {
- "decimals": 1
- },
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 8,
- "y": 21,
- "i": "befa8f81-2ae5-4b93-8883-057a9bff79a8"
- },
- "id": "befa8f81-2ae5-4b93-8883-057a9bff79a8"
- },
- {
- "targets": [
- {
- "expr": "irate(windows_net_packets_outbound_discarded{instance=~\"$instance\", nic!~'isatap.*|VPN.*'}[5m]) + irate(windows_net_packets_outbound_errors{instance=~\"$instance\"}[5m])",
- "legend": "outbound"
- },
- {
- "expr": "irate(windows_net_packets_received_discarded{job=~\"$job\",instance=~\"$instance\", nic!~'isatap.*|VPN.*'}[5m]) + irate(windows_net_packets_received_errors{job=~\"$job\",instance=~\"$instance\"}[5m])",
- "legend": "received"
- }
- ],
- "name": "Packets / Second",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 21,
- "i": "f710ea1b-c8b3-4ca1-a8fc-4d2a8b21895d"
- },
- "id": "f710ea1b-c8b3-4ca1-a8fc-4d2a8b21895d"
- },
- {
- "id": "0a9d73c2-caff-4ae9-8159-2bc96dd847fb",
- "type": "row",
- "name": "System",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 28,
- "i": "0a9d73c2-caff-4ae9-8159-2bc96dd847fb"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "expr": "windows_system_threads{instance=~\"$instance\"}"
- }
- ],
- "name": "System Threads",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 29,
- "i": "7d995748-cf74-4ae7-9ad4-dab4eefd84f9"
- },
- "id": "7d995748-cf74-4ae7-9ad4-dab4eefd84f9"
- },
- {
- "targets": [
- {
- "expr": "irate(windows_system_exception_dispatches_total{instance=~\"$instance\"}[5m])"
- }
- ],
- "name": "System exception dispatches",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "desc"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 29,
- "i": "4cd91349-03ea-47b0-8c13-80191fc80e02"
- },
- "id": "4cd91349-03ea-47b0-8c13-80191fc80e02"
- }
- ]
- }
+ "name": "Windows - exporter",
+ "tags": "Windows Prometheus",
+ "ident": "",
+ "configs": {
+ "panels": [
+ {
+ "collapsed": true,
+ "id": "13fc4558-3a83-4165-bf93-bc4eaea0f097",
+ "layout": {
+ "h": 1,
+ "i": "13fc4558-3a83-4165-bf93-bc4eaea0f097",
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "name": "Basic Info",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "666cda14-4732-4f80-a024-675e2d244051",
+ "layout": {
+ "h": 3,
+ "i": "666cda14-4732-4f80-a024-675e2d244051",
+ "w": 6,
+ "x": 0,
+ "y": 1
+ },
+ "name": "Uptime",
+ "options": {
+ "standardOptions": {
+ "util": "humantimeSeconds"
+ }
+ },
+ "targets": [
+ {
+ "expr": "time() - windows_system_system_up_time{instance=~\"$instance\"}",
+ "legend": ""
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "164edb5c-d8f3-4b77-8af3-7907b24a1073",
+ "layout": {
+ "h": 3,
+ "i": "164edb5c-d8f3-4b77-8af3-7907b24a1073",
+ "w": 6,
+ "x": 6,
+ "y": 1
+ },
+ "name": "CPU Core Total",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "windows_cs_logical_processors{instance=~\"$instance\"}",
+ "legend": ""
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "e9ddf0d3-53e5-43a8-83c7-10aa9d0028ad",
+ "layout": {
+ "h": 3,
+ "i": "e9ddf0d3-53e5-43a8-83c7-10aa9d0028ad",
+ "w": 6,
+ "x": 12,
+ "y": 1
+ },
+ "name": "Memory Total",
+ "options": {
+ "standardOptions": {
+ "decimals": 0,
+ "util": "bytesIEC"
+ }
+ },
+ "targets": [
+ {
+ "expr": "windows_cs_physical_memory_bytes{instance=~\"$instance\"}"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {}
+ },
+ "id": "288ae77f-aa29-427c-932a-d0445e7d749e",
+ "layout": {
+ "h": 3,
+ "i": "288ae77f-aa29-427c-932a-d0445e7d749e",
+ "w": 6,
+ "x": 18,
+ "y": 1
+ },
+ "name": "Process Total",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "to": 100
+ },
+ "result": {
+ "color": "#109d06"
+ },
+ "type": "range"
+ },
+ {
+ "match": {
+ "from": 100
+ },
+ "result": {
+ "color": "#d11010"
+ },
+ "type": "range"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "windows_os_processes{instance=~\"$instance\"}"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "a0248950-a7c4-47f2-9e75-27666ef428cd",
+ "layout": {
+ "h": 1,
+ "i": "a0248950-a7c4-47f2-9e75-27666ef428cd",
+ "w": 24,
+ "x": 0,
+ "y": 4
+ },
+ "name": "CPU Memory Disk",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "b1c60c40-94ba-4b76-a688-1532e26d3a52",
+ "layout": {
+ "h": 7,
+ "i": "b1c60c40-94ba-4b76-a688-1532e26d3a52",
+ "w": 6,
+ "x": 0,
+ "y": 5
+ },
+ "name": "Cpu Util",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 2
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "100 * sum by (instance) (rate(windows_cpu_time_total{mode != 'idle'}[5m])) / count by (instance) (windows_cpu_core_frequency_mhz) ",
+ "legend": "CPU Util"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "799d9f5c-450a-4db3-80d0-71a64c6d8d73",
+ "layout": {
+ "h": 7,
+ "i": "799d9f5c-450a-4db3-80d0-71a64c6d8d73",
+ "w": 6,
+ "x": 6,
+ "y": 5
+ },
+ "name": "Memory Util",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 2
+ },
+ "thresholds": {
+ "steps": [
+ {
+ "color": "#e71313",
+ "value": 70
+ }
+ ]
+ },
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "100 - (windows_os_physical_memory_free_bytes{instance=~\"$instance\"} / windows_cs_physical_memory_bytes{instance=~\"$instance\"})*100"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "1dae2abc-d7eb-47b9-8280-fcc1810803cb",
+ "layout": {
+ "h": 7,
+ "i": "1dae2abc-d7eb-47b9-8280-fcc1810803cb",
+ "w": 6,
+ "x": 12,
+ "y": 5
+ },
+ "name": "Disk Util",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 2
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "100 - (windows_logical_disk_free_bytes{instance=~\"$instance\"} / windows_logical_disk_size_bytes{instance=~\"$instance\"})*100",
+ "legend": "{{volume}}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "fd93766b-1099-4791-ace1-2648a38a23fb",
+ "layout": {
+ "h": 7,
+ "i": "fd93766b-1099-4791-ace1-2648a38a23fb",
+ "w": 6,
+ "x": 18,
+ "y": 5
+ },
+ "name": "Disk Free",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 0,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "windows_logical_disk_free_bytes{instance=~\"$instance\"}",
+ "legend": "{{volume}} Free"
+ },
+ {
+ "expr": "windows_logical_disk_size_bytes{instance=~\"$instance\"}",
+ "legend": "{{volume}} Total"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "47cfd14a-7c12-4d42-aa98-c768633bb1b9",
+ "layout": {
+ "h": 1,
+ "i": "47cfd14a-7c12-4d42-aa98-c768633bb1b9",
+ "w": 24,
+ "x": 0,
+ "y": 12
+ },
+ "name": "Disk IO",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "1105b0bf-476d-428c-b01b-c7fef29ee5c2",
+ "layout": {
+ "h": 7,
+ "i": "1105b0bf-476d-428c-b01b-c7fef29ee5c2",
+ "w": 12,
+ "x": 0,
+ "y": 13
+ },
+ "name": "Read/Write Bytes / Second",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 2,
+ "util": "bytesIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(windows_logical_disk_read_bytes_total{instance=~\"$instance\"}[5m])",
+ "legend": "{{volume}} Read"
+ },
+ {
+ "expr": "irate(windows_logical_disk_write_bytes_total{instance=~\"$instance\"}[5m])",
+ "legend": "{{volume}} Write"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "470503f0-e414-48ec-88bf-1d5c885960d0",
+ "layout": {
+ "h": 7,
+ "i": "470503f0-e414-48ec-88bf-1d5c885960d0",
+ "w": 12,
+ "x": 12,
+ "y": 13
+ },
+ "name": "Read/Write / Second",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 2
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(windows_logical_disk_reads_total{instance=~\"$instance\"}[5m])",
+ "legend": "{{volume}} Read"
+ },
+ {
+ "expr": "irate(windows_logical_disk_writes_total{instance=~\"$instance\"}[5m])",
+ "legend": "{{volume}} Write"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "22ffcddd-74d1-4db3-bfa6-b5fecbf99c6e",
+ "layout": {
+ "h": 1,
+ "i": "22ffcddd-74d1-4db3-bfa6-b5fecbf99c6e",
+ "w": 24,
+ "x": 0,
+ "y": 20
+ },
+ "name": "Network",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "6a2d168f-c316-4e6f-b9b4-d91a0de6ea10",
+ "layout": {
+ "h": 7,
+ "i": "6a2d168f-c316-4e6f-b9b4-d91a0de6ea10",
+ "w": 8,
+ "x": 0,
+ "y": 21
+ },
+ "name": "Sent/Received bits / Second",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1,
+ "util": "bitsIEC"
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(windows_net_bytes_sent_total{instance=~\"$instance\",nic!~'isatap.*|VPN.*'}[5m])*8",
+ "legend": "{{nic}} Sent"
+ },
+ {
+ "expr": "irate(windows_net_bytes_received_total{instance=~\"$instance\",nic!~'isatap.*|VPN.*'}[5m])*8",
+ "legend": "{{nic}} Received"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "befa8f81-2ae5-4b93-8883-057a9bff79a8",
+ "layout": {
+ "h": 7,
+ "i": "befa8f81-2ae5-4b93-8883-057a9bff79a8",
+ "w": 8,
+ "x": 8,
+ "y": 21
+ },
+ "name": "Network Util",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {
+ "decimals": 1
+ },
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "(irate(windows_net_bytes_total{instance=~\"$instance\",nic!~'isatap.*|VPN.*'}[5m]) * 8 / windows_net_current_bandwidth{instance=~\"$instance\",nic!~'isatap.*|VPN.*'}) * 100"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "f710ea1b-c8b3-4ca1-a8fc-4d2a8b21895d",
+ "layout": {
+ "h": 7,
+ "i": "f710ea1b-c8b3-4ca1-a8fc-4d2a8b21895d",
+ "w": 8,
+ "x": 16,
+ "y": 21
+ },
+ "name": "Packets / Second",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(windows_net_packets_outbound_discarded{instance=~\"$instance\", nic!~'isatap.*|VPN.*'}[5m]) + irate(windows_net_packets_outbound_errors{instance=~\"$instance\"}[5m])",
+ "legend": "outbound"
+ },
+ {
+ "expr": "irate(windows_net_packets_received_discarded{job=~\"$job\",instance=~\"$instance\", nic!~'isatap.*|VPN.*'}[5m]) + irate(windows_net_packets_received_errors{job=~\"$job\",instance=~\"$instance\"}[5m])",
+ "legend": "received"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "collapsed": true,
+ "id": "0a9d73c2-caff-4ae9-8159-2bc96dd847fb",
+ "layout": {
+ "h": 1,
+ "i": "0a9d73c2-caff-4ae9-8159-2bc96dd847fb",
+ "w": 24,
+ "x": 0,
+ "y": 28
+ },
+ "name": "System",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "7d995748-cf74-4ae7-9ad4-dab4eefd84f9",
+ "layout": {
+ "h": 7,
+ "i": "7d995748-cf74-4ae7-9ad4-dab4eefd84f9",
+ "w": 12,
+ "x": 0,
+ "y": 29
+ },
+ "name": "System Threads",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "windows_system_threads{instance=~\"$instance\"}"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "4cd91349-03ea-47b0-8c13-80191fc80e02",
+ "layout": {
+ "h": 7,
+ "i": "4cd91349-03ea-47b0-8c13-80191fc80e02",
+ "w": 12,
+ "x": 12,
+ "y": 29
+ },
+ "name": "System exception dispatches",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "expr": "irate(windows_system_exception_dispatches_total{instance=~\"$instance\"}[5m])"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "label_values(windows_system_system_up_time, instance)",
+ "name": "instance",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ }
+ ],
+ "version": "3.0.0"
+ }
}
\ No newline at end of file
diff --git a/docker/integrations/zookeeper/dashboards/zookeeper_by_exporter.json b/docker/integrations/zookeeper/dashboards/zookeeper_by_exporter.json
index 47670087a275e50d6cccda747b33523effa87d79..45fe8f234be27a611f4dc173ca64bb509eee5864 100644
--- a/docker/integrations/zookeeper/dashboards/zookeeper_by_exporter.json
+++ b/docker/integrations/zookeeper/dashboards/zookeeper_by_exporter.json
@@ -1,425 +1,460 @@
{
- "name": "Zookeeper - exporter",
- "tags": "",
- "ident": "",
- "configs": {
- "var": [
- {
- "name": "job",
- "definition": "label_values(zk_up,job)"
- },
- {
- "definition": "label_values(zk_up,instance)",
- "name": "instance"
- }
- ],
- "version": "2.0.0",
- "panels": [
- {
- "id": "2718a256-a74a-4661-ae74-fe21d765c8b4",
- "type": "row",
- "name": "overview",
- "layout": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0,
- "i": "2718a256-a74a-4661-ae74-fe21d765c8b4"
- },
- "collapsed": true
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "zk_up{job=\"$job\", instance=\"$instance\"}",
- "legend": "up"
- }
- ],
- "name": "up",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {
- "value": 40
- }
- },
- "options": {
- "valueMappings": [
- {
- "type": "special",
- "match": {
- "special": 1
- },
- "result": {
- "color": "#3d950e",
- "text": "UP"
- }
- },
- {
- "type": "special",
- "match": {
- "special": 0
- },
- "result": {
- "color": "#f01414",
- "text": "DOWN"
- }
- }
- ],
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 0,
- "y": 1,
- "i": "4474ec3c-360b-4b3c-ab16-978305ecc438"
- },
- "id": "4474ec3c-360b-4b3c-ab16-978305ecc438"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "zk_znode_count{job=~\"$job\", instance=~\"$instance\"}",
- "legend": "{{instance}}"
- }
- ],
- "name": "zk_znode_count",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {
- "value": 50
- }
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 6,
- "y": 1,
- "i": "5ef1653d-ca20-47b9-9604-f3a0dfffbdd6"
- },
- "id": "5ef1653d-ca20-47b9-9604-f3a0dfffbdd6"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "zk_watch_count{job=~\"$job\", instance=~\"$instance\"}",
- "legend": "{{instance}}"
- }
- ],
- "name": "zk_watch_count",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {
- "value": 50
- }
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 12,
- "y": 1,
- "i": "fef22c82-540a-4662-9913-26b6b38e8aa3"
- },
- "id": "fef22c82-540a-4662-9913-26b6b38e8aa3"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "zk_ephemerals_count{job=~\"$job\", instance=~\"$instance\"}",
- "legend": "zk_ephemerals_count"
- }
- ],
- "name": "zk_ephemerals_count",
- "custom": {
- "textMode": "value",
- "colorMode": "value",
- "calc": "lastNotNull",
- "colSpan": 1,
- "textSize": {
- "value": 50
- }
- },
- "options": {
- "standardOptions": {}
- },
- "version": "2.0.0",
- "type": "stat",
- "layout": {
- "h": 3,
- "w": 6,
- "x": 18,
- "y": 1,
- "i": "12510246-7469-4868-9dad-8d761f574ad3"
- },
- "id": "12510246-7469-4868-9dad-8d761f574ad3"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "rate(zk_packets_sent{job=~\"$job\", instance=~\"$instance\"}[5m])",
- "legend": "{{instance}}-sent"
- },
- {
- "expr": "rate(zk_packets_received{job=~\"$job\", instance=~\"$instance\"}[5m])",
- "refId": "B",
- "legend": "{{instance}}-received"
- }
- ],
- "name": "Pakages",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 2,
- "i": "0f7b7057-8446-49b8-ab45-beb9fb2a6af3"
- },
- "id": "0f7b7057-8446-49b8-ab45-beb9fb2a6af3"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "zk_num_alive_connections{job=~\"$job\", instance=~\"$instance\"}",
- "legend": "{{instance}}"
- }
- ],
- "name": "alive_connections",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 4,
- "i": "3e2d6853-4e2b-4b71-8601-fd2ececceb30"
- },
- "id": "3e2d6853-4e2b-4b71-8601-fd2ececceb30"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "zk_open_file_descriptor_count{job=~\"$job\", instance=~\"$instance\"}",
- "legend": "{{instance}}-open"
- },
- {
- "expr": "zk_max_file_descriptor_count{job=~\"$job\", instance=~\"$instance\"}",
- "refId": "B",
- "legend": "{{instance}}-max"
- }
- ],
- "name": "file_descriptor",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 12,
- "y": 4,
- "i": "83205acd-35b8-404b-9883-cf3f656b022b"
- },
- "id": "83205acd-35b8-404b-9883-cf3f656b022b"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "zk_avg_latency{job=~\"$job\", instance=~\"$instance\"}",
- "legend": "{{instance}}-avg"
- },
- {
- "expr": "zk_min_latency{job=~\"$job\", instance=~\"$instance\"}",
- "refId": "B",
- "legend": "{{instance}}-min"
- },
- {
- "expr": "zk_max_latency{job=~\"$job\", instance=~\"$instance\"}",
- "refId": "C",
- "legend": "{{instance}}-max"
- }
- ],
- "name": "latency(ms)",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 18,
- "y": 4,
- "i": "ea71f66f-690f-4e4e-95bc-b835f0d6027e"
- },
- "id": "ea71f66f-690f-4e4e-95bc-b835f0d6027e"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "zk_outstanding_requests{job=~\"$job\", instance=~\"$instance\"}",
- "legend": "{{instance}}"
- }
- ],
- "name": "outstanding_requests",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 6,
- "x": 0,
- "y": 4,
- "i": "906d651b-234b-4e38-b90f-7ac31b267eb8"
- },
- "id": "906d651b-234b-4e38-b90f-7ac31b267eb8"
- },
- {
- "targets": [
- {
- "refId": "A",
- "expr": "zk_approximate_data_size{job=~\"$job\", instance=~\"$instance\"}",
- "legend": "{{instance}}"
- }
- ],
- "name": "approximate_data_size",
- "options": {
- "tooltip": {
- "mode": "all",
- "sort": "none"
- },
- "legend": {
- "displayMode": "hidden"
- },
- "standardOptions": {},
- "thresholds": {}
- },
- "custom": {
- "drawStyle": "lines",
- "lineInterpolation": "smooth",
- "fillOpacity": 0.5,
- "stack": "off"
- },
- "version": "2.0.0",
- "type": "timeseries",
- "layout": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 2,
- "i": "83bb38e0-0074-4a80-ae2a-ea242db0da7b"
- },
- "id": "83bb38e0-0074-4a80-ae2a-ea242db0da7b"
- }
- ]
- }
+ "name": "Zookeeper - exporter",
+ "tags": "",
+ "ident": "",
+ "configs": {
+ "panels": [
+ {
+ "collapsed": true,
+ "id": "2718a256-a74a-4661-ae74-fe21d765c8b4",
+ "layout": {
+ "h": 1,
+ "i": "2718a256-a74a-4661-ae74-fe21d765c8b4",
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "name": "overview",
+ "type": "row"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {
+ "value": 40
+ }
+ },
+ "id": "4474ec3c-360b-4b3c-ab16-978305ecc438",
+ "layout": {
+ "h": 3,
+ "i": "4474ec3c-360b-4b3c-ab16-978305ecc438",
+ "w": 6,
+ "x": 0,
+ "y": 1
+ },
+ "name": "up",
+ "options": {
+ "standardOptions": {},
+ "valueMappings": [
+ {
+ "match": {
+ "special": 1
+ },
+ "result": {
+ "color": "#3d950e",
+ "text": "UP"
+ },
+ "type": "special"
+ },
+ {
+ "match": {
+ "special": 0
+ },
+ "result": {
+ "color": "#f01414",
+ "text": "DOWN"
+ },
+ "type": "special"
+ }
+ ]
+ },
+ "targets": [
+ {
+ "expr": "zk_up{job=\"$job\", instance=\"$instance\"}",
+ "legend": "up",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {
+ "value": 50
+ }
+ },
+ "id": "5ef1653d-ca20-47b9-9604-f3a0dfffbdd6",
+ "layout": {
+ "h": 3,
+ "i": "5ef1653d-ca20-47b9-9604-f3a0dfffbdd6",
+ "w": 6,
+ "x": 6,
+ "y": 1
+ },
+ "name": "zk_znode_count",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "zk_znode_count{job=~\"$job\", instance=~\"$instance\"}",
+ "legend": "{{instance}}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {
+ "value": 50
+ }
+ },
+ "id": "fef22c82-540a-4662-9913-26b6b38e8aa3",
+ "layout": {
+ "h": 3,
+ "i": "fef22c82-540a-4662-9913-26b6b38e8aa3",
+ "w": 6,
+ "x": 12,
+ "y": 1
+ },
+ "name": "zk_watch_count",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "zk_watch_count{job=~\"$job\", instance=~\"$instance\"}",
+ "legend": "{{instance}}",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "calc": "lastNotNull",
+ "colSpan": 1,
+ "colorMode": "value",
+ "textMode": "value",
+ "textSize": {
+ "value": 50
+ }
+ },
+ "id": "12510246-7469-4868-9dad-8d761f574ad3",
+ "layout": {
+ "h": 3,
+ "i": "12510246-7469-4868-9dad-8d761f574ad3",
+ "w": 6,
+ "x": 18,
+ "y": 1
+ },
+ "name": "zk_ephemerals_count",
+ "options": {
+ "standardOptions": {}
+ },
+ "targets": [
+ {
+ "expr": "zk_ephemerals_count{job=~\"$job\", instance=~\"$instance\"}",
+ "legend": "zk_ephemerals_count",
+ "refId": "A"
+ }
+ ],
+ "type": "stat",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "0f7b7057-8446-49b8-ab45-beb9fb2a6af3",
+ "layout": {
+ "h": 7,
+ "i": "0f7b7057-8446-49b8-ab45-beb9fb2a6af3",
+ "w": 12,
+ "x": 0,
+ "y": 2
+ },
+ "name": "Pakages",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "rate(zk_packets_sent{job=~\"$job\", instance=~\"$instance\"}[5m])",
+ "legend": "{{instance}}-sent",
+ "refId": "A"
+ },
+ {
+ "expr": "rate(zk_packets_received{job=~\"$job\", instance=~\"$instance\"}[5m])",
+ "legend": "{{instance}}-received",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "3e2d6853-4e2b-4b71-8601-fd2ececceb30",
+ "layout": {
+ "h": 7,
+ "i": "3e2d6853-4e2b-4b71-8601-fd2ececceb30",
+ "w": 6,
+ "x": 6,
+ "y": 4
+ },
+ "name": "alive_connections",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "zk_num_alive_connections{job=~\"$job\", instance=~\"$instance\"}",
+ "legend": "{{instance}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "83205acd-35b8-404b-9883-cf3f656b022b",
+ "layout": {
+ "h": 7,
+ "i": "83205acd-35b8-404b-9883-cf3f656b022b",
+ "w": 6,
+ "x": 12,
+ "y": 4
+ },
+ "name": "file_descriptor",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "zk_open_file_descriptor_count{job=~\"$job\", instance=~\"$instance\"}",
+ "legend": "{{instance}}-open",
+ "refId": "A"
+ },
+ {
+ "expr": "zk_max_file_descriptor_count{job=~\"$job\", instance=~\"$instance\"}",
+ "legend": "{{instance}}-max",
+ "refId": "B"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "ea71f66f-690f-4e4e-95bc-b835f0d6027e",
+ "layout": {
+ "h": 7,
+ "i": "ea71f66f-690f-4e4e-95bc-b835f0d6027e",
+ "w": 6,
+ "x": 18,
+ "y": 4
+ },
+ "name": "latency(ms)",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "zk_avg_latency{job=~\"$job\", instance=~\"$instance\"}",
+ "legend": "{{instance}}-avg",
+ "refId": "A"
+ },
+ {
+ "expr": "zk_min_latency{job=~\"$job\", instance=~\"$instance\"}",
+ "legend": "{{instance}}-min",
+ "refId": "B"
+ },
+ {
+ "expr": "zk_max_latency{job=~\"$job\", instance=~\"$instance\"}",
+ "legend": "{{instance}}-max",
+ "refId": "C"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "906d651b-234b-4e38-b90f-7ac31b267eb8",
+ "layout": {
+ "h": 7,
+ "i": "906d651b-234b-4e38-b90f-7ac31b267eb8",
+ "w": 6,
+ "x": 0,
+ "y": 4
+ },
+ "name": "outstanding_requests",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "zk_outstanding_requests{job=~\"$job\", instance=~\"$instance\"}",
+ "legend": "{{instance}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ },
+ {
+ "custom": {
+ "drawStyle": "lines",
+ "fillOpacity": 0.5,
+ "lineInterpolation": "smooth",
+ "stack": "off"
+ },
+ "id": "83bb38e0-0074-4a80-ae2a-ea242db0da7b",
+ "layout": {
+ "h": 7,
+ "i": "83bb38e0-0074-4a80-ae2a-ea242db0da7b",
+ "w": 12,
+ "x": 12,
+ "y": 2
+ },
+ "name": "approximate_data_size",
+ "options": {
+ "legend": {
+ "displayMode": "hidden"
+ },
+ "standardOptions": {},
+ "thresholds": {},
+ "tooltip": {
+ "mode": "all",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "expr": "zk_approximate_data_size{job=~\"$job\", instance=~\"$instance\"}",
+ "legend": "{{instance}}",
+ "refId": "A"
+ }
+ ],
+ "type": "timeseries",
+ "version": "2.0.0",
+ "datasourceCate": "prometheus",
+ "datasourceValue": "${prom}"
+ }
+ ],
+ "var": [
+ {
+ "name": "prom",
+ "type": "datasource",
+ "definition": "prometheus"
+ },
+ {
+ "definition": "label_values(zk_up,job)",
+ "name": "job",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ },
+ {
+ "definition": "label_values(zk_up,instance)",
+ "name": "instance",
+ "type": "query",
+ "datasource": {
+ "cate": "prometheus",
+ "value": "${prom}"
+ }
+ }
+ ],
+ "version": "3.0.0"
+ }
}
\ No newline at end of file