{
  "dashboard": {
    "id": null,
    "title": "SSL Certificates Monitoring",
    "tags": ["ssl", "security", "certificates"],
    "timezone": "browser",
    "panels": [
      {
        "id": 1,
        "title": "SSL Certificate Expiry",
        "type": "table",
        "targets": [
          {
            "expr": "probe_ssl_earliest_cert_expiry",
            "format": "table",
            "legendFormat": "{{instance}}"
          }
        ],
        "fieldConfig": {
          "defaults": {
            "custom": {
              "displayMode": "color-text"
            }
          }
        }
      },
      {
        "id": 2,
        "title": "Days Until SSL Expiry",
        "type": "stat",
        "targets": [
          {
            "expr": "(probe_ssl_earliest_cert_expiry - time()) / 86400",
            "legendFormat": "{{instance}}"
          }
        ],
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "thresholds"
            },
            "thresholds": {
              "steps": [
                {
                  "color": "red",
                  "value": null
                },
                {
                  "color": "orange",
                  "value": 30
                },
                {
                  "color": "green",
                  "value": 60
                }
              ]
            },
            "unit": "dtdays"
          }
        }
      }
    ],
    "time": {
      "from": "now-1h",
      "to": "now"
    }
  },
  "folderId": 0,
  "message": "SSL certificates monitoring dashboard",
  "overwrite": false
}
