1
MONITORING-SCRIPTS
Jonathan Miller edited this page 2026-06-09 16:55:07 +00:00

Monitoring Scripts

Grafana dashboard management and health monitoring.

Commands

php bin/moko dashboard              # Client dashboard summary
php bin/moko grafana                # Manage Grafana dashboards
php bin/moko client:health-check    # Check all client sites

Client Dashboard

Shows status of all WaaS client sites: up/down, response time, last backup, SSL expiry.

Grafana Integration

The grafana command manages dashboards via the Grafana API:

  • List dashboards
  • Export/import dashboard JSON
  • Check datasource health

Health Monitoring

client:health-check hits each client site health endpoint and reports status. Results can feed into Prometheus textfile collector for dashboard display.

Environment Variables

Variable Purpose
GRAFANA_URL Grafana instance URL
GRAFANA_TOKEN Grafana API token