# Docker Monitoring Stack

This directory contains the fixed Grafana monitoring stack with working dashboards and proper datasource configurations.

## 🔧 Recent Fixes

- **Fixed datasource UIDs**: All dashboards now use correct Prometheus UID (`PBFA97CFB590B2093`)
- **Fixed template variables**: Proper current values and working queries
- **Fixed instance filters**: Corrected empty instance filters (`instance=~"" → instance=~"$instance"`)
- **Verified functionality**: All dashboard panels now display real-time data

## 📊 Dashboards

1. **Synology NAS Monitoring** (`synology-nas-monitoring.json`) - 8 panels, SNMP metrics
2. **Node Exporter Full** (`node-exporter-full.json`) - 32 panels, comprehensive system monitoring  
3. **Node Details** (`node-details.json`) - 21 panels, detailed node metrics
4. **Infrastructure Overview** (`infrastructure-overview.json`) - 7 panels, system overview

## 🚀 Deployment

```bash
cd docker/monitoring
docker-compose up -d
```

## 🔍 Verification

Run the verification script to check all dashboard sections:

```bash
./verify-dashboard-sections.sh
```

## 📋 Access

- **Grafana**: http://localhost:3300 (admin/admin)
- **Prometheus**: http://localhost:9090
- **SNMP Exporter**: http://localhost:9116

## 📁 Structure

```
docker/monitoring/
├── docker-compose.yml              # Main compose file
├── grafana/
│   ├── dashboards/                 # Dashboard JSON files
│   └── provisioning/               # Grafana configuration
├── prometheus/
│   └── prometheus.yml              # Prometheus configuration
└── verify-dashboard-sections.sh   # Verification script
```

## ✅ Status

- **SNMP Monitoring**: 3/3 targets up
- **Storage Metrics**: 92+ metrics active
- **Temperature Sensors**: 18 disk sensors
- **All Dashboards**: Functional with real-time data