Grafana dashboard: PHP Errors from logs
Description: Require https://github.com/CodeAtCode/phperrorlog_exporter

Require https://github.com/CodeAtCode/phperrorlog_exporter

{
  "__inputs": [],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.5.4"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 14368,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "panels": [
    {
      "aliasColors": {},
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "hiddenSeries": false,
      "id": 2,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.4",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "exemplar": true,
          "expr": "php_errors_sum{site=~\"domain\", type=~\"fatal\"}",
          "format": "time_series",
          "interval": "",
          "legendFormat": "fatal",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "php_errors_sum{site=~\"domain\", type=~\"notice\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "notice",
          "refId": "B"
        },
        {
          "exemplar": true,
          "expr": "php_errors_sum{site=~\"domain\", type=~\"warning\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "warning",
          "refId": "C"
        },
        {
          "exemplar": true,
          "expr": "php_errors_sum{site=~\"domain\", type=~\"deprecated\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "deprecated",
          "refId": "D"
        },
        {
          "exemplar": true,
          "expr": "php_errors_sum{site=~\"domain\", type=~\"parse\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "parse",
          "refId": "E"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Domain PHP Errors",
      "tooltip": {
        "shared": false,
        "sort": 1,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:56",
          "format": "short",
          "label": "Errors",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:57",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "schemaVersion": 27,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "PHP Errors from logs",
  "uid": "erSu1ZjMz",
  "version": 2,
  "description": "Require https://github.com/CodeAtCode/phperrorlog_exporter"
}