Grafana dashboard: Events Validation issues
Description: Event validation issues


{
  "__inputs": [
    {
      "name": "DS_EVENT_VALIDATION ERRORS",
      "label": "Event Validation Errors",
      "description": "",
      "type": "datasource",
      "pluginId": "elasticsearch",
      "pluginName": "Elasticsearch"
    }
  ],
  "__requires": [
    {
      "type": "datasource",
      "id": "elasticsearch",
      "name": "Elasticsearch",
      "version": "1.0.0"
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.4.2"
    },
    {
      "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": 16817,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1661893655804,
  "links": [],
  "panels": [
    {
      "alert": {
        "alertRuleTags": {
          "App number": "{{experience.app}}",
          "Event Type": "{{type}}"
        },
        "conditions": [
          {
            "evaluator": {
              "params": [
                50
              ],
              "type": "gt"
            },
            "operator": {
              "type": "and"
            },
            "query": {
              "params": [
                "A",
                "1h",
                "now"
              ]
            },
            "reducer": {
              "params": [],
              "type": "sum"
            },
            "type": "query"
          }
        ],
        "executionErrorState": "keep_state",
        "for": "5m",
        "frequency": "20m",
        "handler": 1,
        "message": "Validation failures on live apps (more than 50 in last hour for at least one app)",
        "name": "Validation failures by app alert",
        "noDataState": "keep_state",
        "notifications": [
          {
            "uid": "Fi2QuIAGk"
          }
        ]
      },
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_EVENT_VALIDATION ERRORS}",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 23,
        "x": 0,
        "y": 0
      },
      "id": 2,
      "interval": "10m",
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": true,
        "show": true,
        "total": true,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "{{type}} on {{experience.app}} for {{experience.retailer}}",
          "bucketAggs": [
            {
              "fake": true,
              "field": "type",
              "id": "6",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "_count",
                "size": "20"
              },
              "type": "terms"
            },
            {
              "fake": true,
              "field": "experience.retailer",
              "id": "7",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "_count",
                "size": "0"
              },
              "type": "terms"
            },
            {
              "fake": true,
              "field": "experience.app",
              "id": "5",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "_count",
                "size": "0"
              },
              "type": "terms"
            },
            {
              "fake": true,
              "field": "request.timestamp",
              "id": "4",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "field": "select field",
              "id": "1",
              "type": "count"
            }
          ],
          "query": "NOT(type:\"experience.app-requested\") AND NOT (type:\"experience.app-received\") AND NOT (experience.origin.hostname.keyword:\"turquoise-debug.prod.asgard.hullabalook.com\") AND NOT(experience.origin.hostname.keyword:\"content.hulla-cdn.com\")",
          "refId": "A",
          "timeField": "request.timestamp"
        }
      ],
      "thresholds": [
        {
          "colorMode": "critical",
          "fill": true,
          "line": true,
          "op": "gt",
          "value": 50
        }
      ],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Validation failures by app",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "locale",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": "1m",
  "schemaVersion": 20,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "datasource": "Events (Production)",
        "filters": [
          {
            "condition": "AND",
            "key": "type",
            "operator": "!=",
            "value": "experience.app-requested"
          },
          {
            "condition": "AND",
            "key": "type",
            "operator": "!=",
            "value": "experience.app-received"
          },
          {
            "condition": "AND",
            "key": "request.user-agent.original.simple",
            "operator": "!=",
            "value": "Lighthouse"
          },
          {
            "condition": "AND",
            "key": "simple",
            "operator": "!=",
            "value": "klarnabot"
          },
          {
            "condition": "AND",
            "key": "request.user-agent.original.simple",
            "operator": "!=",
            "value": "googlebot"
          },
          {
            "condition": "AND",
            "key": "request.user-agent.original.simple",
            "operator": "!=",
            "value": "Datadogsynthetics"
          },
          {
            "condition": "AND",
            "key": "request.user-agent.original.simple",
            "operator": "!=",
            "value": "Adsbot"
          },
          {
            "key": "request.user-agent.original.simple",
            "operator": "!=",
            "value": "AmazonProductDiscovery"
          }
        ],
        "hide": 0,
        "label": "Event filters",
        "name": "EventFilters",
        "skipUrlSync": false,
        "type": "adhoc"
      }
    ]
  },
  "time": {
    "from": "now-24h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "Events Validation issues",
  "uid": "ujqBxdDnk",
  "version": 16,
  "description": "Event validation issues"
}