pub fn build_default_dashboard(namespace: &str) -> String {
    let dashboard = format!(
        r#"{{
  "annotations": {{
    "list": []
  }},
  "editable": true,
  "gnetId": null,
  "graphTooltip": 0,
  "id": null,
  "iteration": 171105,
  "panels": [
    {{
      "datasource": "$datasource",
      "fieldConfig": {{
        "defaults": {{
          "unit": "short"
        }},
        "overrides": []
      }},
      "gridPos": {{
        "h": 6,
        "w": 6,
        "x": 0,
        "y": 0
      }},
      "id": 1,
      "options": {{
        "reduceOptions": {{
          "calcs": ["lastNotNull"],
          "fields": "",
          "values": false
        }}
      }},
      "pluginVersion": "9.0.0",
      "targets": [
        {{
          "expr": "sum(kube_pod_status_phase{{namespace=\"{namespace}\",  phase=\"Running\"}})",
          "legendFormat": "",
          "refId": "A"
        }}
      ],
      "title": "Pods in Namespace",
      "type": "stat"
    }},
    {{
      "datasource": "$datasource",
      "fieldConfig": {{
        "defaults": {{
          "unit": "short"
        }},
        "overrides": []
      }},
      "gridPos": {{
        "h": 6,
        "w": 6,
        "x": 6,
        "y": 0
      }},
      "id": 2,
      "options": {{
        "reduceOptions": {{
          "calcs": ["lastNotNull"],
          "fields": "",
          "values": false
        }}
      }},
      "pluginVersion": "9.0.0",
      "targets": [
        {{
          "expr": "sum(kube_pod_status_phase{{phase=\"Failed\", namespace=\"{namespace}\"}})",
          "legendFormat": "",
          "refId": "A"
        }}
      ],
      "title": "Pods in Failed State",
      "type": "stat"
    }},
    {{
      "datasource": "$datasource",
      "fieldConfig": {{
        "defaults": {{
          "unit": "percentunit"
        }},
        "overrides": []
      }},
      "gridPos": {{
        "h": 6,
        "w": 12,
        "x": 0,
        "y": 6
      }},
      "id": 3,
      "options": {{
        "reduceOptions": {{
          "calcs": ["lastNotNull"],
          "fields": "",
          "values": false
        }}
      }},
      "pluginVersion": "9.0.0",
      "targets": [
        {{
          "expr": "sum(kube_deployment_status_replicas_available{{namespace=\"{namespace}\"}}) / sum(kube_deployment_spec_replicas{{namespace=\"{namespace}\"}})",
          "legendFormat": "",
          "refId": "A"
        }}
      ],
      "title": "Deployment Health (Available / Desired)",
      "type": "stat"
    }},
    {{
      "datasource": "$datasource",
      "fieldConfig": {{
        "defaults": {{
          "unit": "short"
        }},
        "overrides": []
      }},
      "gridPos": {{
        "h": 6,
        "w": 12,
        "x": 0,
        "y": 12
      }},
      "id": 4,
      "options": {{
        "reduceOptions": {{
          "calcs": ["lastNotNull"],
          "fields": "",
          "values": false
        }}
      }},
      "pluginVersion": "9.0.0",
      "targets": [
        {{
          "expr": "sum by(pod) (rate(kube_pod_container_status_restarts_total{{namespace=\"{namespace}\"}}[5m]))",
          "legendFormat": "{{{{pod}}}}",
          "refId": "A"
        }}
      ],
      "title": "Container Restarts (per pod)",
      "type": "timeseries"
    }},
    {{
      "datasource": "$datasource",
      "fieldConfig": {{
        "defaults": {{
          "unit": "short"
        }},
        "overrides": []
      }},
      "gridPos": {{
        "h": 6,
        "w": 12,
        "x": 0,
        "y": 18
      }},
      "id": 5,
      "options": {{
        "reduceOptions": {{
          "calcs": ["lastNotNull"],
          "fields": "",
          "values": false
        }}
      }},
      "pluginVersion": "9.0.0",
      "targets": [
        {{
          "expr": "sum(ALERTS{{alertstate=\"firing\", namespace=\"{namespace}\"}}) or vector(0)",
          "legendFormat": "",
          "refId": "A"
        }}
      ],
      "title": "Firing Alerts in Namespace",
      "type": "stat"
    }}
  ],
  "schemaVersion": 36,
  "templating": {{
    "list": [
      {{
        "name": "datasource",
        "type": "datasource",
        "pluginId": "prometheus",
        "label": "Prometheus",
        "query": "prometheus",
        "refresh": 1,
        "hide": 0,
        "current": {{
          "selected": true,
          "text": "Prometheus",
          "value": "Prometheus"
        }}
      }}
    ]
  }},
  "title": "Tenant Namespace Overview",
  "version": 1
}}"#
    );
    dashboard
}
