Host Metrics
Dash board for oceanbase host server, metrics collected using obagent
Dash board for oceanbase
{
  "__inputs": [
    {
      "name": "DS_XUERAN_TEST",
      "label": "datasource",
      "description": "prometheus datasource for host metrics",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.2.2"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "description": "Dash board for oceanbase host server, metrics collected using obagent",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "gnetId": 15216,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1636374730057,
  "links": [
    {
      "asDropdown": false,
      "icon": "external link",
      "includeVars": false,
      "keepTime": false,
      "tags": [],
      "targetBlank": false,
      "title": "Oceanbase Host",
      "tooltip": "",
      "type": "dashboards",
      "url": ""
    }
  ],
  "liveNow": false,
  "panels": [
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 4,
      "panels": [],
      "repeat": "ob_cluster_name",
      "title": "HOST",
      "type": "row"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 1
      },
      "id": 9,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "targets": [
        {
          "exemplar": true,
          "expr": "avg(node_load1{app=\"HOST\",svr_ip=~\"$ip\"}) by (svr_ip)",
          "interval": "",
          "legendFormat": "load1 {{svr_ip}}",
          "refId": "load1"
        },
        {
          "exemplar": true,
          "expr": "avg(node_load5{app=\"HOST\",svr_ip=~\"$ip\"}) by (svr_ip)",
          "hide": false,
          "interval": "",
          "legendFormat": "load5 {{svr_ip}}",
          "refId": "load5"
        },
        {
          "exemplar": true,
          "expr": "avg(node_load15{app=\"HOST\",svr_ip=~\"$ip\"}) by (svr_ip)",
          "hide": false,
          "interval": "",
          "legendFormat": "load15 {{svr_ip}}",
          "refId": "load15"
        }
      ],
      "title": "Load",
      "type": "timeseries"
    },
    {
      "datasource": null,
      "description": "cpu usage percent",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "smooth",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 1
      },
      "id": 6,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "targets": [
        {
          "exemplar": true,
          "expr": "100 * (1 - sum(rate(node_cpu_seconds_total{mode=\"idle\",svr_ip=~\"$ip\"}[$__rate_interval])) by (svr_ip) / sum(rate(node_cpu_seconds_total{svr_ip=~\"$ip\"}[$__rate_interval])) by (svr_ip))",
          "interval": "",
          "legendFormat": "cpu_usage {{svr_ip}}",
          "refId": "A"
        }
      ],
      "title": "Cpu Usage",
      "type": "timeseries"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "smooth",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 9
      },
      "id": 11,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "targets": [
        {
          "exemplar": true,
          "expr": "avg(node_memory_Buffers_bytes{app=\"HOST\",svr_ip=~\"$ip\"}) by (svr_ip)",
          "interval": "",
          "legendFormat": "buffer {{svr_ip}}",
          "refId": "buffer"
        },
        {
          "exemplar": true,
          "expr": "avg(node_memory_MemFree_bytes{app=\"HOST\",svr_ip=~\"$ip\"}) by (svr_ip)",
          "hide": false,
          "interval": "",
          "legendFormat": "free {{svr_ip}}",
          "refId": "free"
        },
        {
          "exemplar": true,
          "expr": "avg(node_memory_MemTotal_bytes{app=\"HOST\",svr_ip=~\"$ip\"}) by (svr_ip) - avg(node_memory_MemFree_bytes{app=\"HOST\",svr_ip=~\"$ip\"}) by (svr_ip) - avg(node_memory_Cached_bytes{app=\"HOST\",svr_ip=~\"$ip\"}) by (svr_ip) - avg(node_memory_Buffers_bytes{app=\"HOST\",svr_ip=~\"$ip\"}) by (svr_ip)",
          "hide": false,
          "interval": "",
          "legendFormat": "used {{svr_ip}}",
          "refId": "used"
        }
      ],
      "title": "Memory",
      "type": "timeseries"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 9
      },
      "id": 12,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "targets": [
        {
          "exemplar": true,
          "expr": "avg(rate(node_disk_reads_completed_total{app=\"HOST\",svr_ip=~\"$ip\"}[$__rate_interval])) by (svr_ip)",
          "interval": "",
          "legendFormat": "io_read_ps {{svr_ip}}",
          "refId": "io_read"
        },
        {
          "exemplar": true,
          "expr": "avg(rate(node_disk_writes_completed_total{app=\"HOST\",svr_ip=~\"$ip\"}[$__rate_interval])) by (svr_ip)",
          "hide": false,
          "interval": "",
          "legendFormat": "io_write_ps {{svr_ip}}",
          "refId": "io_write"
        }
      ],
      "title": "IOPS",
      "type": "timeseries"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 17
      },
      "id": 14,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "targets": [
        {
          "exemplar": true,
          "expr": "avg(rate(node_disk_read_time_seconds_total{app=\"HOST\",svr_ip=~\"$ip\"}[$__rate_interval])) by (svr_ip) / avg(rate(node_disk_reads_completed_total{app=\"HOST\",svr_ip=~\"$ip\"}[$__rate_interval])) by (svr_ip)",
          "hide": false,
          "interval": "",
          "legendFormat": "io_read_latency {{svr_ip}}",
          "refId": "io_read_latency"
        },
        {
          "exemplar": true,
          "expr": "avg(rate(node_disk_write_time_seconds_total{app=\"HOST\",svr_ip=~\"$ip\"}[$__rate_interval])) by (svr_ip) / avg(rate(node_disk_writes_completed_total{app=\"HOST\",svr_ip=~\"$ip\"}[$__rate_interval])) by (svr_ip)",
          "hide": false,
          "interval": "",
          "legendFormat": "io_write_latency {{svr_ip}}",
          "refId": "io_write_latency"
        }
      ],
      "title": "IO latency",
      "type": "timeseries"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "smooth",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "Bps"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 17
      },
      "id": 16,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "targets": [
        {
          "exemplar": true,
          "expr": "avg(rate(node_disk_read_bytes_total{app=\"HOST\",svr_ip=~\"$ip\"}[$__rate_interval])) by (svr_ip)",
          "interval": "",
          "legendFormat": "io_read {{svr_ip}}",
          "refId": "io_read_bytes"
        },
        {
          "exemplar": true,
          "expr": "avg(rate(node_disk_written_bytes_total{app=\"HOST\",svr_ip=~\"$ip\"}[$__rate_interval])) by (svr_ip)",
          "hide": false,
          "interval": "",
          "legendFormat": "io_write {{svr_ip}}",
          "refId": "io_write_bytes"
        }
      ],
      "title": "IO throughput",
      "type": "timeseries"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "binBps"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 25
      },
      "id": 18,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "targets": [
        {
          "exemplar": true,
          "expr": "avg(rate(node_network_receive_bytes_total{app=\"HOST\",svr_ip=~\"$ip\"}[$__rate_interval])) by (svr_ip)",
          "interval": "",
          "legendFormat": "recv {{svr_ip}}",
          "refId": "recv"
        },
        {
          "exemplar": true,
          "expr": "avg(rate(node_network_transmit_bytes_total{app=\"HOST\",svr_ip=~\"$ip\"}[$__rate_interval])) by (svr_ip)",
          "hide": false,
          "interval": "",
          "legendFormat": "send {{svr_ip}}",
          "refId": "send"
        }
      ],
      "title": "Network Throughput",
      "type": "timeseries"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 25
      },
      "id": 20,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "targets": [
        {
          "exemplar": true,
          "expr": "avg(node_ntp_offset_seconds{app=\"HOST\", svr_ip=~\"$ip\"}) by (svr_ip)",
          "interval": "",
          "legendFormat": "ntp offset {{ svr_ip }}",
          "refId": "A"
        }
      ],
      "title": "NTP offset",
      "type": "timeseries"
    }
  ],
  "refresh": "5s",
  "schemaVersion": 31,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "selected": true,
          "text": "default",
          "value": "default"
        },
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "datasource",
        "options": [],
        "query": "prometheus",
        "queryValue": "",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_XUERAN_TEST}",
        "definition": "label_values(svr_ip)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": null,
        "multi": false,
        "name": "ip",
        "options": [],
        "query": {
          "query": "label_values(svr_ip)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-15m",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Host Metrics",
  "uid": "HRtKQoF7z",
  "version": 13
}