26S02b

QK·5일 전
{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "datasource",
          "uid": "grafana"
        },
        "enable": true,
        "hide": true,
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 1,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 100,
      "title": "1. Distributed Lock Contention & Goroutines (Cluster / Per-Pod)",
      "type": "row"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "smooth",
            "lineWidth": 2
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 8,
        "x": 0,
        "y": 1
      },
      "id": 1,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max",
            "lastNotNull"
          ],
          "displayMode": "table",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "minio_locks_dist_avg_latency",
          "legendFormat": "Cluster Avg Lock Latency (s)",
          "refId": "A"
        }
      ],
      "title": "Distributed Lock Avg Latency",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "linear",
            "lineWidth": 2
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 8,
        "x": 8,
        "y": 1
      },
      "id": 2,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max",
            "lastNotNull"
          ],
          "displayMode": "table",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "sum(minio_locks_active_total{namespace=~\"$namespace\"})",
          "legendFormat": "Total Active Locks (All Pods)",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "sum(minio_locks_waiting_total{namespace=~\"$namespace\"})",
          "legendFormat": "Total Waiting Locks (All Pods)",
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "sum(minio_locks_waiting_total{namespace=~\"$namespace\"}) / clamp_min(count(count by (instance) (minio_api_requests_total{namespace=~\"$namespace\"})), 1)",
          "legendFormat": "Avg Waiting Locks / Pod (Normalized)",
          "refId": "C"
        }
      ],
      "title": "Active & Waiting Locks (Cluster Total & Avg/Pod)",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "linear",
            "lineWidth": 2
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 8,
        "x": 16,
        "y": 1
      },
      "id": 3,
      "options": {
        "legend": {
          "calcs": [
            "max",
            "lastNotNull"
          ],
          "displayMode": "table",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "topk(10, go_goroutines{namespace=~\"$namespace\"} or minio_process_goroutines{namespace=~\"$namespace\"})",
          "legendFormat": "{{instance}} (Pod)",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "avg(go_goroutines{namespace=~\"$namespace\"} or minio_process_goroutines{namespace=~\"$namespace\"})",
          "legendFormat": "Cluster Avg Goroutines / Pod",
          "refId": "B"
        }
      ],
      "title": "Top Pods Goroutines & Cluster Avg",
      "type": "timeseries"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 9
      },
      "id": 200,
      "title": "2. Bucket & API Activity (Normalized Rate & Top Contenders)",
      "type": "row"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "linear",
            "lineWidth": 2
          },
          "unit": "reqps"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 8,
        "x": 0,
        "y": 10
      },
      "id": 4,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "table",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "topk(10, sum by (bucket) (rate(minio_api_requests_total{namespace=~\"$namespace\", bucket=~\"$bucket\"}[5m])))",
          "legendFormat": "Total req/s: {{bucket}}",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "topk(10, sum by (bucket) (rate(minio_api_requests_total{namespace=~\"$namespace\", bucket=~\"$bucket\"}[5m])) / clamp_min(scalar(count(count by (instance) (minio_api_requests_total{namespace=~\"$namespace\"}))), 1))",
          "legendFormat": "Per-Pod req/s: {{bucket}}",
          "refId": "B"
        }
      ],
      "title": "Top 10 Buckets API Request Rate (Total & Per-Pod)",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "linear",
            "lineWidth": 2
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 8,
        "x": 8,
        "y": 10
      },
      "id": 5,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "table",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "topk(10, (sum by (bucket, api) (rate(minio_api_time_seconds_sum{namespace=~\"$namespace\", bucket=~\"$bucket\"}[5m]))) / clamp_min(sum by (bucket, api) (rate(minio_api_time_seconds_count{namespace=~\"$namespace\", bucket=~\"$bucket\"}[5m])), 0.001))",
          "legendFormat": "{{bucket}} - {{api}}",
          "refId": "A"
        }
      ],
      "title": "Top 10 Bucket & API Latency (Avg Duration)",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "bars",
            "lineWidth": 1
          },
          "unit": "errps"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 8,
        "x": 16,
        "y": 10
      },
      "id": 6,
      "options": {
        "legend": {
          "calcs": [
            "max",
            "sum"
          ],
          "displayMode": "table",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "topk(10, sum by (bucket, api, code) (rate(minio_api_requests_rejected_total{namespace=~\"$namespace\", bucket=~\"$bucket\"}[5m])))",
          "legendFormat": "Rejected: {{bucket}} - {{api}} ({{code}})",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "topk(10, sum by (bucket, api, code) (rate(minio_api_requests_total{namespace=~\"$namespace\", bucket=~\"$bucket\", code=~\"4..|5..\"}[5m])))",
          "legendFormat": "4xx/5xx: {{bucket}} - {{api}} ({{code}})",
          "refId": "B"
        }
      ],
      "title": "Failed / Rejected API Requests (Rate)",
      "type": "timeseries"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 18
      },
      "id": 300,
      "title": "3. Underlying Drive I/O & Latency Bottlenecks",
      "type": "row"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "linear",
            "lineWidth": 2
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 19
      },
      "id": 7,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "table",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "topk(10, rate(minio_node_drive_total_waiting_time_seconds{namespace=~\"$namespace\"}[5m]) / clamp_min(rate(minio_node_drive_total_waiting{namespace=~\"$namespace\"}[5m]), 0.001))",
          "legendFormat": "Drive Wait: {{instance}} - {{drive}}",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "topk(10, rate(minio_node_drive_latency_microseconds{namespace=~\"$namespace\"}[5m]) / 1000000)",
          "legendFormat": "Drive Latency: {{instance}} - {{drive}}",
          "refId": "B"
        }
      ],
      "title": "Top 10 Slowest Drives by I/O Wait Time / Latency",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "lineInterpolation": "linear",
            "lineWidth": 2
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 19
      },
      "id": 8,
      "options": {
        "legend": {
          "calcs": [
            "max",
            "lastNotNull"
          ],
          "displayMode": "table",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "topk(10, minio_node_drive_queue_length{namespace=~\"$namespace\"} or minio_node_drive_total_waiting{namespace=~\"$namespace\"})",
          "legendFormat": "Queue: {{instance}} - {{drive}}",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "expr": "topk(10, rate(node_disk_io_time_seconds_total{namespace=~\"$namespace\"}[5m]))",
          "legendFormat": "OS Disk IO Time: {{instance}} - {{device}}",
          "refId": "B"
        }
      ],
      "title": "Top 10 Drive Queue Length / Disk Saturation",
      "type": "timeseries"
    }
  ],
  "refresh": "30s",
  "schemaVersion": 38,
  "style": "dark",
  "tags": [
    "minio",
    "aistor",
    "v3",
    "troubleshooting",
    "locks"
  ],
  "templating": {
    "list": [
      {
        "current": {},
        "hide": 0,
        "label": "Data Source",
        "name": "DS_PROMETHEUS",
        "options": [],
        "query": "prometheus",
        "refresh": 1,
        "regex": "",
        "type": "datasource"
      },
      {
        "allValue": ".*",
        "current": {
          "selected": true,
          "text": "All",
          "value": "$__all"
        },
        "datasource": {
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "definition": "label_values(minio_api_requests_total, namespace)",
        "hide": 0,
        "includeAll": true,
        "label": "Namespace",
        "multi": false,
        "name": "namespace",
        "options": [],
        "query": {
          "query": "label_values(minio_api_requests_total, namespace)",
          "refId": "Prometheus-Namespace-Variable"
        },
        "refresh": 2,
        "regex": "",
        "type": "query"
      },
      {
        "allValue": ".*",
        "current": {
          "selected": true,
          "text": "All",
          "value": "$__all"
        },
        "datasource": {
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "definition": "label_values(minio_api_requests_total, bucket)",
        "hide": 0,
        "includeAll": true,
        "label": "Bucket",
        "multi": true,
        "name": "bucket",
        "options": [],
        "query": {
          "query": "label_values(minio_api_requests_total, bucket)",
          "refId": "Prometheus-Bucket-Variable"
        },
        "refresh": 2,
        "regex": "",
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-24h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m"
    ]
  },
  "timezone": "browser",
  "title": "MinIO AIStor v3 - Distributed Locks & Bottlenecks Diagnostic",
  "version": 2
}
profile
engineer

0개의 댓글