Grafana dashboard: Zabbix - Monitoramento Sefaz
Description: Monitore os webservices do sefaz


{
  "__inputs": [
    {
      "name": "DS_ZABBIX",
      "label": "Zabbix",
      "description": "http://192.168.100.40/hosts.php",
      "type": "datasource",
      "pluginId": "alexanderzobnin-zabbix-datasource",
      "pluginName": "Zabbix"
    }
  ],
  "__requires": [
    {
      "type": "datasource",
      "id": "alexanderzobnin-zabbix-datasource",
      "name": "Zabbix",
      "version": "1.0.0"
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.1.0"
    },
    {
      "type": "panel",
      "id": "grafana-worldmap-panel",
      "name": "Worldmap Panel",
      "version": "0.2.0"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "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": 14008,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1554430282281,
  "links": [],
  "panels": [
    {
      "cacheTimeout": null,
      "colorBackground": true,
      "colorValue": false,
      "colors": [
        "#b7dbab",
        "#f29191",
        "#f29191"
      ],
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 1,
        "w": 1.7142857142857142,
        "x": 0,
        "y": 0
      },
      "id": 19,
      "interval": null,
      "links": [],
      "mappingType": 2,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "maxPerRow": 24,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "",
          "to": "null"
        },
        {
          "from": "1",
          "text": "",
          "to": "999"
        },
        {
          "from": "0",
          "text": "",
          "to": "0.9"
        }
      ],
      "repeat": "Estados",
      "repeatDirection": "h",
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "application": {
            "filter": "/.*/"
          },
          "functions": [],
          "group": {
            "filter": "/.*/"
          },
          "host": {
            "filter": "Sefaz"
          },
          "item": {
            "filter": "Failed step of scenario \"$Estados\"."
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false,
            "skipEmptyValues": false
          },
          "refId": "A",
          "resultFormat": "time_series",
          "table": {
            "skipEmptyValues": false
          },
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        }
      ],
      "thresholds": "1,2",
      "title": "$Estados",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "100%",
      "valueMaps": [],
      "valueName": "current"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 1
      },
      "id": 10,
      "panels": [],
      "title": "",
      "type": "row"
    },
    {
      "circleMaxSize": "20",
      "circleMinSize": 2,
      "colors": [
        "#629e51",
        "#bf1b00"
      ],
      "datasource": "${DS_ZABBIX}",
      "decimals": 0,
      "esLocationName": "",
      "esMetric": "Metric",
      "gridPos": {
        "h": 21,
        "w": 9,
        "x": 0,
        "y": 2
      },
      "hideEmpty": false,
      "hideTimeOverride": true,
      "hideZero": false,
      "id": 2,
      "initialZoom": "4",
      "jsonUrl": "https://raw.githubusercontent.com/paulopaim/grafana/master/states.json",
      "jsonpCallback": "",
      "jsonpUrl": "https://raw.githubusercontent.com/paulopaim/grafana/master/states.json",
      "links": [],
      "locationData": "json endpoint",
      "mapCenter": "custom",
      "mapCenterLatitude": "-15",
      "mapCenterLongitude": "-55",
      "maxDataPoints": 1,
      "mouseWheelZoom": false,
      "showLegend": false,
      "stickyLabels": false,
      "tableLabel": "",
      "tableQueryOptions": {
        "geohashField": "geohash",
        "labelField": "",
        "latitudeField": "latitude",
        "longitudeField": "longitude",
        "metricField": "metric",
        "queryType": "coordinates"
      },
      "targets": [
        {
          "alias": "",
          "application": {
            "filter": "Sefaz"
          },
          "format": "table",
          "functions": [
            {
              "def": {
                "category": "Alias",
                "defaultParams": [
                  "/(.*)/",
                  "$1"
                ],
                "name": "replaceAlias",
                "params": [
                  {
                    "name": "regexp",
                    "type": "string"
                  },
                  {
                    "name": "newAlias",
                    "type": "string"
                  }
                ]
              },
              "params": [
                "/.*Failed step of scenario \"([^.]*)\".*/",
                "$1"
              ],
              "text": "replaceAlias(/.*Failed step of scenario \"([^.]*)\".*/, $1)"
            }
          ],
          "group": {
            "filter": "/.*/"
          },
          "host": {
            "filter": "Sefaz"
          },
          "item": {
            "filter": "Failed step of scenario \"$Estados\"."
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false,
            "skipEmptyValues": false
          },
          "rawSql": "select * \nfrom httptest_field ",
          "refId": "A",
          "resultFormat": "time_series",
          "table": {
            "skipEmptyValues": false
          },
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        }
      ],
      "thresholds": "0.9",
      "timeFrom": "1m",
      "timeShift": null,
      "title": "Brazil",
      "type": "grafana-worldmap-panel",
      "unitPlural": "",
      "unitSingle": "",
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "#b7dbab",
        "#b7dbab",
        "#f29191"
      ],
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 9,
        "y": 2
      },
      "id": 60,
      "interval": null,
      "links": [],
      "mappingType": 2,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "NO VALUE",
          "to": "null"
        },
        {
          "from": "1",
          "text": "PROBLEM",
          "to": "199"
        },
        {
          "from": "201",
          "text": "PROBLEM",
          "to": "999"
        },
        {
          "from": "200",
          "text": "OK",
          "to": "200"
        }
      ],
      "repeat": "Services",
      "repeatDirection": "v",
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "application": {
            "filter": "/.*/"
          },
          "functions": [],
          "group": {
            "filter": "/.*/"
          },
          "host": {
            "filter": "Sefaz"
          },
          "item": {
            "filter": "Response code for step \"$Services\" of scenario \"$Sefaz\"."
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false,
            "skipEmptyValues": false
          },
          "refId": "A",
          "resultFormat": "time_series",
          "table": {
            "skipEmptyValues": false
          },
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        }
      ],
      "thresholds": "",
      "title": "$Services",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "100%",
      "valueMaps": [],
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "decimals": 0,
      "format": "s",
      "gauge": {
        "maxValue": 6,
        "minValue": 0,
        "show": true,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 13,
        "y": 2
      },
      "id": 34,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "repeat": "Services",
      "repeatDirection": "v",
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "application": {
            "filter": "/.*/"
          },
          "functions": [],
          "group": {
            "filter": "/.*/"
          },
          "host": {
            "filter": "Sefaz"
          },
          "item": {
            "filter": "Response time for step \"$Services\" of scenario \"$Sefaz\"."
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false,
            "skipEmptyValues": false
          },
          "refId": "A",
          "resultFormat": "time_series",
          "table": {
            "skipEmptyValues": false
          },
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        }
      ],
      "thresholds": "4,5",
      "title": "$Services",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "alert": {
        "conditions": [
          {
            "evaluator": {
              "params": [
                4
              ],
              "type": "gt"
            },
            "operator": {
              "type": "and"
            },
            "query": {
              "params": [
                "A",
                "5m",
                "now"
              ]
            },
            "reducer": {
              "params": [],
              "type": "avg"
            },
            "type": "query"
          }
        ],
        "executionErrorState": "alerting",
        "frequency": "60s",
        "handler": 1,
        "name": "NfeStatusServico alert",
        "noDataState": "no_data",
        "notifications": []
      },
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "fill": 1,
      "gridPos": {
        "h": 3,
        "w": 8,
        "x": 16,
        "y": 2
      },
      "id": 14,
      "legend": {
        "avg": false,
        "current": true,
        "max": false,
        "min": false,
        "show": false,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "repeat": "Services",
      "repeatDirection": "v",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "application": {
            "filter": "Sefaz"
          },
          "functions": [],
          "group": {
            "filter": "/.*/"
          },
          "host": {
            "filter": "Sefaz"
          },
          "item": {
            "filter": "Response time for step \"$Services\" of scenario \"$Sefaz\"."
          },
          "itemids": "$Sefaz",
          "mode": 0,
          "options": {
            "showDisabledItems": false,
            "skipEmptyValues": false
          },
          "refId": "A",
          "resultFormat": "time_series",
          "slaProperty": {
            "name": "SLA",
            "property": "sla"
          },
          "table": {
            "skipEmptyValues": false
          },
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        }
      ],
      "thresholds": [
        {
          "colorMode": "critical",
          "fill": true,
          "line": true,
          "op": "gt",
          "value": 4
        }
      ],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "$Services",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 0,
          "format": "s",
          "label": "",
          "logBase": 1,
          "max": "5",
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "content": "UF que utilizam a <b>SVAN</b>- Sefaz Virtual do Ambiente Nacional: <b>MA, PA</b><br>\r\nUF que utilizam a <b>SVRS</b> - Sefaz Virtual do <b>RS:</b><br>\r\n<li>Para serviço de Consulta Cadastro: <b>AC, RN, PB, SC</b>\r\n<li>Para demais serviços relacionados com o sistema da NF-e: <b>AC, AL, AP, DF, ES, PB, PI, RJ, RN, RO, RR, SC, SE, TO</b><br>\r\n<br>\r\nAutorizadores em contingência: \r\n<li>UF que utilizam a <b>SVC-AN</b> - Sefaz Virtual de Contingência Ambiente Nacional: <b>AC, AL, AP, DF, ES, MG, PB, PI, RJ, RN, RO, RR, RS, SC, SE, SP, TO</b>\r\n<li>UF que utilizam a <b>SVC-RS</b> - Sefaz Virtual de Contingência Rio Grande do Sul: <b>AM, BA, CE, GO, MA, MS, MT, PA, PE, PR</b>",
      "gridPos": {
        "h": 5,
        "w": 13,
        "x": 0,
        "y": 23
      },
      "id": 93,
      "links": [],
      "mode": "html",
      "title": "",
      "transparent": true,
      "type": "text"
    }
  ],
  "refresh": "1m",
  "schemaVersion": 18,
  "style": "dark",
  "tags": [
    "sefaz"
  ],
  "templating": {
    "list": [
      {
        "allValue": "",
        "current": {},
        "datasource": "${DS_ZABBIX}",
        "definition": "",
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "Sefaz",
        "options": [],
        "query": "*.Sefaz.*.*",
        "refresh": 1,
        "regex": "/.*Failed step of scenario \"([^.]*)\".*/",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_ZABBIX}",
        "definition": "",
        "hide": 2,
        "includeAll": true,
        "label": null,
        "multi": false,
        "name": "Services",
        "options": [],
        "query": "*.Sefaz.*.*",
        "refresh": 1,
        "regex": "/Response time for step \"([^.]*)\" of /",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": "",
        "current": {},
        "datasource": "${DS_ZABBIX}",
        "definition": "",
        "hide": 2,
        "includeAll": true,
        "label": null,
        "multi": true,
        "name": "Estados",
        "options": [],
        "query": "*.Sefaz.*.*",
        "refresh": 1,
        "regex": "/.*Failed step of scenario \"([^.]*)\".*/",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-15m",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "Zabbix - Monitoramento Sefaz",
  "uid": "sefaz",
  "version": 3,
  "description": "Monitore os webservices do sefaz"
}