Grafana dashboard: Resource Failover Pacemaker
Description: Pacemaker, corosync, DRBD, Postgresql and VIP resource failover monitoring

**Pacemaker, Corosync, DRBD, Postgresql for High Availability Failover Monitoring**

Show the latest posisition of the last primary using pacemaker engine (pengine) from Filebeat and Heartbeat for Availability of the servers.
Using Elasticsearch 7.5.0 and Grafana 6.5.2

{
  "__inputs": [
    {
      "name": "DS_FILEBEAT",
      "label": "Filebeat",
      "description": "",
      "type": "datasource",
      "pluginId": "elasticsearch",
      "pluginName": "Elasticsearch"
    },
    {
      "name": "DS_HEARTBEAT",
      "label": "Heartbeat",
      "description": "",
      "type": "datasource",
      "pluginId": "elasticsearch",
      "pluginName": "Elasticsearch"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "briangann-datatable-panel",
      "name": "Datatable Panel",
      "version": "0.0.9"
    },
    {
      "type": "datasource",
      "id": "elasticsearch",
      "name": "Elasticsearch",
      "version": "1.0.0"
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.5.2"
    },
    {
      "type": "panel",
      "id": "heatmap",
      "name": "Heatmap",
      "version": ""
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "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": 11458,
  "graphTooltip": 2,
  "id": null,
  "links": [
    {
      "asDropdown": true,
      "icon": "external link",
      "tags": [
        "Tol Laut"
      ],
      "targetBlank": true,
      "title": "Dashboard",
      "type": "dashboards"
    }
  ],
  "panels": [
    {
      "cards": {
        "cardPadding": null,
        "cardRound": null
      },
      "color": {
        "cardColor": "#C4162A",
        "colorScale": "linear",
        "colorScheme": "interpolateSpectral",
        "exponent": 0.5,
        "mode": "opacity"
      },
      "dataFormat": "tsbuckets",
      "datasource": "${DS_FILEBEAT}",
      "gridPos": {
        "h": 10,
        "w": 16,
        "x": 0,
        "y": 0
      },
      "heatmap": {},
      "hideZeroBuckets": false,
      "highlightCards": true,
      "id": 2,
      "legend": {
        "show": false
      },
      "options": {},
      "pluginVersion": "6.4.4",
      "reverseYBuckets": true,
      "targets": [
        {
          "aggregation": "Avg",
          "alias": "Master Postgresql",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "process.pid",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "count"
            }
          ],
          "query": "process.name: \"crmd\" AND message: \"*start operation for pgsql on masterdrbd: 0 (ok)\"",
          "refId": "G",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        },
        {
          "aggregation": "Last",
          "alias": "Slave Postgresql",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "process.pid",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "count"
            }
          ],
          "query": "process.name: \"crmd\" AND message: \"*start operation for pgsql on slavedrbd: 0 (ok)\"",
          "refId": "H",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        },
        {
          "aggregation": "Last",
          "alias": "Master VIP-Master",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "select field",
              "id": "1",
              "type": "count"
            }
          ],
          "query": "process.name: \"crmd\" AND message: \"*start operation for vip-master on masterdrbd: 0 (ok)\"",
          "refId": "B",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        },
        {
          "aggregation": "Last",
          "alias": "Slave VIP-Master",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "select field",
              "id": "1",
              "type": "count"
            }
          ],
          "query": "process.name: \"crmd\" AND message: \"*start operation for vip-master on slavedrbd: 0 (ok)\"",
          "refId": "A",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        },
        {
          "aggregation": "Last",
          "alias": "Master Filesystem",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "select field",
              "id": "1",
              "type": "count"
            }
          ],
          "query": "process.name: \"crmd\" AND message: \"*start operation for filesystem on masterdrbd: 0 (ok)\"",
          "refId": "C",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        },
        {
          "aggregation": "Last",
          "alias": "Slave Filesystem",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "select field",
              "id": "1",
              "type": "count"
            }
          ],
          "query": "process.name: \"crmd\" AND message: \"*start operation for filesystem on slavedrbd: 0 (ok)\"",
          "refId": "D",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        },
        {
          "aggregation": "Last",
          "alias": "Slave DRBD",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "process.pid",
              "id": "1",
              "meta": {},
              "settings": {
                "precision_threshold": 1
              },
              "type": "cardinality"
            }
          ],
          "query": "process.name: \"crmd\" AND message: \"*start operation for dataraw on slavedrbd: 0 (ok)\"",
          "refId": "E",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        },
        {
          "aggregation": "Last",
          "alias": "Master DRBD",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "process.pid",
              "id": "1",
              "meta": {},
              "settings": {
                "precision_threshold": 1
              },
              "type": "cardinality"
            }
          ],
          "query": "process.name: \"crmd\" AND message: \"*start operation for dataraw on masterdrbd: 0 (ok)\"",
          "refId": "F",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        },
        {
          "aggregation": "Last",
          "alias": "Master NFS",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "process.pid",
              "id": "1",
              "meta": {},
              "settings": {
                "precision_threshold": 1
              },
              "type": "cardinality"
            }
          ],
          "query": "process.name: \"crmd\" AND message: \"*start operation for NFS-server on masterdrbd: 0 (ok)\"",
          "refId": "I",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        },
        {
          "aggregation": "Last",
          "alias": "SLave NFS",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "process.pid",
              "id": "1",
              "meta": {},
              "settings": {
                "precision_threshold": 1
              },
              "type": "cardinality"
            }
          ],
          "query": "process.name: \"crmd\" AND message: \"*start operation for NFS-server on slavedrbd: 0 (ok)\"",
          "refId": "J",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Database Resource HA FailOver",
      "tooltip": {
        "show": true,
        "showHistogram": false
      },
      "transparent": true,
      "type": "heatmap",
      "xAxis": {
        "show": true
      },
      "xBucketNumber": null,
      "xBucketSize": null,
      "yAxis": {
        "decimals": null,
        "format": "none",
        "logBase": 1,
        "max": null,
        "min": null,
        "show": true,
        "splitFactor": null
      },
      "yBucketBound": "middle",
      "yBucketNumber": null,
      "yBucketSize": null
    },
    {
      "cacheTimeout": null,
      "colorBackground": true,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "${DS_FILEBEAT}",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 5,
        "w": 4,
        "x": 16,
        "y": 0
      },
      "id": 3,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "options": {},
      "pluginVersion": "6.4.4",
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": true,
        "ymax": null,
        "ymin": null
      },
      "tableColumn": "",
      "targets": [
        {
          "aggregation": "Last",
          "alias": "",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "process.pid",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "count"
            }
          ],
          "query": "process.name: \"crmd\" AND message: \"*start operation for pgsql on slavedrbd: 0 (ok)\"",
          "refId": "G",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        }
      ],
      "thresholds": "10,30",
      "timeFrom": null,
      "timeShift": null,
      "title": "Master Database Swing to Slave",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "200%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "total"
    },
    {
      "cacheTimeout": null,
      "columnAliases": [
        {
          "alias": "Dabatase Host Operation",
          "name": "host.hostname"
        }
      ],
      "columnWidthHints": [
        {
          "name": "host.hostname",
          "width": "100px"
        }
      ],
      "columns": [
        {
          "text": "host.hostname",
          "value": "host.hostname"
        }
      ],
      "compactRowsEnabled": false,
      "datasource": "${DS_FILEBEAT}",
      "datatablePagingType": "numbers",
      "datatableTheme": "basic_theme",
      "emptyData": false,
      "fontSize": "150%",
      "gridPos": {
        "h": 4,
        "w": 4,
        "x": 20,
        "y": 0
      },
      "hoverEnabled": false,
      "id": 5,
      "infoEnabled": false,
      "lengthChangeEnabled": true,
      "links": [],
      "options": {},
      "orderColumnEnabled": false,
      "pagingTypes": [
        {
          "text": "Page number buttons only",
          "value": "numbers"
        },
        {
          "text": "'Previous' and 'Next' buttons only",
          "value": "simple"
        },
        {
          "text": "'Previous' and 'Next' buttons, plus page numbers",
          "value": "simple_numbers"
        },
        {
          "text": "'First', 'Previous', 'Next' and 'Last' buttons",
          "value": "full"
        },
        {
          "text": "'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers",
          "value": "full_numbers"
        },
        {
          "text": "'First' and 'Last' buttons, plus page numbers",
          "value": "first_last_numbers"
        }
      ],
      "panelHeight": null,
      "pluginVersion": "6.4.4",
      "rowNumbersEnabled": false,
      "rowsPerPage": 1,
      "scroll": true,
      "scrollHeight": "default",
      "searchEnabled": false,
      "showCellBorders": false,
      "showHeader": true,
      "showRowBorders": false,
      "sort": {
        "col": 0,
        "desc": true
      },
      "sortByColumns": [
        {
          "columnData": 0,
          "sortMethod": "desc"
        }
      ],
      "sortByColumnsData": [
        [
          0,
          "desc"
        ]
      ],
      "stripedRowsEnabled": false,
      "styles": [
        {
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "mappingType": 1,
          "pattern": "host.hostname",
          "sanitize": false,
          "splitPattern": "/ /",
          "type": "string",
          "valueMaps": []
        }
      ],
      "targets": [
        {
          "aggregation": "Last",
          "alias": "",
          "bucketAggs": [],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "process.pid",
              "id": "1",
              "meta": {},
              "settings": {
                "size": 1
              },
              "type": "raw_document"
            }
          ],
          "query": "process.name: crmd AND message: \"*S_TRANSITION_ENGINE -> S_IDLE\" AND host.hostname: *drbd*",
          "refId": "G",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        }
      ],
      "themeOptions": {
        "dark": "./styles/dark.css",
        "light": "./styles/light.css"
      },
      "themes": [
        {
          "disabled": false,
          "text": "Basic",
          "value": "basic_theme"
        },
        {
          "disabled": true,
          "text": "Bootstrap",
          "value": "bootstrap_theme"
        },
        {
          "disabled": true,
          "text": "Foundation",
          "value": "foundation_theme"
        },
        {
          "disabled": true,
          "text": "ThemeRoller",
          "value": "themeroller_theme"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "",
      "transform": "json",
      "transparent": true,
      "type": "briangann-datatable-panel"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "rgba(245, 54, 54, 0.9)",
        "rgba(237, 129, 40, 0.89)",
        "rgba(50, 172, 45, 0.97)"
      ],
      "datasource": "${DS_HEARTBEAT}",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 20,
        "y": 4
      },
      "id": 7,
      "interval": null,
      "links": [],
      "mappingType": 2,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "options": {},
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "-1",
          "text": "Down",
          "to": "0"
        },
        {
          "from": "0",
          "text": "Up",
          "to": "1"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "metrics": [
            {
              "field": "summary.up",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "monitor.type: icmp AND url.domain: masterdrbd",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": "-1,0",
      "title": "Database Master Node",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "150%",
      "valueMaps": [
        {
          "op": "=",
          "text": "Down",
          "value": "0"
        },
        {
          "op": "=",
          "text": "Up",
          "value": "1"
        }
      ],
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "colorBackground": true,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "${DS_FILEBEAT}",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 5,
        "w": 4,
        "x": 16,
        "y": 5
      },
      "id": 4,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "options": {},
      "pluginVersion": "6.4.4",
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": true,
        "ymax": null,
        "ymin": null
      },
      "tableColumn": "",
      "targets": [
        {
          "aggregation": "Last",
          "alias": "",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "process.pid",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "count"
            }
          ],
          "query": "process.name: \"crmd\" AND message: \"*start operation for pgsql on masterdrbd: 0 (ok)\"",
          "refId": "G",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        }
      ],
      "thresholds": "10,30",
      "timeFrom": null,
      "timeShift": null,
      "title": "Slave Database Swing to Master",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "200%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "total"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "rgba(245, 54, 54, 0.9)",
        "rgba(237, 129, 40, 0.89)",
        "rgba(50, 172, 45, 0.97)"
      ],
      "datasource": "${DS_HEARTBEAT}",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 20,
        "y": 7
      },
      "id": 8,
      "interval": null,
      "links": [],
      "mappingType": 2,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "options": {},
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "-1",
          "text": "Down",
          "to": "0"
        },
        {
          "from": "0",
          "text": "Up",
          "to": "1"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "metrics": [
            {
              "field": "summary.up",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "monitor.type: icmp AND url.domain: slavedrbd",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": "-1,0",
      "title": "Database Slave Node",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "150%",
      "valueMaps": [
        {
          "op": "=",
          "text": "Down",
          "value": "0"
        },
        {
          "op": "=",
          "text": "Up",
          "value": "1"
        }
      ],
      "valueName": "current"
    },
    {
      "cards": {
        "cardPadding": null,
        "cardRound": null
      },
      "color": {
        "cardColor": "#C4162A",
        "colorScale": "linear",
        "colorScheme": "interpolateGreens",
        "exponent": 0.5,
        "mode": "opacity"
      },
      "dataFormat": "tsbuckets",
      "datasource": "${DS_FILEBEAT}",
      "gridPos": {
        "h": 10,
        "w": 16,
        "x": 0,
        "y": 10
      },
      "heatmap": {},
      "hideZeroBuckets": false,
      "highlightCards": true,
      "id": 9,
      "legend": {
        "show": false
      },
      "options": {},
      "pluginVersion": "6.4.4",
      "reverseYBuckets": false,
      "targets": [
        {
          "aggregation": "Last",
          "alias": "Master VIP Loadbalancer",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "select field",
              "id": "1",
              "type": "count"
            }
          ],
          "query": "process.name: \"crmd\" AND message: \"*start operation for virtual_ip_haproxy on loadbalancer01: 0 (ok)\"",
          "refId": "B",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        },
        {
          "aggregation": "Last",
          "alias": "Slave VIP Loadbalancer",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "select field",
              "id": "1",
              "type": "count"
            }
          ],
          "query": "process.name: \"crmd\" AND message: \"*start operation for virtual_ip_haproxy on loadbalancer02: 0 (ok)\"",
          "refId": "A",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "LoadBalancer Resource HA FailOver",
      "tooltip": {
        "show": true,
        "showHistogram": false
      },
      "transparent": true,
      "type": "heatmap",
      "xAxis": {
        "show": true
      },
      "xBucketNumber": null,
      "xBucketSize": null,
      "yAxis": {
        "decimals": null,
        "format": "none",
        "logBase": 1,
        "max": null,
        "min": null,
        "show": true,
        "splitFactor": null
      },
      "yBucketBound": "middle",
      "yBucketNumber": null,
      "yBucketSize": null
    },
    {
      "cacheTimeout": null,
      "colorBackground": true,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "${DS_FILEBEAT}",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 5,
        "w": 4,
        "x": 16,
        "y": 10
      },
      "id": 10,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "options": {},
      "pluginVersion": "6.4.4",
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": true,
        "ymax": null,
        "ymin": null
      },
      "tableColumn": "",
      "targets": [
        {
          "aggregation": "Last",
          "alias": "",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "process.pid",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "count"
            }
          ],
          "query": "process.name: \"crmd\" AND message: \"*start operation for virtual_ip_haproxy on loadbalancer02: 0 (ok)\"",
          "refId": "G",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        }
      ],
      "thresholds": "10,30",
      "timeFrom": null,
      "timeShift": null,
      "title": "Master LoadBalancer Swing to Slave",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "200%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "total"
    },
    {
      "cacheTimeout": null,
      "columnAliases": [
        {
          "alias": "LoadBalancer Host Operation",
          "name": "host.hostname"
        }
      ],
      "columnWidthHints": [
        {
          "name": "host.hostname",
          "width": "200px"
        }
      ],
      "columns": [
        {
          "text": "host.hostname",
          "value": "host.hostname"
        }
      ],
      "compactRowsEnabled": false,
      "datasource": "${DS_FILEBEAT}",
      "datatablePagingType": "numbers",
      "datatableTheme": "basic_theme",
      "emptyData": false,
      "fontSize": "150%",
      "gridPos": {
        "h": 4,
        "w": 4,
        "x": 20,
        "y": 10
      },
      "hoverEnabled": false,
      "id": 12,
      "infoEnabled": false,
      "lengthChangeEnabled": false,
      "links": [],
      "options": {},
      "orderColumnEnabled": false,
      "pagingTypes": [
        {
          "text": "Page number buttons only",
          "value": "numbers"
        },
        {
          "text": "'Previous' and 'Next' buttons only",
          "value": "simple"
        },
        {
          "text": "'Previous' and 'Next' buttons, plus page numbers",
          "value": "simple_numbers"
        },
        {
          "text": "'First', 'Previous', 'Next' and 'Last' buttons",
          "value": "full"
        },
        {
          "text": "'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers",
          "value": "full_numbers"
        },
        {
          "text": "'First' and 'Last' buttons, plus page numbers",
          "value": "first_last_numbers"
        }
      ],
      "panelHeight": null,
      "pluginVersion": "6.4.4",
      "rowNumbersEnabled": false,
      "rowsPerPage": 1,
      "scroll": true,
      "scrollHeight": "default",
      "searchEnabled": false,
      "showCellBorders": false,
      "showHeader": true,
      "showRowBorders": false,
      "sort": {
        "col": 0,
        "desc": true
      },
      "sortByColumns": [
        {
          "columnData": 0,
          "sortMethod": "desc"
        }
      ],
      "sortByColumnsData": [
        [
          0,
          "desc"
        ]
      ],
      "stripedRowsEnabled": false,
      "styles": [
        {
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "mappingType": 1,
          "pattern": "host.hostname",
          "sanitize": true,
          "splitPattern": "/ /",
          "type": "string",
          "valueMaps": []
        }
      ],
      "targets": [
        {
          "aggregation": "Last",
          "alias": "",
          "bucketAggs": [],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "process.pid",
              "id": "1",
              "meta": {},
              "settings": {
                "size": 1
              },
              "type": "raw_document"
            }
          ],
          "query": "process.name: crmd AND message: \"*S_TRANSITION_ENGINE -> S_IDLE\" AND host.hostname: loadbalancer*",
          "refId": "G",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        }
      ],
      "themeOptions": {
        "dark": "./styles/dark.css",
        "light": "./styles/light.css"
      },
      "themes": [
        {
          "disabled": false,
          "text": "Basic",
          "value": "basic_theme"
        },
        {
          "disabled": true,
          "text": "Bootstrap",
          "value": "bootstrap_theme"
        },
        {
          "disabled": true,
          "text": "Foundation",
          "value": "foundation_theme"
        },
        {
          "disabled": true,
          "text": "ThemeRoller",
          "value": "themeroller_theme"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "",
      "transform": "json",
      "transparent": true,
      "type": "briangann-datatable-panel"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "rgba(245, 54, 54, 0.9)",
        "rgba(237, 129, 40, 0.89)",
        "rgba(50, 172, 45, 0.97)"
      ],
      "datasource": "${DS_HEARTBEAT}",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 20,
        "y": 14
      },
      "id": 13,
      "interval": null,
      "links": [],
      "mappingType": 2,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "options": {},
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "-1",
          "text": "Down",
          "to": "0"
        },
        {
          "from": "0",
          "text": "Up",
          "to": "1"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "metrics": [
            {
              "field": "summary.up",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "monitor.type: icmp AND url.domain: loadbalancer01",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": "-1,0",
      "title": "LoadBalancer Master Node",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "150%",
      "valueMaps": [
        {
          "op": "=",
          "text": "Down",
          "value": "0"
        },
        {
          "op": "=",
          "text": "Up",
          "value": "1"
        }
      ],
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "colorBackground": true,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "${DS_FILEBEAT}",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 5,
        "w": 4,
        "x": 16,
        "y": 15
      },
      "id": 11,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "options": {},
      "pluginVersion": "6.4.4",
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": true,
        "ymax": null,
        "ymin": null
      },
      "tableColumn": "",
      "targets": [
        {
          "aggregation": "Last",
          "alias": "",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "metrics": [
            {
              "field": "process.pid",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "count"
            }
          ],
          "query": "process.name: \"crmd\" AND message: \"*start operation for virtual_ip_haproxy on loadbalancer01: 0 (ok)\"",
          "refId": "G",
          "timeField": "@timestamp",
          "units": "none",
          "valueHandler": "Number Threshold"
        }
      ],
      "thresholds": "10,30",
      "timeFrom": null,
      "timeShift": null,
      "title": "Slave LoadBalancer Swing to Master",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "200%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "total"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "rgba(245, 54, 54, 0.9)",
        "rgba(237, 129, 40, 0.89)",
        "rgba(50, 172, 45, 0.97)"
      ],
      "datasource": "${DS_HEARTBEAT}",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 20,
        "y": 17
      },
      "id": 14,
      "interval": null,
      "links": [],
      "mappingType": 2,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "options": {},
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "-1",
          "text": "Down",
          "to": "0"
        },
        {
          "from": "0",
          "text": "Up",
          "to": "1"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "metrics": [
            {
              "field": "summary.up",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "monitor.type: icmp AND url.domain: loadbalancer02",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": "-1,0",
      "title": "LoadBalancer Slave Node",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "150%",
      "valueMaps": [
        {
          "op": "=",
          "text": "Down",
          "value": "0"
        },
        {
          "op": "=",
          "text": "Up",
          "value": "1"
        }
      ],
      "valueName": "current"
    }
  ],
  "refresh": false,
  "schemaVersion": 21,
  "style": "dark",
  "tags": [
    "Tol Laut"
  ],
  "templating": {
    "list": []
  },
  "time": {
    "from": "2019-12-06T11:56:17.985Z",
    "to": "2019-12-06T16:21:15.811Z"
  },
  "timepicker": {
    "hidden": false,
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "Resource Failover Pacemaker",
  "uid": "5LYZbhxZk",
  "version": 19,
  "description": "Pacemaker, corosync, DRBD, Postgresql and VIP resource failover monitoring"
}