增加HTTP Post上传配置接口,支持主从双机备份与同步(冷备)

This commit is contained in:
linuxrc@163.com
2021-08-25 18:40:20 +08:00
parent 67bafbefc9
commit 1aca701f12
28 changed files with 3295 additions and 648 deletions

BIN
monitor/monitor_expamle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@@ -65,7 +65,7 @@
"scroll": true,
"showHeader": true,
"sort": {
"col": 13,
"col": 2,
"desc": false
},
"styles": [
@@ -218,7 +218,7 @@
"pattern": "Value #D",
"thresholds": [],
"type": "number",
"unit": "short"
"unit": "none"
},
{
"alias": "MAXfds",
@@ -266,7 +266,7 @@
"pattern": "Value #G",
"thresholds": [],
"type": "number",
"unit": "short"
"unit": "none"
},
{
"alias": "Restart24H",
@@ -337,7 +337,7 @@
"unit": "short"
},
{
"alias": "LatestVersion",
"alias": "LatestVer-T1",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
@@ -353,7 +353,7 @@
"unit": "short"
},
{
"alias": "TotalCfgNum",
"alias": "TotalCfgs-T1",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
@@ -361,12 +361,77 @@
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"decimals": null,
"mappingType": 1,
"pattern": "Value #L",
"thresholds": [],
"type": "number",
"unit": "none"
},
{
"alias": "LatestVer-VoIP",
"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": 0,
"mappingType": 1,
"pattern": "Value #M",
"thresholds": [],
"type": "number",
"unit": "none"
},
{
"alias": "PostServer",
"colorMode": "cell",
"colors": [
"rgba(40, 233, 13, 0.9)",
"#cca300",
"#bf1b00"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "Value #N",
"thresholds": [
"1",
"2"
],
"type": "string",
"unit": "short"
"unit": "short",
"valueMaps": [
{
"text": "OK",
"value": "0"
},
{
"text": "uping",
"value": "1"
},
{
"text": "down",
"value": "2"
}
]
},
{
"alias": "TotalCfgs-VoIP",
"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": null,
"mappingType": 1,
"pattern": "Value #O",
"thresholds": [],
"type": "number",
"unit": "none"
},
{
"alias": "",
@@ -449,14 +514,21 @@
"refId": "D"
},
{
"expr": "0+latest_cfg_version{job=~\"doris\"}",
"expr": "0+http_post_server_status{job=~\"doris\"}",
"format": "table",
"instant": true,
"intervalFactor": 1,
"refId": "N"
},
{
"expr": "0+latest_cfg_version_T1_1{job=~\"doris\"}",
"format": "table",
"instant": true,
"intervalFactor": 1,
"refId": "K"
},
{
"expr": "0+total_config_num{job=~\"doris\"}",
"expr": "0+total_config_num_T1_1{job=~\"doris\"}",
"format": "table",
"instant": true,
"intervalFactor": 1,
@@ -468,6 +540,20 @@
"instant": true,
"intervalFactor": 1,
"refId": "I"
},
{
"expr": "0+latest_cfg_version_VoIP{job=~\"doris\"}",
"format": "table",
"instant": true,
"intervalFactor": 1,
"refId": "M"
},
{
"expr": "0+total_config_num_VoIP{job=~\"doris\"}",
"format": "table",
"instant": true,
"intervalFactor": 1,
"refId": "O"
}
],
"title": "Doris运行状态",
@@ -514,5 +600,5 @@
"timezone": "",
"title": "配置分发网络运行状态",
"uid": "HZfW8wi7k",
"version": 7
"version": 14
}