{ "id": 0, "group_id": 0, "name": "GitLab - Machine Performance", "ident": "", "tags": "", "create_at": 0, "create_by": "", "update_at": 0, "update_by": "", "configs": { "links": [], "panels": [ { "custom": { "calc": "lastNotNull", "colSpan": 1, "colorMode": "value", "graphMode": "none", "textMode": "value", "textSize": {}, "valueField": "Value" }, "datasourceCate": "prometheus", "datasourceValue": "${DS_PROMETHEUS}", "id": "a4389d18-8aed-4207-8fa9-4b25da036d6a", "layout": { "h": 3, "i": "a4389d18-8aed-4207-8fa9-4b25da036d6a", "isResizable": true, "w": 5, "x": 0, "y": 0 }, "links": [], "maxPerRow": 4, "name": "Uptime", "options": { "standardOptions": { "decimals": 0, "util": "none" }, "thresholds": { "steps": [ { "color": "#73BF69", "type": "base", "value": null } ] }, "valueMappings": [] }, "targets": [ { "expr": "node_boot_time_seconds{instance=~\"$instance\"} / 60 / 60 /24 / 30 / 365", "legend": "Uptime", "refId": "B" } ], "transformations": [ { "id": "organize", "options": {} } ], "type": "stat", "version": "3.0.0" }, { "custom": { "calc": "lastNotNull", "colSpan": 1, "colorMode": "value", "graphMode": "none", "textMode": "value", "textSize": {}, "valueField": "service" }, "datasourceCate": "prometheus", "datasourceValue": "${DS_PROMETHEUS}", "id": "fe9d5645-e775-446e-876b-35852b751961", "layout": { "h": 3, "i": "fe9d5645-e775-446e-876b-35852b751961", "isResizable": true, "w": 2, "x": 5, "y": 0 }, "links": [], "maxPerRow": 4, "name": "Running", "options": { "standardOptions": { "util": "none" }, "thresholds": { "steps": [ { "color": "#73BF69", "type": "base", "value": null } ] }, "valueMappings": [] }, "targets": [ { "expr": "node_boot_time_seconds{instance=~\"$instance\"} / 60 / 60 /24 / 30 / 365", "legend": "Uptime", "refId": "B" } ], "transformations": [ { "id": "organize", "options": {} } ], "type": "stat", "version": "3.0.0" }, { "custom": { "baseColor": "#9470FF", "calc": "avg", "serieWidth": 20, "sortOrder": "desc" }, "datasourceCate": "prometheus", "datasourceValue": "${DS_PROMETHEUS}", "description": "", "id": "3190bf4b-c7a3-4044-955c-f488b31a200b", "layout": { "h": 3, "i": "3190bf4b-c7a3-4044-955c-f488b31a200b", "isResizable": true, "w": 5, "x": 7, "y": 0 }, "links": [], "maxPerRow": 4, "name": "NTP", "options": { "standardOptions": { "util": "milliseconds" }, "valueMappings": [] }, "targets": [ { "expr": "node_timex_sync_status{instance=\"$instance\"}", "legend": "NTP Enabled", "refId": "A" }, { "expr": "node_timex_offset_seconds{instance=\"$instance\"}", "legend": "NTP Offset", "refId": "B" } ], "transformations": [ { "id": "organize", "options": {} } ], "type": "barGauge", "version": "3.0.0" }, { "custom": { "calc": "lastNotNull", "colorDomainAuto": true, "colorRange": [ "#83c898", "#c2c2c2", "#fc653f" ], "reverseColorOrder": false, "textMode": "valueAndName" }, "datasourceCate": "prometheus", "datasourceValue": "${DS_PROMETHEUS}", "id": "f1c435fa-8c9d-40cc-96ab-54889f32a178", "layout": { "h": 3, "i": "f1c435fa-8c9d-40cc-96ab-54889f32a178", "isResizable": true, "w": 12, "x": 12, "y": 0 }, "links": [], "maxPerRow": 4, "name": "System Info", "options": { "standardOptions": {} }, "targets": [ { "expr": "count(count(node_cpu_seconds_total{instance=~\"$instance\"}) by (cpu))", "legend": "Core", "refId": "A" }, { "expr": "node_memory_MemTotal_bytes{instance=~\"$instance\"}", "legend": "Mem", "refId": "B" }, { "expr": "node_memory_SwapTotal_bytes{instance=~\"$instance\"}", "legend": "Swap", "refId": "C" }, { "expr": "sum(node_filesystem_size_bytes{instance=~\"$instance\"}) ", "legend": "Disk", "refId": "D" }, { "expr": "node_filefd_allocated{instance=~\"$instance\"}", "legend": "Openfiles", "refId": "E" }, { "expr": "rate(node_context_switches_total{instance=~\"$instance\"}[1m])", "legend": "ContextSwitch", "refId": "F" } ], "transformations": [ { "id": "organize", "options": {} } ], "type": "hexbin", "version": "3.0.0" }, { "custom": { "drawStyle": "lines", "fillOpacity": 0.3, "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, "scaleDistribution": { "type": "linear" }, "spanNulls": false, "stack": "off" }, "datasourceCate": "prometheus", "datasourceValue": "${DS_PROMETHEUS}", "id": "d0add8e0-c815-4442-8a3b-d86d3bc3d8fd", "layout": { "h": 7, "i": "d0add8e0-c815-4442-8a3b-d86d3bc3d8fd", "isResizable": true, "w": 9, "x": 0, "y": 3 }, "links": [], "maxPerRow": 4, "name": "Load Average", "options": { "legend": { "displayMode": "hidden" }, "standardOptions": {}, "thresholds": { "steps": [ { "color": "#634CD9", "type": "base", "value": null } ] }, "tooltip": { "mode": "all", "sort": "none" } }, "targets": [ { "expr": "max(node_load1{instance=~\"$instance\"}) / max(count(node_cpu_seconds_total{instance=~\"$instance\", mode=~\"system\"}))", "legend": "1m", "refId": "A" }, { "expr": "max(node_load5{instance=~\"$instance\"}) / max(count(node_cpu_seconds_total{instance=~\"$instance\", mode=~\"system\"}))", "legend": "5m", "refId": "B" }, { "expr": "max(node_load15{instance=~\"$instance\"}) / max(count(node_cpu_seconds_total{instance=~\"$instance\", mode=~\"system\"}))", "legend": "15m", "refId": "C" } ], "transformations": [ { "id": "organize", "options": {} } ], "type": "timeseries", "version": "3.0.0" }, { "custom": { "drawStyle": "lines", "fillOpacity": 0.3, "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, "scaleDistribution": { "type": "linear" }, "spanNulls": false, "stack": "off" }, "datasourceCate": "prometheus", "datasourceValue": "${DS_PROMETHEUS}", "id": "83f3134f-1fdb-4bd6-bc2e-7d32222c2660", "layout": { "h": 7, "i": "83f3134f-1fdb-4bd6-bc2e-7d32222c2660", "isResizable": true, "w": 15, "x": 9, "y": 3 }, "links": [], "maxPerRow": 4, "name": "Resource Usage", "options": { "legend": { "displayMode": "hidden" }, "standardOptions": {}, "thresholds": { "steps": [ { "color": "#634CD9", "type": "base", "value": null } ] }, "tooltip": { "mode": "all", "sort": "none" } }, "targets": [ { "expr": "1 - (avg(irate(node_cpu_seconds_total{instance=~\"$instance\",mode=~\"idle\"}[2m])))", "legend": "CPU", "refId": "A" }, { "expr": "(node_memory_MemTotal_bytes{instance=~\"$instance\"} - (node_memory_MemFree_bytes{instance=~\"$instance\"} + node_memory_Buffers_bytes{instance=~\"$instance\"} + node_memory_Cached_bytes{instance=~\"$instance\"})) / node_memory_MemTotal_bytes{instance=~\"$instance\"}", "legend": "MEM", "refId": "B" }, { "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$instance\",mode=~\"iowait\"}[2m]))", "legend": "IOWAIT", "refId": "C" } ], "transformations": [ { "id": "organize", "options": {} } ], "type": "timeseries", "version": "3.0.0" }, { "custom": { "drawStyle": "lines", "fillOpacity": 0.3, "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, "scaleDistribution": { "type": "linear" }, "spanNulls": false, "stack": "off" }, "datasourceCate": "prometheus", "datasourceValue": "${DS_PROMETHEUS}", "id": "2a57ae69-c0e1-447c-825d-bcee2bcb6d3f", "layout": { "h": 5, "i": "2a57ae69-c0e1-447c-825d-bcee2bcb6d3f", "isResizable": true, "w": 24, "x": 0, "y": 10 }, "links": [], "maxPerRow": 4, "name": "Memory Usage", "options": { "legend": { "displayMode": "list", "placement": "bottom" }, "standardOptions": {}, "thresholds": { "steps": [ { "color": "#634CD9", "type": "base", "value": null } ] }, "tooltip": { "mode": "all", "sort": "desc" } }, "targets": [ { "expr": "node_memory_MemAvailable_bytes{instance=~\"$instance\"}", "legend": "Available", "refId": "A" }, { "expr": "node_memory_Buffers_bytes{instance=~\"$instance\"} + node_memory_Cached_bytes{instance=~\"$instance\"}", "legend": "Buffers/Cached", "refId": "B" }, { "expr": "node_memory_MemTotal_bytes{instance=~\"$instance\"} - node_memory_MemAvailable_bytes{instance=~\"$instance\"}", "legend": "Used", "refId": "C" }, { "expr": "node_memory_MemFree_bytes{instance=~\"$instance\"}", "legend": "Free", "refId": "D" }, { "expr": "node_memory_MemTotal_bytes{instance=~\"$instance\"}", "legend": "Total", "refId": "E" } ], "transformations": [ { "id": "organize", "options": {} } ], "type": "timeseries", "version": "3.0.0" }, { "custom": { "drawStyle": "lines", "fillOpacity": 0.1, "gradientMode": "none", "lineInterpolation": "linear", "lineWidth": 1, "scaleDistribution": { "type": "linear" }, "spanNulls": false, "stack": "off" }, "datasourceCate": "prometheus", "datasourceValue": "${DS_PROMETHEUS}", "id": "f291673f-3b9d-4b4f-a2b1-2ed7131e57f0", "layout": { "h": 9, "i": "f291673f-3b9d-4b4f-a2b1-2ed7131e57f0", "isResizable": true, "w": 15, "x": 0, "y": 15 }, "links": [], "maxPerRow": 4, "name": "Disk IO", "options": { "legend": { "displayMode": "list", "placement": "bottom" }, "standardOptions": { "util": "none" }, "thresholds": { "steps": [ { "color": "#73BF69", "type": "base", "value": null } ] }, "tooltip": { "mode": "multi" } }, "targets": [ { "expr": "sum by (instance) (irate(node_disk_reads_completed_total{instance=~\"$instance\"}[1m]))", "legend": "{{instance}}-Reads", "refId": "A" }, { "expr": "sum by (instance) (irate(node_disk_writes_completed_total{instance=~\"$instance\"}[1m]))", "legend": "{{instance}}-Writes", "refId": "B" }, { "expr": "sum by (instance) (node_disk_io_now{instance=~\"$instance\"})", "legend": "{{instance}}-CurrentIO", "refId": "C" }, { "expr": "sum by (instance) (irate(node_disk_read_time_seconds_total{instance=~\"$instance\"}[5m])) / sum by (instance) (irate(node_disk_reads_completed_total{instance=~\"$instance\"}[5m]))", "legend": "{{instance}}-Read-consuming", "refId": "D" }, { "expr": "sum by (instance) (irate(node_disk_write_time_seconds_total{instance=~\"$instance\"}[5m])) / sum by (instance) (irate(node_disk_writes_completed_total{instance=~\"$instance\"}[5m]))", "legend": "{{instance}}-Write-consuming", "refId": "E" } ], "transformations": [ { "id": "organize", "options": {} } ], "type": "timeseries", "version": "3.0.0" }, { "custom": { "drawStyle": "lines", "fillOpacity": 0.3, "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 2, "scaleDistribution": { "type": "linear" }, "spanNulls": false, "stack": "off" }, "datasourceCate": "prometheus", "datasourceValue": "${DS_PROMETHEUS}", "id": "8cb012a2-113c-4d06-8bea-da7d14a870d2", "layout": { "h": 9, "i": "8cb012a2-113c-4d06-8bea-da7d14a870d2", "isResizable": true, "w": 9, "x": 15, "y": 15 }, "links": [], "maxPerRow": 4, "name": "Disk Usage", "options": { "legend": { "displayMode": "list", "placement": "bottom" }, "standardOptions": {}, "thresholds": { "steps": [ { "color": "#634CD9", "type": "base", "value": null } ] }, "tooltip": { "mode": "all", "sort": "none" } }, "targets": [ { "expr": "node_filesystem_avail_bytes{instance=~\"$instance\",fstype=~\"ext4|xfs|nfs\"}", "instant": false, "legend": "{{device}}", "refId": "A" }, { "expr": "1-(node_filesystem_free_bytes{instance=~\"$instance\",fstype=~\"ext4|xfs|nfs\"} / node_filesystem_size_bytes{instance=\"$instance\",fstype=~\"ext4|xfs|nfs\"})", "legend": "{{device}}", "refId": "B" }, { "expr": "sum(node_filesystem_size_bytes{instance=~\"$instance\",fstype=~\"ext4|xfs|nfs\"})", "legend": "{{device}}", "refId": "C" } ], "transformations": [ { "id": "organize", "options": {} } ], "type": "timeseries", "version": "3.0.0" }, { "custom": { "drawStyle": "lines", "fillOpacity": 0.3, "gradientMode": "opacity", "lineInterpolation": "linear", "lineWidth": 2, "scaleDistribution": { "type": "linear" }, "spanNulls": false, "stack": "off" }, "datasourceCate": "prometheus", "datasourceValue": "${DS_PROMETHEUS}", "id": "2f11831d-6bdd-4cfa-9b3f-3bc5b1722185", "layout": { "h": 10, "i": "2f11831d-6bdd-4cfa-9b3f-3bc5b1722185", "isResizable": true, "w": 24, "x": 0, "y": 24 }, "links": [], "maxPerRow": 4, "name": "Network Traffic", "options": { "legend": { "displayMode": "hidden" }, "standardOptions": {}, "thresholds": { "steps": [ { "color": "#634CD9", "type": "base", "value": null } ] }, "tooltip": { "mode": "all", "sort": "none" } }, "targets": [ { "expr": "sum by (instance) (irate(node_network_receive_bytes_total{instance=~\"$instance\",device!~\"tap.*|veth.*|br.*|docker.*|virbr*|lo*|nointernet*\"}[5m]))", "legend": "{{instance}}-{{device}}-receive", "refId": "A" }, { "expr": "sum by (instance) (irate(node_network_transmit_bytes_total{instance=~\"$instance\",device!~\"tap.*|veth.*|br.*|docker.*|virbr*|lo*|nointernet*\"}[5m]))", "legend": "{{instance}}-{{device}}-transmit", "refId": "B" } ], "transformations": [ { "id": "organize", "options": {} } ], "type": "timeseries", "version": "3.0.0" } ], "var": [ { "definition": "prometheus", "name": "DS_PROMETHEUS", "type": "datasource" }, { "datasource": { "cate": "prometheus", "value": "${DS_PROMETHEUS}" }, "definition": "query_result(node_boot_time_seconds)", "multi": false, "name": "instance", "reg": "/instance=\"(?\u003ctext\u003e[^\"]*)/", "type": "query" } ], "version": "3.0.0" }, "public": 0, "public_cate": 0, "bgids": null, "built_in": 0, "hide": 0, "uuid": 1717556327479287000 }