KServe ModelServer Latency
KServe's ModelServer Metrics Dashboard 
Latency metrics for pre/post-process, predict, and explain steps & total number of requests
Requires inferenceservices to use KServe >= v0.10. See [KServe observability docs](https://kserve.github.io/website/master/modelserving/observability/prometheus_metrics/) for more info. 
KServe's ModelServer Metrics Dashboard
{
  "__inputs": [
    {
      "name": "DS_GRAFANACLOUD-AGRIFFITH50-PROM",
      "label": "grafanacloud-agriffith50-prom",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__elements": {},
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "9.3.5"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "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": "KServe's ModelServer Metrics Dashboard ",
  "editable": false,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "collapsed": false,
      "datasource": "grafanacloud-prom",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 23,
      "panels": [],
      "targets": [
        {
          "datasource": "grafanacloud-prom",
          "refId": "A"
        }
      ],
      "title": "Kserve Response Time",
      "type": "row"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-GrYlRd"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 500
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 1
      },
      "id": 33,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.3.5",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
          },
          "exemplar": false,
          "expr": "histogram_quantile(0.50, sum(rate(request_preprocess_seconds_bucket[5m]) * 1000) by (le)) * 1000",
          "format": "time_series",
          "interval": "",
          "legendFormat": "p50",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
          },
          "exemplar": false,
          "expr": "histogram_quantile(0.90, sum(rate(request_preprocess_seconds_bucket[5m]) * 1000) by (le)) * 1000",
          "hide": false,
          "interval": "",
          "legendFormat": "p90",
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
          },
          "exemplar": false,
          "expr": "histogram_quantile(0.95, sum(rate(request_preprocess_seconds_bucket[5m]) * 1000) by (le)) * 1000",
          "hide": false,
          "interval": "",
          "legendFormat": "p95",
          "refId": "C"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
          },
          "exemplar": false,
          "expr": "histogram_quantile(0.99, sum(rate(request_preprocess_seconds_bucket[5m]) * 1000) by (le)) * 1000",
          "hide": false,
          "interval": "",
          "legendFormat": "p99",
          "refId": "D"
        }
      ],
      "title": "preprocess latency (ms)",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 500
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 1
      },
      "id": 29,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.3.5",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
          },
          "exemplar": true,
          "expr": "histogram_quantile(0.50, sum(rate(request_predict_seconds_bucket[5m])) by (le)) * 1000",
          "format": "time_series",
          "interval": "",
          "legendFormat": "p50",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
          },
          "exemplar": true,
          "expr": "histogram_quantile(0.90, sum(rate(request_predict_seconds_bucket[5m])) by (le)) * 1000",
          "hide": false,
          "interval": "",
          "legendFormat": "p90",
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
          },
          "exemplar": true,
          "expr": "histogram_quantile(0.95, sum(rate(request_predict_seconds_bucket[5m])) by (le)) * 1000",
          "hide": false,
          "interval": "",
          "legendFormat": "p95",
          "refId": "C"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
          },
          "exemplar": true,
          "expr": "histogram_quantile(0.99, sum(rate(request_predict_seconds_bucket[5m])) by (le)) * 1000",
          "hide": false,
          "interval": "",
          "legendFormat": "p99",
          "refId": "D"
        }
      ],
      "title": "predict latency (ms)",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 500
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 9
      },
      "id": 28,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.3.5",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
          },
          "exemplar": true,
          "expr": "histogram_quantile(0.50, sum(rate(request_postprocess_seconds_bucket[5m]) * 1000) by (le)) * 1000",
          "format": "time_series",
          "interval": "",
          "legendFormat": "p50",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
          },
          "exemplar": true,
          "expr": "histogram_quantile(0.90, sum(rate(request_postprocess_seconds_bucket[5m]) * 1000) by (le)) * 1000",
          "hide": false,
          "interval": "",
          "legendFormat": "p90",
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
          },
          "exemplar": true,
          "expr": "histogram_quantile(0.95, sum(rate(request_postprocess_seconds_bucket[5m]) * 1000) by (le)) * 1000",
          "hide": false,
          "interval": "",
          "legendFormat": "p95",
          "refId": "C"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
          },
          "exemplar": true,
          "expr": "histogram_quantile(0.99, sum(rate(request_postprocess_seconds_bucket[5m]) * 1000) by (le)) * 1000",
          "hide": false,
          "interval": "",
          "legendFormat": "p99",
          "refId": "D"
        }
      ],
      "title": "postprocess latency (ms)",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 500
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 9
      },
      "id": 30,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.3.5",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
          },
          "exemplar": true,
          "expr": "histogram_quantile(0.50, sum(rate(request_explain_seconds_bucket[5m])) by (le)) * 1000",
          "format": "time_series",
          "interval": "",
          "legendFormat": "p50",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
          },
          "exemplar": true,
          "expr": "histogram_quantile(0.90, sum(rate(request_explain_seconds_bucket[5m])) by (le)) * 1000",
          "hide": false,
          "interval": "",
          "legendFormat": "p90",
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
          },
          "exemplar": true,
          "expr": "histogram_quantile(0.95, sum(rate(request_explain_seconds_bucket[5m])) by (le)) * 1000",
          "hide": false,
          "interval": "",
          "legendFormat": "p95",
          "refId": "C"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
          },
          "exemplar": true,
          "expr": "histogram_quantile(0.99, sum(rate(request_explain_seconds_bucket[5m])) by (le)) * 1000",
          "hide": false,
          "interval": "",
          "legendFormat": "p99",
          "refId": "D"
        }
      ],
      "title": "explain latency (ms)",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 65,
            "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": "normal"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "__systemRef": "hideSeriesFrom",
            "matcher": {
              "id": "byNames",
              "options": {
                "mode": "exclude",
                "names": [
                  "custom-server-test-dockerimg-predictor-default"
                ],
                "prefix": "All except:",
                "readOnly": true
              }
            },
            "properties": [
              {
                "id": "custom.hideFrom",
                "value": {
                  "legend": false,
                  "tooltip": false,
                  "viz": true
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 5,
        "y": 17
      },
      "id": 27,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "8.3.3",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-AGRIFFITH50-PROM}"
          },
          "exemplar": true,
          "expr": "increase(request_predict_seconds_count[24h])",
          "format": "time_series",
          "instant": false,
          "interval": "",
          "legendFormat": "{{ configuration_name }}",
          "refId": "A"
        }
      ],
      "title": "Predict Total requests in last 24h",
      "type": "timeseries"
    }
  ],
  "refresh": "",
  "schemaVersion": 37,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-15m",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "KServe ModelServer Latency",
  "uid": "224gVNKVz",
  "version": 2,
  "weekStart": "",
  "gnetId": 17969
}