{
  "leansignal_demand_export": "1.0",
  "exported_at": "2026-07-17T00:00:00Z",
  "source_tenant": "leansignal-catalog",
  "catalog": {
    "slug": "leansignal-leanapi-otel-demand-extended",
    "integration": "leansignal-leanapi",
    "variant": "extended",
    "title": "LeanSignal API — Extended",
    "category": "Infrastructure",
    "dashboards": 1,
    "panels": 21,
    "alerts": 0,
    "docs_url": "https://docs.leansignal.io/integrations/leansignal-leanapi/"
  },
  "demand": {
    "ref": "demand",
    "name": "LeanSignal API — Extended (OpenTelemetry)",
    "description": "Deep self-diagnostics: per-filter collection/storage split by status and object type, demand-set processing duration, DB pool saturation, and Go heap — plus everything above.",
    "dashboards": [
      {
        "ref": "dash-leansignal-leanapi",
        "name": "LeanSignal API — Extended",
        "description": "The LeanSignal API's own telemetry — per-filter collection/storage accounting, demand-set size and cost, connected agents, and process health (extended variant).",
        "data": {
          "display": {
            "name": "LeanSignal API — Extended"
          },
          "panels": {
            "stored_series": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Stored time series",
                  "description": "Time series currently in the tenant metrics store (live inventory, not a cumulative counter)."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "decimal"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "max(leansignal_leanapi_storage_metrics_series{service_instance_id=~\"$instance\"})",
                          "seriesNameFormat": "series"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "stored_log_bytes": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Stored log volume",
                  "description": "Log volume held by the tenant log store over its retention window (indexed, uncompressed)."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "bytes"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "max(leansignal_leanapi_storage_logs_volume_bytes{service_instance_id=~\"$instance\"})",
                          "seriesNameFormat": "log bytes"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "stored_spans": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Spans ingested",
                  "description": "Spans received by the tenant trace store since it last started (the store keeps no stored-spans gauge, so this resets on its restart)."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "decimal"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "max(leansignal_leanapi_storage_traces_spans{service_instance_id=~\"$instance\"})",
                          "seriesNameFormat": "spans"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "stored_trace_bytes": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Traces stored (bytes)",
                  "description": "Trace data currently stored in the tenant trace store (live backend blocks) — the billing-grade stored-traces figure."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "bytes"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "max(leansignal_leanapi_storage_traces_backend_bytes{service_instance_id=~\"$instance\"})",
                          "seriesNameFormat": "trace bytes"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "ingest_log_bytes": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Log ingest (bytes/sec)",
                  "description": "Log bytes arriving at the tenant log store, as measured by the store itself — the billing-grade logs-ingest rate."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "bytes/sec"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "sum(rate(leansignal_leanapi_storage_logs_ingested_bytes{service_instance_id=~\"$instance\"}[5m]))",
                          "seriesNameFormat": "log bytes/s"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "ingest_trace_bytes": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Trace ingest (bytes/sec)",
                  "description": "Trace bytes arriving at the tenant trace store, as measured by the store itself — the billing-grade traces-ingest rate."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "bytes/sec"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "sum(rate(leansignal_leanapi_storage_traces_ingested_bytes{service_instance_id=~\"$instance\"}[5m]))",
                          "seriesNameFormat": "trace bytes/s"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "synth_up": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Check status",
                  "description": "Latest probe outcome per synthetic check: 1 up, 0 down."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "decimal"
                      },
                      "min": 0,
                      "max": 1
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "min by (check) (leansignal_leanapi_synthetics_check_up{service_instance_id=~\"$instance\"})",
                          "seriesNameFormat": "{{check}}"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "synth_latency": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Check latency",
                  "description": "Latest probe round-trip latency per synthetic check."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "milliseconds"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "max by (check) (leansignal_leanapi_synthetics_check_latency_ms{service_instance_id=~\"$instance\"})",
                          "seriesNameFormat": "{{check}}"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "collected_total": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Collected series (active demand)",
                  "description": "Total series the active filters demand — what the agents forward. Sum of the per-filter collection gauge over active filters."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "decimal"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "sum(leansignal_leanapi_filter_collected_series{service_instance_id=~\"$instance\",status=\"active\"})",
                          "seriesNameFormat": "collected (active)"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "stored_total": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Stored series (dataplane)",
                  "description": "Total series in the tenant store matching any filter — what is/was stored, including data from filters that went inactive but have not been purged yet."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "decimal"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "sum(leansignal_leanapi_filter_stored_series{service_instance_id=~\"$instance\"})",
                          "seriesNameFormat": "stored"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "top_collected": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Heaviest filters by collected series",
                  "description": "The 10 active filters demanding the most series — the biggest contributors to collection."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "decimal"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "topk(10, leansignal_leanapi_filter_collected_series{service_instance_id=~\"$instance\",status=\"active\"})",
                          "seriesNameFormat": "{{rule}}"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "top_stored": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Heaviest filters by stored series",
                  "description": "The 10 filters occupying the most series in the store — the biggest contributors to storage cost."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "decimal"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "topk(10, leansignal_leanapi_filter_stored_series{service_instance_id=~\"$instance\"})",
                          "seriesNameFormat": "{{rule}}"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "collected_by_status": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Collected series by status",
                  "description": "Per-filter collection split into active vs inactive — inactive filters would collect nothing, but still show their potential footprint."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "decimal"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "sum by (status) (leansignal_leanapi_filter_collected_series{service_instance_id=~\"$instance\"})",
                          "seriesNameFormat": "{{status}}"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "stored_by_object_type": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Stored series by subdemand kind",
                  "description": "Stored series attributed to the subdemand kind that demands them — dashboards vs alerts vs custom rules."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "decimal"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "sum by (object_type) (leansignal_leanapi_filter_stored_series{service_instance_id=~\"$instance\"})",
                          "seriesNameFormat": "{{object_type}}"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "active_metrics": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Active demand-set size",
                  "description": "Unique metric names in the active demand set (dashboards ∪ active alerts ∪ enabled custom rules)."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "decimal"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "leansignal_leanapi_demand_active_metrics{service_instance_id=~\"$instance\"}",
                          "seriesNameFormat": "active metrics"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "demand_cost": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Estimated demand cost / month",
                  "description": "Estimated monthly cost of the demand set, from the stored-series count and the per-series cost."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "decimal"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "leansignal_leanapi_demand_estimated_cost_per_month{service_instance_id=~\"$instance\"}",
                          "seriesNameFormat": "est. $/mo"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "process_duration": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Demand-set processing duration",
                  "description": "p95 duration of one demand-set processing cycle."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "seconds"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "histogram_quantile(0.95, sum by (le) (rate(leansignal_leanapi_demand_process_duration_seconds_bucket{service_instance_id=~\"$instance\"}[5m])))",
                          "seriesNameFormat": "p95"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "agents_connected": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Connected agents",
                  "description": "Agents with a live control stream to this lean-api."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "decimal"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "leansignal_leanapi_agents_connected{service_instance_id=~\"$instance\"}",
                          "seriesNameFormat": "connected"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "request_rate": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "API request rate",
                  "description": "HTTP requests per second served by the public API."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "counts/sec"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "sum(rate(http_server_request_duration_seconds_count{service_instance_id=~\"$instance\"}[5m]))",
                          "seriesNameFormat": "req/s"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "db_conns": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "DB connections in use",
                  "description": "Postgres pool connections currently in use (pool is capped at 15)."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "decimal"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "leansignal_leanapi_db_connections_in_use{service_instance_id=~\"$instance\"}",
                          "seriesNameFormat": "in use"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "go_heap": {
              "kind": "Panel",
              "spec": {
                "display": {
                  "name": "Go memory in use",
                  "description": "Heap memory in use by the lean-api process."
                },
                "plugin": {
                  "kind": "TimeSeriesChart",
                  "spec": {
                    "legend": {
                      "position": "bottom",
                      "mode": "table",
                      "values": [
                        "last-number",
                        "mean",
                        "max"
                      ]
                    },
                    "yAxis": {
                      "format": {
                        "unit": "bytes"
                      },
                      "min": 0
                    }
                  }
                },
                "queries": [
                  {
                    "kind": "TimeSeriesQuery",
                    "spec": {
                      "plugin": {
                        "kind": "PrometheusTimeSeriesQuery",
                        "spec": {
                          "query": "go_memory_used_bytes{service_instance_id=~\"$instance\"}",
                          "seriesNameFormat": "heap"
                        }
                      }
                    }
                  }
                ]
              }
            }
          },
          "layouts": [
            {
              "kind": "Grid",
              "spec": {
                "display": {
                  "title": "Stored data",
                  "collapse": {
                    "open": true
                  }
                },
                "items": [
                  {
                    "x": 0,
                    "y": 0,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/stored_series"
                    }
                  },
                  {
                    "x": 12,
                    "y": 0,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/stored_log_bytes"
                    }
                  },
                  {
                    "x": 0,
                    "y": 8,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/stored_spans"
                    }
                  },
                  {
                    "x": 12,
                    "y": 8,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/stored_trace_bytes"
                    }
                  },
                  {
                    "x": 0,
                    "y": 16,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/ingest_log_bytes"
                    }
                  },
                  {
                    "x": 12,
                    "y": 16,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/ingest_trace_bytes"
                    }
                  }
                ]
              }
            },
            {
              "kind": "Grid",
              "spec": {
                "display": {
                  "title": "Synthetics",
                  "collapse": {
                    "open": true
                  }
                },
                "items": [
                  {
                    "x": 0,
                    "y": 0,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/synth_up"
                    }
                  },
                  {
                    "x": 12,
                    "y": 0,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/synth_latency"
                    }
                  }
                ]
              }
            },
            {
              "kind": "Grid",
              "spec": {
                "display": {
                  "title": "Filter accounting",
                  "collapse": {
                    "open": true
                  }
                },
                "items": [
                  {
                    "x": 0,
                    "y": 0,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/collected_total"
                    }
                  },
                  {
                    "x": 12,
                    "y": 0,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/stored_total"
                    }
                  },
                  {
                    "x": 0,
                    "y": 8,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/top_collected"
                    }
                  },
                  {
                    "x": 12,
                    "y": 8,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/top_stored"
                    }
                  },
                  {
                    "x": 0,
                    "y": 16,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/collected_by_status"
                    }
                  },
                  {
                    "x": 12,
                    "y": 16,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/stored_by_object_type"
                    }
                  }
                ]
              }
            },
            {
              "kind": "Grid",
              "spec": {
                "display": {
                  "title": "Demand",
                  "collapse": {
                    "open": true
                  }
                },
                "items": [
                  {
                    "x": 0,
                    "y": 0,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/active_metrics"
                    }
                  },
                  {
                    "x": 12,
                    "y": 0,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/demand_cost"
                    }
                  },
                  {
                    "x": 0,
                    "y": 8,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/process_duration"
                    }
                  }
                ]
              }
            },
            {
              "kind": "Grid",
              "spec": {
                "display": {
                  "title": "Platform",
                  "collapse": {
                    "open": true
                  }
                },
                "items": [
                  {
                    "x": 0,
                    "y": 0,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/agents_connected"
                    }
                  },
                  {
                    "x": 12,
                    "y": 0,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/request_rate"
                    }
                  },
                  {
                    "x": 0,
                    "y": 8,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/db_conns"
                    }
                  },
                  {
                    "x": 12,
                    "y": 8,
                    "width": 12,
                    "height": 8,
                    "content": {
                      "$ref": "#/spec/panels/go_heap"
                    }
                  }
                ]
              }
            }
          ],
          "variables": [
            {
              "kind": "ListVariable",
              "spec": {
                "name": "instance",
                "display": {
                  "name": "Instance"
                },
                "allowAllValue": true,
                "allowMultiple": true,
                "customAllValue": ".*",
                "defaultValue": ".*",
                "plugin": {
                  "kind": "PrometheusLabelValuesVariable",
                  "spec": {
                    "labelName": "service_instance_id"
                  }
                }
              }
            }
          ],
          "duration": "1h",
          "refreshInterval": "30s",
          "datasources": {}
        }
      }
    ],
    "alert_rules": []
  }
}
