Grafana dashboard: Alerts from Popeye
Description: report generated by popeye exporting prometheus metrics

to use this dashboard you need popeye sends prometheus metrics to an pushgateway instance. 
running for example: 

popeye -A -o prometheus --pughgateway-address http://pushgateway.domainexample.com



{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "Prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.5.5"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "report generated by popeye exporting prometheus metrics",
  "editable": true,
  "gnetId": 14398,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1620678459921,
  "links": [
    {
      "asDropdown": false,
      "icon": "external link",
      "includeVars": false,
      "keepTime": false,
      "tags": [],
      "targetBlank": true,
      "title": "Popeye Report",
      "tooltip": "",
      "type": "link",
      "url": "http://popeye.domain.com"
    }
  ],
  "panels": [
    {
      "datasource": null,
      "description": "Nota do Cluster",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-RdYlGr"
          },
          "displayName": "Score",
          "mappings": [],
          "max": 100,
          "min": 10,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-red",
                "value": null
              },
              {
                "color": "green",
                "value": 95
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 8,
        "x": 0,
        "y": 0
      },
      "id": 12,
      "options": {
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "popeye_cluster_score_total",
          "format": "time_series",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Cluster Score Summary",
      "type": "gauge"
    },
    {
      "datasource": null,
      "description": "Saúde dos $resource do Cluster",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Warning"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Errors"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Info"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "blue",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 13,
        "x": 9,
        "y": 0
      },
      "id": 26,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.5",
      "targets": [
        {
          "exemplar": true,
          "expr": "sum(popeye_sanitizer_reports_count{resource=\"$resource\",level=\"ok\"}) by (level)",
          "format": "time_series",
          "instant": false,
          "interval": "",
          "legendFormat": "OK",
          "refId": "OK"
        },
        {
          "exemplar": true,
          "expr": "sum(popeye_sanitizer_reports_count{resource=\"$resource\",level=\"warn\"}) by(level)",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": "Warning",
          "refId": "Warning"
        },
        {
          "exemplar": true,
          "expr": "sum(popeye_sanitizer_reports_count{resource=\"$resource\",level=\"error\"}) by(level)",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": "Errors",
          "refId": "Errors"
        },
        {
          "exemplar": true,
          "expr": "sum(popeye_sanitizer_reports_count{resource=\"$resource\",level=\"info\"}) by(level)",
          "hide": false,
          "interval": "",
          "legendFormat": "Info",
          "refId": "Info"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "$resource",
      "type": "gauge"
    }
  ],
  "refresh": "5s",
  "schemaVersion": 27,
  "style": "dark",
  "tags": [
    "popeye",
    "monitoring"
  ],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(popeye_sanitizer_reports_count, resource)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "resource",
        "multi": false,
        "name": "resource",
        "options": [],
        "query": {
          "query": "label_values(popeye_sanitizer_reports_count, resource)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-5m",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "utc",
  "title": "Alerts from Popeye",
  "uid": "srljAVCGk",
  "version": 41
}