Merge "Drop Travis CI support"
diff --git a/LICENSE b/LICENSE
index 8e80b12..cdb66dd 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2014-2015 tcp cloud a. s.
+Copyright (c) 2014-2019 Mirantis Inc. et al
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/README.rst b/README.rst
index 93831e2..009305c 100644
--- a/README.rst
+++ b/README.rst
@@ -182,6 +182,7 @@
- available_when_readonly=0
check_random_exit:
interval: 10
+ timeout: 5
content: |
#!/bin/bash
exit $(($RANDOM%2))
@@ -191,30 +192,3 @@
=========
* https://raymii.org/s/tutorials/Keepalived-Simple-IP-failover-on-Ubuntu.html
-
-Documentation and Bugs
-======================
-
-* http://salt-formulas.readthedocs.io/
- Learn how to install and update salt-formulas
-
-* https://github.com/salt-formulas/salt-formula-keepalived/issues
- In the unfortunate event that bugs are discovered, report the issue to the
- appropriate issue tracker. Use the Github issue tracker for a specific salt
- formula
-
-* https://launchpad.net/salt-formulas
- For feature requests, bug reports, or blueprints affecting the entire
- ecosystem, use the Launchpad salt-formulas project
-
-* https://launchpad.net/~salt-formulas-users
- Join the salt-formulas-users team and subscribe to mailing list if required
-
-* https://github.com/salt-formulas/salt-formula-keepalived
- Develop the salt-formulas projects in the master branch and then submit pull
- requests against a specific formula
-
-* #salt-formulas @ irc.freenode.net
- Use this IRC channel in case of any questions or feedback which is always
- welcome
-
diff --git a/debian/control b/debian/control
index 7b64297..b72bdcf 100644
--- a/debian/control
+++ b/debian/control
@@ -1,12 +1,12 @@
Source: salt-formula-keepalived
-Maintainer: Jakub Pavlik <jakub.pavlik@tcpcloud.eu>
+Maintainer: Mirantis Dev <dev@mirantis.com>
Section: admin
Priority: optional
Build-Depends: salt-master, python, python-yaml, debhelper (>= 9)
Standards-Version: 3.9.6
-Homepage: http://www.tcpcloud.eu
-Vcs-Browser: https://github.com/tcpcloud/salt-formula-keepalived
-Vcs-Git: https://github.com/tcpcloud/salt-formula-keepalived.git
+Homepage: https://www.mirantis.com
+Vcs-Browser: https://gerrit.mcp.mirantis.com/#/admin/projects/salt-formulas/keepalived
+Vcs-Git: https://gerrit.mcp.mirantis.com/salt-formulas/keepalived.git
Package: salt-formula-keepalived
Architecture: all
diff --git a/debian/copyright b/debian/copyright
index 6d4b795..13733c8 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,12 +1,12 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: salt-formula-keepalived
-Upstream-Contact: Jakub Pavlik <jakub.pavlik@tcpcloud.eu>
-Source: https://github.com/tcpcloud/salt-formula-keepalived
+Upstream-Contact: Mirantis Dev <dev@mirantis.com>
+Source: https://gerrit.mcp.mirantis.com/#/admin/projects/salt-formulas/keepalived
Files: *
-Copyright: 2014-2015 tcp cloud
+Copyright: 2014-2019 Mirantis Inc. et al
License: Apache-2.0
- Copyright (C) 2014-2015 tcp cloud
+ Copyright (C) 2014-2019 Mirantis Inc. et al
.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/keepalived/files/grafana_dashboards/keepalived_prometheus.json b/keepalived/files/grafana_dashboards/keepalived_prometheus.json
index 06b357d..597f744 100644
--- a/keepalived/files/grafana_dashboards/keepalived_prometheus.json
+++ b/keepalived/files/grafana_dashboards/keepalived_prometheus.json
@@ -17,7 +17,7 @@
"gnetId": null,
"graphTooltip": 0,
"id": null,
- "iteration": 1542818026918,
+ "iteration": 1544795381737,
"links": [],
"panels": [
{
@@ -30,7 +30,6 @@
},
"id": 9,
"panels": [],
- "repeat": null,
"title": "Status",
"type": "row"
},
@@ -54,7 +53,7 @@
},
"gridPos": {
"h": 3,
- "w": 4,
+ "w": 7,
"x": 0,
"y": 1
},
@@ -73,7 +72,7 @@
}
],
"maxDataPoints": 100,
- "minSpan": 4,
+ "minSpan": 7,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
@@ -89,2588 +88,6 @@
],
"repeat": "host",
"repeatDirection": "h",
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "ctl01",
- "value": "ctl01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 1
- },
- "id": 114,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "ctl02",
- "value": "ctl02"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 8,
- "y": 1
- },
- "id": 115,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "ctl03",
- "value": "ctl03"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 12,
- "y": 1
- },
- "id": 116,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "dbs01",
- "value": "dbs01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 16,
- "y": 1
- },
- "id": 117,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "dbs02",
- "value": "dbs02"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 20,
- "y": 1
- },
- "id": 118,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "dbs03",
- "value": "dbs03"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 4
- },
- "id": 119,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "kvm01",
- "value": "kvm01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 4
- },
- "id": 120,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "kvm02",
- "value": "kvm02"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 8,
- "y": 4
- },
- "id": 121,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "kvm03",
- "value": "kvm03"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 12,
- "y": 4
- },
- "id": 122,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "log01",
- "value": "log01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 16,
- "y": 4
- },
- "id": 123,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "log02",
- "value": "log02"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 20,
- "y": 4
- },
- "id": 124,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "log03",
- "value": "log03"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 7
- },
- "id": 125,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mdb01",
- "value": "mdb01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 7
- },
- "id": 126,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mdb02",
- "value": "mdb02"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 8,
- "y": 7
- },
- "id": 127,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mdb03",
- "value": "mdb03"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 12,
- "y": 7
- },
- "id": 128,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mon01",
- "value": "mon01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 16,
- "y": 7
- },
- "id": 129,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mon02",
- "value": "mon02"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 20,
- "y": 7
- },
- "id": 130,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mon03",
- "value": "mon03"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 10
- },
- "id": 131,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "msg01",
- "value": "msg01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 10
- },
- "id": 132,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "msg02",
- "value": "msg02"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 8,
- "y": 10
- },
- "id": 133,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "msg03",
- "value": "msg03"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 12,
- "y": 10
- },
- "id": 134,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mtr01",
- "value": "mtr01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 16,
- "y": 10
- },
- "id": 135,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mtr02",
- "value": "mtr02"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 20,
- "y": 10
- },
- "id": 136,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mtr03",
- "value": "mtr03"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 13
- },
- "id": 137,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "prx01",
- "value": "prx01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "procstat_running{process_name=\"keepalived\",host=~\"$host\"} and on(host) keepalived_up{host=~\"$host\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0,1",
- "title": "Keepalived@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "N/A",
- "value": "null"
- },
- {
- "op": "=",
- "text": "UP",
- "value": "1"
- },
- {
- "op": "=",
- "text": "DOWN",
- "value": "0"
- }
- ],
- "valueName": "avg"
- },
- {
- "cacheTimeout": null,
- "colorBackground": true,
- "colorValue": false,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "#299c46"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 13
- },
- "id": 138,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 4,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "prx02",
- "value": "prx02"
- }
- },
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
@@ -2716,7 +133,7 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 16
+ "y": 4
},
"id": 59,
"panels": [],
@@ -2735,7 +152,7 @@
"h": 6,
"w": 12,
"x": 0,
- "y": 17
+ "y": 5
},
"id": 113,
"legend": {
@@ -2825,7 +242,7 @@
"h": 6,
"w": 12,
"x": 12,
- "y": 17
+ "y": 5
},
"id": 1,
"legend": {
@@ -2909,3013 +326,123 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 23
+ "y": 11
},
"id": 7,
"panels": [],
- "title": "VRRP ${vrrp} state",
+ "title": "VRRP status",
"type": "row"
},
{
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
+ "columns": [],
"datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
+ "fontSize": "100%",
"gridPos": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 24
- },
- "id": 3,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": "host",
- "repeatDirection": "h",
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "ctl01",
- "value": "ctl01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 24
- },
- "id": 139,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "ctl02",
- "value": "ctl02"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 8,
- "y": 24
- },
- "id": 140,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "ctl03",
- "value": "ctl03"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 12,
- "y": 24
- },
- "id": 141,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "dbs01",
- "value": "dbs01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 16,
- "y": 24
- },
- "id": 142,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "dbs02",
- "value": "dbs02"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 20,
- "y": 24
- },
- "id": 143,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "dbs03",
- "value": "dbs03"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 27
- },
- "id": 144,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "kvm01",
- "value": "kvm01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 27
- },
- "id": 145,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "kvm02",
- "value": "kvm02"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 8,
- "y": 27
- },
- "id": 146,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "kvm03",
- "value": "kvm03"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 12,
- "y": 27
- },
- "id": 147,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "log01",
- "value": "log01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 16,
- "y": 27
- },
- "id": 148,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "log02",
- "value": "log02"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 20,
- "y": 27
- },
- "id": 149,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "log03",
- "value": "log03"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 30
- },
- "id": 150,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mdb01",
- "value": "mdb01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 30
- },
- "id": 151,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mdb02",
- "value": "mdb02"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 8,
- "y": 30
- },
- "id": 152,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mdb03",
- "value": "mdb03"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 12,
- "y": 30
- },
- "id": 153,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mon01",
- "value": "mon01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 16,
- "y": 30
- },
- "id": 154,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mon02",
- "value": "mon02"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 20,
- "y": 30
- },
- "id": 155,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mon03",
- "value": "mon03"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 33
- },
- "id": 156,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "msg01",
- "value": "msg01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 33
- },
- "id": 157,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "msg02",
- "value": "msg02"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 8,
- "y": 33
- },
- "id": 158,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "msg03",
- "value": "msg03"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 12,
- "y": 33
- },
- "id": 159,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mtr01",
- "value": "mtr01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 16,
- "y": 33
- },
- "id": 160,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mtr02",
- "value": "mtr02"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 20,
- "y": 33
- },
- "id": 161,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "mtr03",
- "value": "mtr03"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 36
- },
- "id": 162,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "prx01",
- "value": "prx01"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "cacheTimeout": null,
- "colorBackground": false,
- "colorValue": true,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "#299c46",
- "rgba(237, 129, 40, 0.89)"
- ],
- "datasource": null,
- "format": "none",
- "gauge": {
- "maxValue": 100,
- "minValue": 0,
- "show": false,
- "thresholdLabels": false,
- "thresholdMarkers": true
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 4,
- "y": 36
- },
- "id": 163,
- "interval": null,
- "links": [],
- "mappingType": 1,
- "mappingTypes": [
- {
- "name": "value to text",
- "value": 1
- },
- {
- "name": "range to text",
- "value": 2
- }
- ],
- "maxDataPoints": 100,
- "minSpan": 4,
- "nullPointMode": "connected",
- "nullText": null,
- "postfix": "",
- "postfixFontSize": "50%",
- "prefix": "",
- "prefixFontSize": "50%",
- "rangeMaps": [
- {
- "from": "null",
- "text": "N/A",
- "to": "null"
- }
- ],
- "repeat": null,
- "repeatDirection": "h",
- "repeatIteration": 1542818026918,
- "repeatPanelId": 3,
- "scopedVars": {
- "host": {
- "selected": false,
- "text": "prx02",
- "value": "prx02"
- }
- },
- "sparkline": {
- "fillColor": "rgba(31, 118, 189, 0.18)",
- "full": false,
- "lineColor": "rgb(31, 120, 193)",
- "show": false
- },
- "tableColumn": "",
- "targets": [
- {
- "expr": "keepalived_state{host=\"$host\",name=~\"$vrrp\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "refId": "A",
- "step": 4
- }
- ],
- "thresholds": "0.5,1.5",
- "timeFrom": null,
- "timeShift": null,
- "title": "VRRP@${host}",
- "type": "singlestat",
- "valueFontSize": "80%",
- "valueMaps": [
- {
- "op": "=",
- "text": "FAILED",
- "value": "0"
- },
- {
- "op": "=",
- "text": "BACKUP",
- "value": "2"
- },
- {
- "op": "=",
- "text": "MASTER",
- "value": "1"
- },
- {
- "op": "=",
- "text": "UNKNOWN",
- "value": "-1"
- },
- {
- "op": "=",
- "text": "NONE",
- "value": "null"
- }
- ],
- "valueName": "current"
- },
- {
- "collapsed": false,
- "gridPos": {
- "h": 1,
+ "h": 10,
"w": 24,
"x": 0,
- "y": 39
+ "y": 12
},
- "id": 85,
- "panels": [],
- "title": "VRRP known states",
- "type": "row"
+ "id": 121,
+ "links": [],
+ "pageSize": null,
+ "repeat": null,
+ "repeatDirection": "h",
+ "scroll": true,
+ "showHeader": true,
+ "sort": {
+ "col": 6,
+ "desc": false
+ },
+ "styles": [
+ {
+ "alias": "VRRP",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "name",
+ "thresholds": [],
+ "type": "string",
+ "unit": "short"
+ },
+ {
+ "alias": "",
+ "colorMode": "row",
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(50, 172, 45, 0.97)",
+ "rgba(237, 129, 40, 0.89)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "Value",
+ "thresholds": [
+ "0.5",
+ "1.5"
+ ],
+ "type": "string",
+ "unit": "short",
+ "valueMaps": [
+ {
+ "text": "BACKUP",
+ "value": "2"
+ },
+ {
+ "text": "MASTER",
+ "value": "1"
+ },
+ {
+ "text": "FAILED",
+ "value": "0"
+ },
+ {
+ "text": "UNKNOWN",
+ "value": "-1"
+ },
+ {
+ "text": "UNKNOWN",
+ "value": "null"
+ }
+ ]
+ },
+ {
+ "alias": "",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "decimals": 2,
+ "pattern": "/(Time|__name__|instance|job|region|environment)/",
+ "thresholds": [],
+ "type": "hidden",
+ "unit": "short"
+ }
+ ],
+ "targets": [
+ {
+ "expr": "keepalived_state{host=~\"$host\",name=~\"$VRRP\"}",
+ "format": "table",
+ "instant": true,
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "",
+ "refId": "A"
+ }
+ ],
+ "timeFrom": "1s",
+ "timeShift": null,
+ "title": "VRRP state by name",
+ "transform": "table",
+ "type": "table"
},
{
"aliasColors": {},
@@ -5930,7 +457,7 @@
"h": 7,
"w": 24,
"x": 0,
- "y": 40
+ "y": 22
},
"id": 2,
"legend": {
@@ -5960,11 +487,11 @@
"steppedLine": false,
"targets": [
{
- "expr": "keepalived_state{host=~\"$host\",name=~\"$vrrp\"}",
+ "expr": "keepalived_state{host=~\"$host\"}",
"format": "time_series",
"instant": false,
"intervalFactor": 2,
- "legendFormat": "{{ host }}",
+ "legendFormat": "{{name}}@{{ host }}",
"refId": "A",
"step": 2
}
@@ -5972,7 +499,7 @@
"thresholds": [],
"timeFrom": null,
"timeShift": null,
- "title": "Keepalived VRRP state",
+ "title": "VRRP state",
"tooltip": {
"shared": true,
"sort": 0,
@@ -6019,12 +546,7 @@
"list": [
{
"allValue": null,
- "current": {
- "text": "All",
- "value": [
- "$__all"
- ]
- },
+ "current": {},
"datasource": null,
"hide": 0,
"includeAll": true,
@@ -6044,17 +566,13 @@
},
{
"allValue": null,
- "current": {
- "tags": [],
- "text": "All",
- "value": "$__all"
- },
+ "current": {},
"datasource": null,
"hide": 0,
"includeAll": true,
"label": null,
- "multi": false,
- "name": "vrrp",
+ "multi": true,
+ "name": "VRRP",
"options": [],
"query": "label_values(keepalived_state{host=~\"$host\"},name)",
"refresh": 1,
@@ -6099,6 +617,7 @@
},
"timezone": "",
"title": "Keepalived",
- "version": 3
+ "uid": null,
+ "version": 4
}
{% endraw %}
diff --git a/keepalived/files/keepalived.conf b/keepalived/files/keepalived.conf
index e70334b..190f22a 100644
--- a/keepalived/files/keepalived.conf
+++ b/keepalived/files/keepalived.conf
@@ -11,6 +11,7 @@
interval {{ script.get('interval', 2) }} # check every Ns
fall {{ script.get('fall', 2) }} # require N failures for KO
rise {{ script.get('rise', 2) }} # require N successes for OK
+ {% if script.timeout is defined %}timeout {{ script.timeout }} # default timeout for script {% endif %}
{% if script.weight is defined %}weight {{ script.weight }}{% endif %}
}
{%- endfor %}
diff --git a/metadata.yml b/metadata.yml
index ad4d322..8459d8f 100644
--- a/metadata.yml
+++ b/metadata.yml
@@ -1,3 +1,3 @@
name: "keepalived"
version: "0.2"
-source: "https://github.com/salt-formulas/salt-formula-keepalived"
+source: "https://gerrit.mcp.mirantis.com/salt-formulas/keepalived"
diff --git a/tests/pillar/keepalived_cluster.sls b/tests/pillar/keepalived_cluster.sls
index 2035d90..e4ae67e 100644
--- a/tests/pillar/keepalived_cluster.sls
+++ b/tests/pillar/keepalived_cluster.sls
@@ -78,6 +78,7 @@
- haproxy
check_random_exit:
interval: 10
+ timeout: 5
content: |
#!/bin/bash
exit $(($RANDOM%2))