{ "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" } ] }, "description": "Platform engineering entry dashboard", "editable": true, "graphTooltip": 0, "id": null, "links": [ { "asDropdown": true, "icon": "dashboard", "includeVars": false, "keepTime": false, "tags": [ "PGSQL" ], "targetBlank": false, "title": "PGSQL", "tooltip": "", "type": "dashboards", "url": "" }, { "asDropdown": true, "icon": "dashboard", "includeVars": false, "keepTime": false, "tags": [ "NODE" ], "targetBlank": false, "title": "NODE", "tooltip": "", "type": "dashboards", "url": "" }, { "asDropdown": true, "icon": "dashboard", "includeVars": false, "keepTime": true, "tags": [ "Pigsty", "INFRA" ], "targetBlank": false, "title": "INFRA", "tooltip": "", "type": "dashboards", "url": "" }, { "asDropdown": true, "icon": "dashboard", "includeVars": false, "keepTime": false, "tags": [ "Pigsty", "HOME" ], "targetBlank": false, "title": "Module", "tooltip": "", "type": "dashboards", "url": "" } ], "panels": [ { "id": 1, "type": "text", "title": "\u603b\u89c8\u5bfc\u822a", "gridPos": { "h": 5, "w": 24, "x": 0, "y": 0 }, "transparent": true, "options": { "content": "\n
\n
\n
\n
Platform Engineering Home
\n
\u5e73\u53f0\u5de5\u7a0b\u603b\u89c8\u5165\u53e3
\n
\u6309 IaaS\u3001PaaS\u3001SaaS \u9010\u5c42\u4e0b\u94bb\uff0c\u9996\u9875\u53ea\u4fdd\u7559\u5165\u53e3\u4e0e\u5168\u5c40\u8109\u640f\u3002
\n
\n
IaaS \u2192 PaaS \u2192 SaaS
\n
\n
\n
\n
\n
IaaS\u8d44\u6e90
\n
\u8ba1\u7b97 / \u5b58\u50a8 / \u7f51\u7edc
\n
\n
\n
\n
\n
PaaS\u670d\u52a1
\n
\u63a7\u5236\u9762 / \u96c6\u7fa4 / DB / \u7f13\u5b58
\n
\n
\n
\n
\n
\u4e1a\u52a1\u76d1\u63a7
\n
\u4ee3\u7406 / \u8bf7\u6c42
\n
\n
\n
\n
\n", "mode": "html" } }, { "id": 2, "type": "row", "title": "\u5e73\u53f0\u8109\u640f", "collapsed": false, "panels": [], "gridPos": { "h": 1, "w": 24, "x": 0, "y": 5 } }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "#3e668f", "value": 0 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Home" }, "properties": [ { "id": "color", "value": { "fixedColor": "#3e668f", "mode": "fixed" } }, { "id": "links", "value": [ { "targetBlank": true, "title": "Pigsty Homepage", "url": "../../" } ] } ] }, { "matcher": { "id": "byName", "options": "Nginx" }, "properties": [ { "id": "color", "value": { "fixedColor": "#346f36cc", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "Nginx Overview", "url": "/d/nginx-instance?${__url_time_range}" } ] } ] }, { "matcher": { "id": "byName", "options": "Metrics" }, "properties": [ { "id": "links", "value": [ { "targetBlank": true, "title": "Victoria Metrics UI", "url": "/vmetrics/vmui/" } ] }, { "id": "color", "value": { "fixedColor": "#e02f44bf", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "Alerting" }, "properties": [ { "id": "links", "value": [ { "targetBlank": true, "title": "Pigsty alerting service: Alertmanager", "url": "/alertmgr/" } ] }, { "id": "color", "value": { "fixedColor": "#e02f44d9", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "Logs" }, "properties": [ { "id": "links", "value": [ { "targetBlank": true, "title": "Victoria Logs UI", "url": "/vlogs/select/vmui/" } ] }, { "id": "color", "value": { "fixedColor": "#d9a637d9", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "Grafana" }, "properties": [ { "id": "color", "value": { "fixedColor": "#db6e37ed", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "Grafana Overview", "url": "/d/grafana-instance?${__url_time_range}" } ] } ] }, { "matcher": { "id": "byName", "options": "Docs" }, "properties": [ { "id": "color", "value": { "fixedColor": "#587591", "mode": "fixed" } }, { "id": "links", "value": [ { "targetBlank": true, "title": "Pigsty Docs", "url": "https://pigsty.io/docs" } ] } ] } ] }, "gridPos": { "x": 0, "y": 6, "w": 4, "h": 6 }, "id": 3, "links": [ { "title": "Pigsty Docs", "url": "https://pigsty.io/docs" } ], "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "last" ], "fields": "", "values": false }, "showPercentChange": false, "text": { "titleSize": 10, "valueSize": 12 }, "textMode": "name", "wideLayout": true }, "pluginVersion": "12.3.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "1", "format": "time_series", "hide": false, "instant": false, "interval": "", "legendFormat": "Home", "queryType": "measurements", "refId": "G" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "1", "format": "time_series", "hide": false, "instant": false, "interval": "", "legendFormat": "Docs", "queryType": "measurements", "refId": "F" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(up{cls=\"nginx\"})", "format": "time_series", "hide": false, "instant": false, "interval": "", "legendFormat": "Nginx", "queryType": "measurements", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(up{cls=\"vlogs\"})", "format": "time_series", "hide": false, "instant": false, "interval": "", "legendFormat": "Logs", "queryType": "measurements", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(up{cls=\"vmetrics\"})", "format": "time_series", "hide": false, "instant": false, "interval": "", "legendFormat": "Metrics", "queryType": "measurements", "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(up{cls=\"grafana\"})", "format": "time_series", "hide": true, "instant": false, "interval": "", "legendFormat": "Grafana", "queryType": "measurements", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum(up{cls=\"alertmanager\"})", "format": "time_series", "hide": false, "instant": false, "interval": "", "legendFormat": "Alerting", "queryType": "measurements", "refId": "E" } ], "title": "Pigsty ${version}", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "links": [], "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "#3e668f", "value": 0 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "NODE" }, "properties": [ { "id": "links", "value": [ { "title": "Node Overview", "url": "/d/node-overview?${__url_time_range}" } ] }, { "id": "color", "value": { "fixedColor": "#e6b03ee6", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "PGSQL" }, "properties": [ { "id": "color", "value": { "fixedColor": "#3e668f", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "PGSQL Overview", "url": "/d/pgsql-overview?${__url_time_range}" } ] } ] }, { "matcher": { "id": "byName", "options": "INFRA" }, "properties": [ { "id": "links", "value": [ { "title": "Infra Overview", "url": "/d/infra-overview?${__url_time_range}" } ] }, { "id": "color", "value": { "fixedColor": "#346f36cc", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "REDIS" }, "properties": [ { "id": "links", "value": [ { "title": "Redis Overview", "url": "/d/redis-overview?${__url_time_range}" } ] }, { "id": "color", "value": { "fixedColor": "#cc4637d9", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "ETCD" }, "properties": [ { "id": "color", "value": { "fixedColor": "#5b9cd5", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "ETCD Overview", "url": "/d/etcd-overview?${__url_time_range}" } ] } ] }, { "matcher": { "id": "byName", "options": "MINIO" }, "properties": [ { "id": "color", "value": { "fixedColor": "#d0475799", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "Minio Overview", "url": "/d/minio-overview?${__url_time_range}" } ] } ] }, { "matcher": { "id": "byName", "options": "MONGO" }, "properties": [ { "id": "color", "value": { "fixedColor": "#806c52", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "MongoDB Overview", "url": "/d/mongo-overview?${__url_time_range}" } ] } ] }, { "matcher": { "id": "byName", "options": "MYSQL" }, "properties": [ { "id": "color", "value": { "fixedColor": "#6a8d9d", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "MySQL Overview", "url": "/d/mysql-overview?${__url_time_range}" } ] } ] }, { "matcher": { "id": "byName", "options": "PGRDS" }, "properties": [ { "id": "links", "value": [ { "title": "PGRDS Clusters", "url": "/d/pgrds-cluster?${__url_time_range}" } ] }, { "id": "color", "value": { "fixedColor": "#6986a3", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "KAFKA" }, "properties": [ { "id": "color", "value": { "fixedColor": "#4bb39ce0", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "Kafka Cluster ${__field.labels.cls}", "url": "/d/kafka-overview?var-cls=${__field.labels.cls}&${__url_time_range}" } ] } ] } ] }, "gridPos": { "x": 4, "y": 6, "w": 4, "h": 6 }, "id": 4, "links": [ { "targetBlank": true, "title": "Module: PGSQL", "url": "https://pigsty.io/docs/pgsql" }, { "targetBlank": true, "title": "Module: INFRA", "url": "https://pigsty.io/docs/infra" }, { "targetBlank": true, "title": "Module: NODE", "url": "https://pigsty.io/docs/node" }, { "targetBlank": true, "title": "Module: ETCD", "url": "https://pigsty.io/docs/etcd" }, { "targetBlank": true, "title": "Module: MinIO", "url": "https://pigsty.io/docs/minio" }, { "targetBlank": true, "title": "Module: REDIS", "url": "https://pigsty.io/docs/redis" }, { "targetBlank": true, "title": "Module: FERRET", "url": "https://pigsty.io/docs/ferret" } ], "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "text": { "valueSize": 16 }, "textMode": "name", "wideLayout": true }, "pluginVersion": "12.3.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"pgsql\"})", "hide": false, "interval": "", "legendFormat": "PGSQL", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"pgrds\"})", "hide": true, "interval": "", "legendFormat": "PGRDS", "range": true, "refId": "R" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"mysql\"})", "hide": false, "interval": "", "legendFormat": "MYSQL", "range": true, "refId": "M" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"redis\"})", "hide": false, "interval": "", "legendFormat": "REDIS", "range": true, "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"node\"})", "hide": false, "interval": "", "legendFormat": "NODE", "range": true, "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"minio\"})", "hide": false, "interval": "", "legendFormat": "MINIO", "range": true, "refId": "E" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"etcd\"})", "hide": false, "interval": "", "legendFormat": "ETCD", "range": true, "refId": "D" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"mongo\"})", "hide": false, "interval": "", "legendFormat": "MONGO", "range": true, "refId": "F" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"kafka\"})", "hide": false, "interval": "", "legendFormat": "KAFKA", "range": true, "refId": "G" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "count(up{job=\"infra\"})", "hide": false, "interval": "", "legendFormat": "INFRA", "range": true, "refId": "X" } ], "title": "Modules", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "Click instance to view the detailed dashboard. \n\nBlue: PostgreSQL\n\nRed: Redis\n\nAmber: Node\n\nAzure: etcd\n\nPink: MinIO\n\nGreen: Infra", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "links": [], "mappings": [ { "options": { "match": "null+nan", "result": { "index": 0, "text": "No Instances" } }, "type": "special" } ], "max": 1.1, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#3e668f", "value": 0 }, { "color": "#aaaaaa", "value": 1 } ] } }, "overrides": [ { "matcher": { "id": "byFrameRefID", "options": "A" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#1f3347", "value": 0 }, { "color": "#3e668f", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "PGSQL Instance ${__field.labels.ins}", "url": "/d/pgsql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "B" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#65231b", "value": 0 }, { "color": "#cc4637d9", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "Redis Instance ${__field.labels.ins} @ ${__field.labels.instance}", "url": "/d/redis-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "C" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#3e3012", "value": 0 }, { "color": "#e6b03ee6", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "Node Instance : ${__field.labels.ip}", "url": "/d/node-instance?var-id=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "D" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#324e64", "value": 0 }, { "color": "#5b9cd5", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "ETCD Overview", "url": "/d/etcd-overview?${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "E" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#561c24", "value": 0 }, { "color": "#d0475799", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "Minio Instance: ${__field.labels.ins}", "url": "/d/minio-overview?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "F" }, "properties": [ { "id": "color" }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#342c22", "value": 0 }, { "color": "#806c52", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "MongoDB Instance : ${__field.labels.ins}", "url": "/d/mongo-overview?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "M" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#252f34", "value": 0 }, { "color": "#6a8d9d", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "MySQL Instance : ${__field.labels.ins}", "url": "/d/mysql-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "R" }, "properties": [ { "id": "links", "value": [ { "title": "PGRDS Instance: ${__field.labels.ins}", "url": "/d/pgrds-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#1c232a", "value": 0 }, { "color": "#6986a3", "value": 1 } ] } } ] }, { "matcher": { "id": "byFrameRefID", "options": "K" }, "properties": [ { "id": "color", "value": { "fixedColor": "#4bb39ce0", "mode": "fixed" } }, { "id": "links", "value": [ { "title": "Kafka Instance ${__field.labels.ins}", "url": "/d/kafka-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "NGINX" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#152c16", "value": 0 }, { "color": "#346f36cc", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "Nginx Instance : ${__field.labels.ins}", "url": "/d/nginx-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "GRAFANA" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#3d2a1d", "value": 0 }, { "color": "#f79f64", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "Grafana Instance : ${__field.labels.ins}", "url": "/d/grafana-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "VMETRICS" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#2a1414", "value": 0 }, { "color": "#a64d4d", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "VMetrics Instance : ${__field.labels.ins}", "url": "/d/vmetrics-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "VLOGS" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#2e1d14", "value": 0 }, { "color": "#ba7552", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "VLogs Instance : ${__field.labels.ins}", "url": "/d/vlogs-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "VTRACES" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#31221a", "value": 0 }, { "color": "#c4895c", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "VTraces Instance : ${__field.labels.ins}", "url": "/d/vtraces-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "VMALERT" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#2c161b", "value": 0 }, { "color": "#b3596d", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "VMAlert Instance : ${__field.labels.ins}", "url": "/d/vmalert-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] }, { "matcher": { "id": "byFrameRefID", "options": "ALERTMGR" }, "properties": [ { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "#361c1c", "value": 0 }, { "color": "#db7070", "value": 1 } ] } }, { "id": "links", "value": [ { "title": "AlertManager Instance : ${__field.labels.ins}", "url": "/d/alertmanager-instance?var-ins=${__field.labels.ins}&${__url_time_range}" } ] } ] } ] }, "gridPos": { "x": 8, "y": 6, "w": 8, "h": 6 }, "id": 5, "options": { "colorMode": "background", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "text": {}, "textMode": "name", "wideLayout": true }, "pluginVersion": "12.3.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins) (up{job=\"pgsql\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins) (pg_up{job=\"pgrds\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "R" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins) (up{job=\"mysql\"}) * min by (ins) (mysql_up{job=\"mysql\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "M" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins) (redis_up{job=\"redis\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins,instance) (up{job=\"mongo\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "F" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins) (up{job=\"node\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "C" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins,instance) (up{job=\"kafka\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "K" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max by (ins) (up{cls=\"nginx\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "NGINX" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max by (ins) (up{cls=\"grafana\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "GRAFANA" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max by (ins) (up{cls=\"vmetrics\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "VMETRICS" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max by (ins) (up{cls=\"vlogs\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "VLOGS" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max by (ins) (up{cls=\"vtraces\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "VTRACES" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max by (ins) (up{cls=\"vmalert\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "VMALERT" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "max by (ins) (up{cls=\"alertmanager\"})", "format": "time_series", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "ALERTMGR" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (instance) (up{job!~\"(node|infra|etcd|pgsql|redis|minio|kafka|pgrds)\"})", "hide": true, "instant": true, "interval": "", "legendFormat": "{{ instance }}", "refId": "Z" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins,instance) (up{job=\"minio\"})", "hide": false, "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "E" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "min by (ins,instance) (up{job=\"etcd\"})", "instant": true, "interval": "", "legendFormat": "{{ ins }}", "refId": "D" } ], "title": "Instances", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "description": "This panel shows all currently firing alerts.\n\nClick on the alert event bar to view or silent it on alertmanager", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "hidden", "axisSoftMin": 0, "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 50, "gradientMode": "none", "hideFrom": { "graph": false, "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "stepBefore", "lineWidth": 0, "pointSize": 1, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "showValues": false, "spanNulls": false, "stacking": { "group": "A", "mode": "normal" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 0, "links": [ { "targetBlank": true, "title": "AlertInfo ${__field.labels.alertname} on Cluster ${__field.labels.cls}", "url": "/alertmgr/#/alerts?filter=%7Bcls%3D%22${__field.labels.cls}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" }, { "targetBlank": true, "title": "Silence ${__field.labels.alertname} on Cluster ${__field.labels.cls}", "url": "/alertmgr/#/silences/new?filter=%7Bcls%3D%22${__field.labels.cls}%22%2C%20alertname%3D%22${__field.labels.alertname}%22%7D" }, { "title": "PGSQL Cluster : Alerts for ${__field.labels.cls}", "url": "/d/pgsql-cluster?var-cls=${__field.labels.cls}&${__url_time_range}" } ], "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 } ] }, "unit": "none" }, "overrides": [ { "matcher": { "id": "byFrameRefID", "options": "A" }, "properties": [ { "id": "custom.fillOpacity", "value": 66 } ] }, { "matcher": { "id": "byType", "options": "time" }, "properties": [ { "id": "custom.axisPlacement", "value": "auto" } ] } ] }, "gridPos": { "x": 16, "y": 6, "w": 8, "h": 6 }, "id": 6, "options": { "legend": { "calcs": [ "last" ], "displayMode": "table", "placement": "right", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.3.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "editorMode": "code", "exemplar": false, "expr": "sum by (job,cls,severity,alertname) (ALERTS{alertstate=\"firing\"})", "interval": "", "legendFormat": "[{{ severity }}] {{alertname}} @ {{ cls }}", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ds-prometheus" }, "exemplar": false, "expr": "0", "hide": true, "interval": "", "legendFormat": "Alert", "refId": "C" } ], "title": "Firing Alerts", "type": "timeseries" }, { "id": 7, "type": "row", "title": "IAAS\u8d44\u6e90", "collapsed": false, "panels": [], "gridPos": { "h": 1, "w": 24, "x": 0, "y": 12 } }, { "id": 8, "type": "text", "title": "\u8ba1\u7b97\u6458\u8981", "gridPos": { "h": 5, "w": 8, "x": 0, "y": 13 }, "transparent": true, "options": { "content": "\n
\n
IAAS / \u8ba1\u7b97
\n
\u8ba1\u7b97
\n
\u4e3b\u673a\u5bb9\u91cf\u3001\u8282\u70b9\u5065\u5eb7\u3001\u5b9e\u4f8b\u544a\u8b66
\n \n
\n \u53f3\u4fa7\u4fdd\u7559\u53ef\u8df3\u8f6c\u76ee\u5f55\n
\n
\n", "mode": "html" } }, { "id": 9, "type": "text", "title": "\u5b58\u50a8\u6458\u8981", "gridPos": { "h": 5, "w": 8, "x": 8, "y": 13 }, "transparent": true, "options": { "content": "\n
\n
IAAS / \u5b58\u50a8
\n
\u5b58\u50a8
\n
\u78c1\u76d8\u3001\u5377\u3001\u5bf9\u8c61\u5b58\u50a8\u3001JuiceFS
\n \n
\n \u53f3\u4fa7\u4fdd\u7559\u53ef\u8df3\u8f6c\u76ee\u5f55\n
\n
\n", "mode": "html" } }, { "id": 10, "type": "text", "title": "\u7f51\u7edc\u6458\u8981", "gridPos": { "h": 5, "w": 8, "x": 16, "y": 13 }, "transparent": true, "options": { "content": "\n
\n
IAAS / \u7f51\u7edc
\n
\u7f51\u7edc
\n
VIP\u3001\u8282\u70b9\u7f51\u7edc\u3001\u5e95\u5c42\u8fde\u901a\u6027
\n \n
\n \u53f3\u4fa7\u4fdd\u7559\u53ef\u8df3\u8f6c\u76ee\u5f55\n
\n
\n", "mode": "html" } }, { "id": 11, "type": "dashlist", "title": "\u8ba1\u7b97\u76ee\u5f55", "pluginVersion": "12.3.0", "gridPos": { "h": 9, "w": 8, "x": 0, "y": 18 }, "options": { "includeVars": true, "keepTime": true, "maxItems": 20, "query": "", "showFolderNames": false, "showHeadings": false, "showRecentlyViewed": false, "showSearch": false, "showStarred": false, "tags": [ "IAAS-COMPUTE" ] } }, { "id": 12, "type": "dashlist", "title": "\u5b58\u50a8\u76ee\u5f55", "pluginVersion": "12.3.0", "gridPos": { "h": 9, "w": 8, "x": 8, "y": 18 }, "options": { "includeVars": true, "keepTime": true, "maxItems": 20, "query": "", "showFolderNames": false, "showHeadings": false, "showRecentlyViewed": false, "showSearch": false, "showStarred": false, "tags": [ "IAAS-STORAGE" ] } }, { "id": 13, "type": "dashlist", "title": "\u7f51\u7edc\u76ee\u5f55", "pluginVersion": "12.3.0", "gridPos": { "h": 8, "w": 8, "x": 16, "y": 18 }, "options": { "includeVars": true, "keepTime": true, "maxItems": 20, "query": "", "showFolderNames": false, "showHeadings": false, "showRecentlyViewed": false, "showSearch": false, "showStarred": false, "tags": [ "IAAS-NETWORK" ] } }, { "id": 14, "type": "row", "title": "PaaS\u670d\u52a1", "collapsed": false, "panels": [], "gridPos": { "h": 1, "w": 24, "x": 0, "y": 27 } }, { "id": 15, "type": "text", "title": "\u5e73\u53f0\u63a7\u5236\u9762\u6458\u8981", "gridPos": { "h": 5, "w": 6, "x": 0, "y": 28 }, "transparent": true, "options": { "content": "\n
\n
PaaS / \u5e73\u53f0\u63a7\u5236\u9762
\n
\u5e73\u53f0\u63a7\u5236\u9762
\n
Grafana\u3001Victoria\u3001Alertmanager\u3001Etcd\u3001CMDB
\n \n
\n \u53f3\u4fa7\u4fdd\u7559\u53ef\u8df3\u8f6c\u76ee\u5f55\n
\n
\n", "mode": "html" } }, { "id": 16, "type": "text", "title": "\u96c6\u7fa4\u6458\u8981", "gridPos": { "h": 5, "w": 6, "x": 6, "y": 28 }, "transparent": true, "options": { "content": "\n
\n
PaaS / \u96c6\u7fa4
\n
\u96c6\u7fa4
\n
K8S \u96c6\u7fa4\u8d44\u6e90\u3001\u547d\u540d\u7a7a\u95f4\u4e0e\u5de5\u4f5c\u8d1f\u8f7d\u5165\u53e3
\n \n
\n \u53f3\u4fa7\u4fdd\u7559\u53ef\u8df3\u8f6c\u76ee\u5f55\n
\n
\n", "mode": "html" } }, { "id": 17, "type": "text", "title": "DB\u6458\u8981", "gridPos": { "h": 5, "w": 6, "x": 12, "y": 28 }, "transparent": true, "options": { "content": "\n
\n
PaaS / DB
\n
DB
\n
PGSQL\u3001PGRDS\u3001PGCAT\u3001Ferret
\n \n
\n \u53f3\u4fa7\u4fdd\u7559\u53ef\u8df3\u8f6c\u76ee\u5f55\n
\n
\n", "mode": "html" } }, { "id": 18, "type": "text", "title": "\u7f13\u5b58\u6458\u8981", "gridPos": { "h": 5, "w": 6, "x": 18, "y": 28 }, "transparent": true, "options": { "content": "\n
\n
PaaS / \u7f13\u5b58
\n
\u7f13\u5b58
\n
Redis \u96c6\u7fa4\u3001\u5b9e\u4f8b\u4e0e\u7f13\u5b58\u670d\u52a1\u8fd0\u884c\u9762
\n \n
\n \u53f3\u4fa7\u4fdd\u7559\u53ef\u8df3\u8f6c\u76ee\u5f55\n
\n
\n", "mode": "html" } }, { "id": 19, "type": "dashlist", "title": "\u5e73\u53f0\u63a7\u5236\u9762\u76ee\u5f55", "pluginVersion": "12.3.0", "gridPos": { "h": 10, "w": 6, "x": 0, "y": 33 }, "options": { "includeVars": true, "keepTime": true, "maxItems": 20, "query": "", "showFolderNames": false, "showHeadings": false, "showRecentlyViewed": false, "showSearch": false, "showStarred": false, "tags": [ "PAAS-CONTROL-PLANE" ] } }, { "id": 20, "type": "dashlist", "title": "\u96c6\u7fa4\u76ee\u5f55", "pluginVersion": "12.3.0", "gridPos": { "h": 8, "w": 6, "x": 6, "y": 33 }, "options": { "includeVars": true, "keepTime": true, "maxItems": 20, "query": "", "showFolderNames": false, "showHeadings": false, "showRecentlyViewed": false, "showSearch": false, "showStarred": false, "tags": [ "PAAS-CLUSTER" ] } }, { "id": 21, "type": "dashlist", "title": "DB\u76ee\u5f55", "pluginVersion": "12.3.0", "gridPos": { "h": 14, "w": 6, "x": 12, "y": 33 }, "options": { "includeVars": true, "keepTime": true, "maxItems": 20, "query": "", "showFolderNames": false, "showHeadings": false, "showRecentlyViewed": false, "showSearch": false, "showStarred": false, "tags": [ "PAAS-DB" ] } }, { "id": 22, "type": "dashlist", "title": "\u7f13\u5b58\u76ee\u5f55", "pluginVersion": "12.3.0", "gridPos": { "h": 9, "w": 6, "x": 18, "y": 33 }, "options": { "includeVars": true, "keepTime": true, "maxItems": 20, "query": "", "showFolderNames": false, "showHeadings": false, "showRecentlyViewed": false, "showSearch": false, "showStarred": false, "tags": [ "PAAS-CACHE" ] } }, { "id": 23, "type": "row", "title": "\u4e1a\u52a1\u76d1\u63a7", "collapsed": false, "panels": [], "gridPos": { "h": 1, "w": 24, "x": 0, "y": 47 } }, { "id": 24, "type": "text", "title": "\u4ee3\u7406\u6458\u8981", "gridPos": { "h": 5, "w": 12, "x": 0, "y": 48 }, "transparent": true, "options": { "content": "\n
\n
\u4e1a\u52a1\u5355\u5143 / \u4ee3\u7406
\n
\u4ee3\u7406
\n
Nginx\u3001HAProxy \u4e0e\u6d41\u91cf\u63a5\u5165\u5c42
\n \n
\n \u53f3\u4fa7\u4fdd\u7559\u53ef\u8df3\u8f6c\u76ee\u5f55\n
\n
\n", "mode": "html" } }, { "id": 25, "type": "text", "title": "\u8bf7\u6c42\u6458\u8981", "gridPos": { "h": 5, "w": 12, "x": 12, "y": 48 }, "transparent": true, "options": { "content": "\n
\n
\u4e1a\u52a1\u5355\u5143 / \u8bf7\u6c42
\n
\u8bf7\u6c42
\n
\u8bf7\u6c42\u65e5\u5fd7\u3001\u4f1a\u8bdd\u3001\u94fe\u8def\u4e0e\u8bf7\u6c42\u7ea7\u89c2\u6d4b
\n \n
\n \u53f3\u4fa7\u4fdd\u7559\u53ef\u8df3\u8f6c\u76ee\u5f55\n
\n
\n", "mode": "html" } }, { "id": 26, "type": "dashlist", "title": "\u4ee3\u7406\u76ee\u5f55", "pluginVersion": "12.3.0", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 53 }, "options": { "includeVars": true, "keepTime": true, "maxItems": 20, "query": "", "showFolderNames": false, "showHeadings": false, "showRecentlyViewed": false, "showSearch": false, "showStarred": false, "tags": [ "BU-PROXY" ] } }, { "id": 27, "type": "dashlist", "title": "\u8bf7\u6c42\u76ee\u5f55", "pluginVersion": "12.3.0", "gridPos": { "h": 9, "w": 12, "x": 12, "y": 53 }, "options": { "includeVars": true, "keepTime": true, "maxItems": 20, "query": "", "showFolderNames": false, "showHeadings": false, "showRecentlyViewed": false, "showSearch": false, "showStarred": false, "tags": [ "BU-REQUEST" ] } } ], "schemaVersion": 39, "tags": [ "HOME", "Platform" ], "templating": { "list": [ { "name": "version", "type": "constant", "query": "v4.0.0", "hide": 2 }, { "name": "origin_prometheus", "label": "\u6570\u636e\u6e90", "type": "query", "datasource": { "uid": "ds-prometheus" }, "query": "label_values(kube_node_info,origin_prometheus)", "refresh": 1 }, { "name": "interval", "label": "\u91c7\u6837\u95f4\u9694", "type": "interval", "query": "3m,5m,10m,30m,1h,6h,12h,1d" } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "Homepage", "uid": "home", "version": 1 }