{
    "annotations": {
      "list": [
        {
          "builtIn": 1,
          "datasource": "-- Grafana --",
          "enable": true,
          "hide": true,
          "iconColor": "rgba(0, 211, 255, 1)",
          "name": "Annotations & Alerts",
          "target": {
            "limit": 100,
            "matchAny": false,
            "tags": [],
            "type": "dashboard"
          },
          "type": "dashboard"
        }
      ]
    },
    "description": "SendMail Stats",
    "editable": true,
    "gnetId": null,
    "graphTooltip": 0,
    "id": 9,
    "iteration": 1634721411573,
    "links": [],
    "panels": [
      {
        "datasource": null,
        "description": "Incoming/Outcoming Emails by SendMail",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "palette-classic"
            },
            "custom": {
              "axisLabel": "",
              "axisPlacement": "auto",
              "barAlignment": 0,
              "drawStyle": "line",
              "fillOpacity": 0,
              "gradientMode": "none",
              "hideFrom": {
                "legend": false,
                "tooltip": false,
                "viz": false
              },
              "lineInterpolation": "linear",
              "lineWidth": 1,
              "pointSize": 5,
              "scaleDistribution": {
                "type": "linear"
              },
              "showPoints": "auto",
              "spanNulls": false,
              "stacking": {
                "group": "A",
                "mode": "none"
              },
              "thresholdsStyle": {
                "mode": "off"
              }
            },
            "decimals": 1,
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            }
          },
          "overrides": [
            {
              "matcher": {
                "id": "byName",
                "options": "Sent Emails"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "dark-red",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "smpt_received_bytes"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "dark-green",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "Incoming Rejected Emails"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "#f20c43",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "Outcoming Emails"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "dark-blue",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "Incoming Discarded Emails"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "dark-purple",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "Incoming Quarantined Emails"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "dark-yellow",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "Outcoming Rejected Emails"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "#043102",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "Outcoming Discarded Emails"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "#04067b",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "Outcoming Quarantined Emails"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "#11bf51",
                    "mode": "fixed"
                  }
                }
              ]
            }
          ]
        },
        "gridPos": {
          "h": 8,
          "w": 12,
          "x": 0,
          "y": 0
        },
        "id": 2,
        "options": {
          "legend": {
            "calcs": [],
            "displayMode": "list",
            "placement": "bottom"
          },
          "tooltip": {
            "mode": "single"
          }
        },
        "targets": [
          {
            "exemplar": false,
            "expr": "smtp_incoming_emails{instance=\"$instance\"} - smtp_incoming_emails{instance=\"$instance\"} offset $scrape_interval",
            "hide": false,
            "instant": false,
            "interval": "$scrape_interval",
            "legendFormat": "Incoming Emails",
            "refId": "A"
          },
          {
            "exemplar": true,
            "expr": "smtp_incoming_rejected_emails{instance=\"$instance\"} - smtp_incoming_rejected_emails{instance=\"$instance\"} offset $scrape_interval",
            "hide": false,
            "interval": "$scrape_interval",
            "legendFormat": "Incoming Rejected Emails",
            "refId": "B"
          },
          {
            "exemplar": true,
            "expr": "smtp_incoming_discarded_emails{instance=\"$instance\"} - smtp_incoming_discarded_emails{instance=\"$instance\"} offset $scrape_interval",
            "hide": false,
            "interval": "$scrape_interval",
            "legendFormat": "Incoming Discarded Emails",
            "refId": "C"
          },
          {
            "exemplar": true,
            "expr": "smtp_incoming_quarantined_emails{instance=\"$instance\"} - smtp_incoming_quarantined_emails{instance=\"$instance\"} offset $scrape_interval",
            "hide": false,
            "interval": "$scrape_interval",
            "legendFormat": "Incoming Quarantined Emails",
            "refId": "D"
          },
          {
            "exemplar": true,
            "expr": "smtp_outcoming_emails{instance=\"$instance\"} - smtp_outcoming_emails{instance=\"$instance\"} offset $scrape_interval",
            "hide": false,
            "interval": "$scrape_interval",
            "legendFormat": "Outcoming Emails",
            "refId": "E"
          },
          {
            "exemplar": true,
            "expr": "smtp_outcoming_rejected_emails{instance=\"$instance\"} - smtp_outcoming_rejected_emails{instance=\"$instance\"} offset $scrape_interval",
            "hide": false,
            "interval": "$scrape_interval",
            "legendFormat": "Outcoming Rejected Emails",
            "refId": "F"
          },
          {
            "exemplar": true,
            "expr": "smtp_outcoming_discarded_emails{instance=\"$instance\"} - smtp_outcoming_discarded_emails{instance=\"$instance\"} offset $scrape_interval",
            "hide": false,
            "interval": "$scrape_interval",
            "legendFormat": "Outcoming Discarded Emails",
            "refId": "G"
          },
          {
            "exemplar": true,
            "expr": "smtp_outcoming_quarantined_emails{instance=\"$instance\"} - smtp_outcoming_quarantined_emails{instance=\"$instance\"} offset $scrape_interval",
            "hide": false,
            "interval": "$scrape_interval",
            "legendFormat": "Outcoming Quarantined Emails",
            "refId": "H"
          }
        ],
        "title": "Incoming/Outcoming Emails",
        "type": "timeseries"
      },
      {
        "datasource": null,
        "description": "Incoming/Outcoming Email traffic SendMail",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "palette-classic"
            },
            "custom": {
              "axisLabel": "",
              "axisPlacement": "auto",
              "barAlignment": 0,
              "drawStyle": "line",
              "fillOpacity": 0,
              "gradientMode": "none",
              "hideFrom": {
                "legend": false,
                "tooltip": false,
                "viz": false
              },
              "lineInterpolation": "linear",
              "lineWidth": 1,
              "pointSize": 5,
              "scaleDistribution": {
                "type": "linear"
              },
              "showPoints": "auto",
              "spanNulls": false,
              "stacking": {
                "group": "A",
                "mode": "none"
              },
              "thresholdsStyle": {
                "mode": "off"
              }
            },
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            },
            "unit": "deckbytes"
          },
          "overrides": [
            {
              "matcher": {
                "id": "byName",
                "options": "SMTP Outcoming Data"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "dark-red",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "SMTP Incoming Data"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "dark-green",
                    "mode": "fixed"
                  }
                }
              ]
            }
          ]
        },
        "gridPos": {
          "h": 8,
          "w": 12,
          "x": 12,
          "y": 0
        },
        "id": 4,
        "options": {
          "legend": {
            "calcs": [],
            "displayMode": "list",
            "placement": "bottom"
          },
          "tooltip": {
            "mode": "single"
          }
        },
        "targets": [
          {
            "exemplar": true,
            "expr": "smtp_incoming_data{instance=\"$instance\"} - smtp_incoming_data offset $scrape_interval",
            "interval": "$scrape_interval",
            "legendFormat": "SMTP Incoming Data",
            "refId": "A"
          },
          {
            "exemplar": true,
            "expr": "smtp_outcoming_data{instance=\"$instance\"} - smtp_outcoming_data{instance=\"$instance\"} offset $scrape_interval",
            "hide": false,
            "interval": "$scrape_interval",
            "legendFormat": "SMTP Outcoming Data",
            "refId": "B"
          }
        ],
        "title": "Incoming/Outcoming Email traffic",
        "type": "timeseries"
      },
      {
        "datasource": null,
        "description": "Queued/State Emails",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "palette-classic"
            },
            "custom": {
              "axisLabel": "",
              "axisPlacement": "auto",
              "barAlignment": 0,
              "drawStyle": "line",
              "fillOpacity": 0,
              "gradientMode": "none",
              "hideFrom": {
                "legend": false,
                "tooltip": false,
                "viz": false
              },
              "lineInterpolation": "linear",
              "lineWidth": 1,
              "pointSize": 5,
              "scaleDistribution": {
                "type": "linear"
              },
              "showPoints": "auto",
              "spanNulls": false,
              "stacking": {
                "group": "A",
                "mode": "none"
              },
              "thresholdsStyle": {
                "mode": "line"
              }
            },
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                }
              ]
            }
          },
          "overrides": [
            {
              "matcher": {
                "id": "byName",
                "options": "queued_emails"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "dark-purple",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "Queued Emails"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "dark-purple",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "Quarantined Emails"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "dark-purple",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "Lost Emails"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "#0048b4",
                    "mode": "fixed"
                  }
                }
              ]
            }
          ]
        },
        "gridPos": {
          "h": 8,
          "w": 12,
          "x": 0,
          "y": 8
        },
        "id": 6,
        "options": {
          "legend": {
            "calcs": [],
            "displayMode": "list",
            "placement": "bottom"
          },
          "tooltip": {
            "mode": "single"
          }
        },
        "targets": [
          {
            "exemplar": true,
            "expr": "smtp_queued_emails_mqueue{instance=\"$instance\"}",
            "hide": false,
            "interval": "",
            "legendFormat": "Queued Emails mqueue",
            "refId": "A"
          },
          {
            "exemplar": true,
            "expr": "smtp_queued_emails_clientmqueue{instance=\"$instance\"}",
            "hide": false,
            "interval": "",
            "legendFormat": "Queued Emails clientmqueue",
            "refId": "B"
          },
          {
            "exemplar": true,
            "expr": "smtp_queued_emails_lost{instance=\"$instance\"}",
            "hide": false,
            "interval": "",
            "legendFormat": "Lost Emails",
            "refId": "C"
          },
          {
            "exemplar": true,
            "expr": "smtp_queued_emails_quarantined{instance=\"$instance\"}",
            "hide": false,
            "interval": "",
            "legendFormat": "Quarantined Emails",
            "refId": "D"
          }
        ],
        "title": "Queued/State Emails",
        "type": "timeseries"
      }
    ],
    "refresh": "5s",
    "schemaVersion": 30,
    "style": "dark",
    "tags": [],
    "templating": {
      "list": [
        {
          "allValue": null,
          "current": {
            "selected": false,
            "text": "drwho:2525",
            "value": "drwho:2525"
          },
          "datasource": null,
          "definition": "label_values(smtp_incoming_emails{job=\"sendmail_exporter\"}, instance)",
          "description": null,
          "error": null,
          "hide": 0,
          "includeAll": false,
          "label": "Instance",
          "multi": false,
          "name": "instance",
          "options": [],
          "query": {
            "query": "label_values(smtp_incoming_emails{job=\"sendmail_exporter\"}, instance)",
            "refId": "StandardVariableQuery"
          },
          "refresh": 1,
          "regex": "",
          "skipUrlSync": false,
          "sort": 0,
          "type": "query"
        },
        {
          "allValue": null,
          "current": {
            "selected": false,
            "text": "30s",
            "value": "30s"
          },
          "datasource": null,
          "definition": "label_values(smtp_incoming_emails{job=\"sendmail_exporter\"}, scrape_interval)",
          "description": "Interval that metric was scraped by Prometheus server",
          "error": null,
          "hide": 2,
          "includeAll": false,
          "label": null,
          "multi": false,
          "name": "scrape_interval",
          "options": [],
          "query": {
            "query": "label_values(smtp_incoming_emails{job=\"sendmail_exporter\"}, scrape_interval)",
            "refId": "StandardVariableQuery"
          },
          "refresh": 1,
          "regex": "",
          "skipUrlSync": false,
          "sort": 0,
          "type": "query"
        }
      ]
    },
    "time": {
      "from": "now-15m",
      "to": "now"
    },
    "timepicker": {},
    "timezone": "",
    "title": "SendMail Stats",
    "uid": "8NSLTGdnk",
    "version": 24
  }