412 lines
8.7 KiB
JSON
412 lines
8.7 KiB
JSON
{
|
|
"annotations": {
|
|
"list": [
|
|
{
|
|
"builtIn": 1,
|
|
"datasource": {
|
|
"type": "datasource",
|
|
"uid": "grafana"
|
|
},
|
|
"enable": true,
|
|
"hide": true,
|
|
"iconColor": "rgba(0, 211, 255, 1)",
|
|
"name": "Annotations & Alerts",
|
|
"target": {
|
|
"limit": 100,
|
|
"matchAny": false,
|
|
"tags": [],
|
|
"type": "dashboard"
|
|
},
|
|
"type": "dashboard"
|
|
}
|
|
]
|
|
},
|
|
"editable": true,
|
|
"fiscalYearStartMonth": 0,
|
|
"graphTooltip": 0,
|
|
"links": [],
|
|
"liveNow": false,
|
|
"panels": [
|
|
{
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "rS2OIfv4z"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"fixedColor": "rgb(31, 120, 193)",
|
|
"mode": "fixed"
|
|
},
|
|
"mappings": [
|
|
{
|
|
"options": {
|
|
"match": "null",
|
|
"result": {
|
|
"text": "N/A"
|
|
}
|
|
},
|
|
"type": "special"
|
|
}
|
|
],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "#d44a3a",
|
|
"value": null
|
|
},
|
|
{
|
|
"color": "rgba(237, 129, 40, 0.89)",
|
|
"value": 0
|
|
},
|
|
{
|
|
"color": "#299c46",
|
|
"value": 1
|
|
}
|
|
]
|
|
},
|
|
"unit": "none"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 7,
|
|
"w": 4,
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"id": 2,
|
|
"links": [],
|
|
"maxDataPoints": 100,
|
|
"options": {
|
|
"colorMode": "none",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "horizontal",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"lastNotNull"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"pluginVersion": "9.2.4",
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "rS2OIfv4z"
|
|
},
|
|
"expr": "count(minitor_monitor_up_count)",
|
|
"format": "time_series",
|
|
"instant": true,
|
|
"intervalFactor": 2,
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Total Monitors",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "rS2OIfv4z"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"decimals": 0,
|
|
"mappings": [
|
|
{
|
|
"options": {
|
|
"match": "null",
|
|
"result": {
|
|
"text": "N/A"
|
|
}
|
|
},
|
|
"type": "special"
|
|
}
|
|
],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "#299c46",
|
|
"value": null
|
|
},
|
|
{
|
|
"color": "rgba(237, 129, 40, 0.89)",
|
|
"value": 1
|
|
},
|
|
{
|
|
"color": "#d44a3a",
|
|
"value": 2
|
|
}
|
|
]
|
|
},
|
|
"unit": "none"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 7,
|
|
"w": 4,
|
|
"x": 4,
|
|
"y": 0
|
|
},
|
|
"id": 6,
|
|
"links": [],
|
|
"maxDataPoints": 100,
|
|
"options": {
|
|
"colorMode": "background",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "horizontal",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"lastNotNull"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"pluginVersion": "9.2.4",
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "rS2OIfv4z"
|
|
},
|
|
"expr": "count(minitor_monitor_up_count)-count(minitor_monitor_up_count>=1)",
|
|
"format": "time_series",
|
|
"instant": false,
|
|
"intervalFactor": 1,
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Total Down Services",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "rS2OIfv4z"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"custom": {
|
|
"fillOpacity": 70,
|
|
"lineWidth": 0,
|
|
"spanNulls": 900000
|
|
},
|
|
"mappings": [
|
|
{
|
|
"options": {
|
|
"0": {
|
|
"index": 1,
|
|
"text": "Down"
|
|
},
|
|
"1": {
|
|
"index": 0,
|
|
"text": "Up"
|
|
}
|
|
},
|
|
"type": "value"
|
|
}
|
|
],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "red",
|
|
"value": null
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 0
|
|
},
|
|
{
|
|
"color": "green",
|
|
"value": 1
|
|
}
|
|
]
|
|
},
|
|
"unit": "bool_on_off"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 7,
|
|
"w": 14,
|
|
"x": 8,
|
|
"y": 0
|
|
},
|
|
"id": 4,
|
|
"links": [],
|
|
"options": {
|
|
"alignValue": "left",
|
|
"legend": {
|
|
"displayMode": "list",
|
|
"placement": "bottom",
|
|
"showLegend": false
|
|
},
|
|
"mergeValues": true,
|
|
"rowHeight": 0.9,
|
|
"showValue": "never",
|
|
"tooltip": {
|
|
"mode": "single",
|
|
"sort": "none"
|
|
}
|
|
},
|
|
"pluginVersion": "9.2.4",
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "rS2OIfv4z"
|
|
},
|
|
"editorMode": "code",
|
|
"exemplar": false,
|
|
"expr": "sum(minitor_monitor_up_count) by (monitor)",
|
|
"format": "time_series",
|
|
"instant": false,
|
|
"intervalFactor": 1,
|
|
"legendFormat": "{{monitor}}",
|
|
"range": true,
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Service Status",
|
|
"type": "state-timeline"
|
|
},
|
|
{
|
|
"columns": [],
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "rS2OIfv4z"
|
|
},
|
|
"fontSize": "100%",
|
|
"gridPos": {
|
|
"h": 11,
|
|
"w": 22,
|
|
"x": 0,
|
|
"y": 7
|
|
},
|
|
"id": 8,
|
|
"links": [],
|
|
"scroll": true,
|
|
"showHeader": true,
|
|
"sort": {
|
|
"col": 0,
|
|
"desc": true
|
|
},
|
|
"styles": [
|
|
{
|
|
"alias": "Time",
|
|
"align": "auto",
|
|
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
|
"pattern": "Time",
|
|
"type": "date"
|
|
},
|
|
{
|
|
"alias": "Status",
|
|
"align": "auto",
|
|
"colorMode": "cell",
|
|
"colors": [
|
|
"#F2495C",
|
|
"#F2495C",
|
|
"rgba(50, 172, 45, 0.97)"
|
|
],
|
|
"decimals": 0,
|
|
"link": false,
|
|
"mappingType": 1,
|
|
"pattern": "Value",
|
|
"thresholds": [
|
|
"0",
|
|
"1"
|
|
],
|
|
"type": "string",
|
|
"unit": "short",
|
|
"valueMaps": [
|
|
{
|
|
"text": "Ok",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"text": "Not Ok",
|
|
"value": "0"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "rS2OIfv4z"
|
|
},
|
|
"expr": "minitor_monitor_up_count",
|
|
"format": "time_series",
|
|
"instant": true,
|
|
"intervalFactor": 1,
|
|
"legendFormat": "{{monitor}}",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Monitor status",
|
|
"transform": "timeseries_to_rows",
|
|
"type": "table-old"
|
|
}
|
|
],
|
|
"refresh": "30s",
|
|
"schemaVersion": 37,
|
|
"style": "dark",
|
|
"tags": [],
|
|
"templating": {
|
|
"list": []
|
|
},
|
|
"time": {
|
|
"from": "now-6h",
|
|
"to": "now"
|
|
},
|
|
"timepicker": {
|
|
"refresh_intervals": [
|
|
"5s",
|
|
"10s",
|
|
"30s",
|
|
"1m",
|
|
"5m",
|
|
"15m",
|
|
"30m",
|
|
"1h",
|
|
"2h",
|
|
"1d"
|
|
],
|
|
"time_options": [
|
|
"5m",
|
|
"15m",
|
|
"1h",
|
|
"6h",
|
|
"12h",
|
|
"24h",
|
|
"2d",
|
|
"7d",
|
|
"30d"
|
|
]
|
|
},
|
|
"timezone": "",
|
|
"title": "Minitor Monitor",
|
|
"uid": "qoE5Hrxiz",
|
|
"version": 1,
|
|
"weekStart": ""
|
|
}
|