# Dashboard manifest for the Incus observability stack
#
# Each entry maps a dashboard JSON file to its Grafana folder, UID, and metadata.
# Used by manage-dashboards for install, export, list, and validate operations.

dashboards:
  # --- Core dashboards (ship with product) ---

  - file: core/cluster-overview.json
    uid: incus-cluster-overview
    title: Incus Cluster Overview
    folder: Incus Cluster
    category: core
    version: "2"
    description: >-
      Overview of all Incus instances: CPU, memory, network, disk I/O,
      and instance status table with drill-down links.

  - file: core/host-resources.json
    uid: incus-host-resources
    title: Host Resources (IncusOS Nodes)
    folder: Incus Infrastructure
    category: core
    version: "2"
    description: >-
      Physical host monitoring: CPU mode breakdown, load averages,
      memory breakdown, filesystem usage, disk IOPS, network errors.

  - file: core/haproxy-traffic.json
    uid: incus-haproxy-traffic
    title: HAProxy Traffic
    folder: Incus Services
    category: core
    version: "2"
    description: >-
      HAProxy load balancer monitoring: request rates, response codes,
      backend health, server status timeline, connection errors.

  - file: core/instance-deep-dive.json
    uid: incus-instance-deep-dive
    title: Instance Deep Dive
    folder: Incus Cluster
    category: core
    version: "1"
    description: >-
      Single-instance drill-down: CPU, memory, network, and disk
      metrics with detailed timeseries and utilization gauges.

  - file: core/storage-filesystem.json
    uid: incus-storage-filesystem
    title: Storage & Filesystem
    folder: Incus Infrastructure
    category: core
    version: "1"
    description: >-
      Filesystem usage, available space trends, disk throughput,
      I/O latency, disk utilization, and inode usage per node.

  - file: core/network-deep-dive.json
    uid: incus-network-deep-dive
    title: Network Deep Dive
    folder: Incus Infrastructure
    category: core
    version: "1"
    description: >-
      Per-node and per-device network traffic, instance-level network
      metrics, receive/transmit errors, and packet drops.

  - file: core/logs-explorer.json
    uid: incus-logs-explorer
    title: Logs Explorer
    folder: Incus Operations
    category: core
    version: "1"
    description: >-
      Log volume over time, full log stream with search, error
      and warning rates by systemd unit. Datasource: Loki.

  - file: core/prometheus-health.json
    uid: incus-prometheus-health
    title: Prometheus Health
    folder: Incus Operations
    category: core
    version: "1"
    description: >-
      Prometheus self-monitoring: targets up/down, scrape duration,
      samples ingested, TSDB size, head series, WAL stats.

  - file: core/capacity-planning.json
    uid: incus-capacity-planning
    title: Capacity Planning
    folder: Incus Operations
    category: core
    version: "1"
    description: >-
      CPU/memory headroom per node, resource trends, disk space
      forecast with predict_linear, instance count trends.
