Grafana dashboard: Raúl's dashboard (grouped by op, filtered by nodes) (CANARIES)
Description: Dashboard to track Filecoin Lotus node API endpoints.


{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "Prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__elements": [],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "9.0.1"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "datasource",
          "uid": "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": "Dashboard to track Filecoin Lotus node API endpoints.",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "gnetId": 18363,
  "graphTooltip": 1,
  "id": null,
  "iteration": 1679900268781,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 13,
      "panels": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "prometheus"
          },
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic",
                "seriesBy": "last"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 20,
                "gradientMode": "hue",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineStyle": {
                  "fill": "solid"
                },
                "lineWidth": 1,
                "pointSize": 4,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green"
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "ms"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byRegexp",
                  "options": "request count.*"
                },
                "properties": [
                  {
                    "id": "custom.axisPlacement",
                    "value": "left"
                  },
                  {
                    "id": "custom.fillOpacity",
                    "value": 0
                  },
                  {
                    "id": "custom.lineStyle",
                    "value": {
                      "fill": "solid"
                    }
                  },
                  {
                    "id": "unit",
                    "value": "reqps"
                  },
                  {
                    "id": "custom.lineWidth",
                    "value": 1
                  },
                  {
                    "id": "custom.drawStyle",
                    "value": "bars"
                  },
                  {
                    "id": "custom.pointSize",
                    "value": 2
                  },
                  {
                    "id": "color",
                    "value": {
                      "fixedColor": "#adadad4d",
                      "mode": "fixed"
                    }
                  },
                  {
                    "id": "custom.gradientMode",
                    "value": "none"
                  },
                  {
                    "id": "custom.fillOpacity",
                    "value": 0
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 0,
            "y": 1
          },
          "id": 17,
          "maxPerRow": 2,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom"
            },
            "tooltip": {
              "mode": "multi",
              "sort": "desc"
            }
          },
          "repeat": "pod",
          "repeatDirection": "h",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "prometheus"
              },
              "editorMode": "builder",
              "exemplar": false,
              "expr": "rate(lotus_api_request_duration_ms_count{exported_endpoint=~\"$endpoint\", pod=~\"$pod\"}[$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "request count",
              "range": true,
              "refId": "E"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "prometheus"
              },
              "editorMode": "code",
              "exemplar": false,
              "expr": "histogram_quantile(0.95, sum by(le) (rate(lotus_api_request_duration_ms_bucket{exported_endpoint=~\"$endpoint\", pod=~\"$pod\"}[$__rate_interval])))",
              "instant": false,
              "interval": "",
              "legendFormat": "p95",
              "range": true,
              "refId": "A"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "prometheus"
              },
              "editorMode": "code",
              "exemplar": false,
              "expr": "histogram_quantile(0.9, sum by(le) (rate(lotus_api_request_duration_ms_bucket{exported_endpoint=~\"$endpoint\", pod=~\"$pod\"}[$__rate_interval])))",
              "hide": false,
              "instant": false,
              "interval": "",
              "legendFormat": "p90",
              "range": true,
              "refId": "B"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "prometheus"
              },
              "editorMode": "code",
              "exemplar": false,
              "expr": "histogram_quantile(0.8, sum by(le) (rate(lotus_api_request_duration_ms_bucket{exported_endpoint=~\"$endpoint\", pod=~\"$pod\"}[$__rate_interval])))",
              "hide": false,
              "instant": false,
              "interval": "",
              "legendFormat": "p80",
              "range": true,
              "refId": "C"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "prometheus"
              },
              "editorMode": "code",
              "exemplar": false,
              "expr": "histogram_quantile(0.5, sum by(le) (rate(lotus_api_request_duration_ms_bucket{exported_endpoint=~\"$endpoint\", pod=~\"$pod\"}[$__rate_interval])))",
              "hide": false,
              "instant": false,
              "interval": "",
              "legendFormat": "p50",
              "range": true,
              "refId": "D"
            }
          ],
          "title": "$endpoint @ $pod",
          "transparent": true,
          "type": "timeseries"
        }
      ],
      "repeat": "endpoint",
      "repeatDirection": "h",
      "title": "$endpoint",
      "type": "row"
    }
  ],
  "refresh": false,
  "schemaVersion": 36,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {},
        "datasource": {
          "type": "prometheus",
          "uid": "prometheus"
        },
        "definition": "lotus_api_request_duration_ms_bucket",
        "hide": 0,
        "includeAll": true,
        "multi": true,
        "name": "endpoint",
        "options": [],
        "query": {
          "query": "lotus_api_request_duration_ms_bucket",
          "refId": "Prometheus-endpoint-Variable-Query"
        },
        "refresh": 2,
        "regex": "/.*endpoint=\"([a-zA-Z]*)\"/",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "current": {},
        "datasource": {
          "type": "prometheus",
          "uid": "prometheus"
        },
        "definition": "lotus_pubsub_send_rpc",
        "hide": 0,
        "includeAll": true,
        "multi": true,
        "name": "pod",
        "options": [],
        "query": {
          "query": "lotus_pubsub_send_rpc",
          "refId": "Prometheus-pod-Variable-Query"
        },
        "refresh": 2,
        "regex": "/.*pod=\"(.*?)\"/",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "Raúl's dashboard (grouped by op, filtered by nodes) (CANARIES)",
  "uid": "AgzDdoBVz",
  "version": 3,
  "weekStart": ""
}