开发者社区 > 云原生 > 正文

[seata metrics]可以提供grafana仪表板导入json吗?

[seata metrics]可以提供grafana仪表板导入json吗?

{ "__requires": [{ "id": "grafana", "name": "Grafana", "type": "grafana", "version": "7.4.0-pre" }, { "id": "grafana-piechart-panel", "name": "Pie Chart", "type": "panel", "version": "1.6.1" }, { "id": "graph", "name": "Graph", "type": "panel", "version": "" }, { "id": "prometheus", "name": "Prometheus", "type": "datasource", "version": "1.0.0" } ], "annotations": { "list": [{ "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations \u0026 Alerts", "type": "dashboard" }] }, "editable": true, "gnetId": null, "graphTooltip": 0, "id": 3340356, "iteration": 1652686673558, "links": [], "panels": [{ "aliasColors": {}, "breakPoint": "50%", "cacheTimeout": null, "combine": { "label": "Others", "threshold": 0 }, "datasource": "xxxx-dev_1336501338520301", "decimals": null, "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fontSize": "80%", "format": "locale", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, "id": 2, "interval": null, "legend": { "header": "事务状态", "percentage": false, "show": true, "sideWidth": 200, "sort": null, "sortDesc": null, "values": true }, "legendType": "Right side", "links": [], "nullPointMode": "connected", "pieType": "pie", "pluginVersion": "7.4.0-pre", "strokeWidth": "1", "targets": [{ "expr": "sum(seata_transaction{instance="$instance",group=~"$group",meter="counter",pod="$pod"}) by (status)", "interval": "", "legendFormat": "{{status}}", "queryType": "randomWalk", "refId": "A" }], "timeFrom": null, "timeShift": null, "title": "事务总量统计", "type": "grafana-piechart-panel", "valueName": "current" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "xxxx-dev_1336501338520301", "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, "hiddenSeries": false, "id": 4, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [{ "expr": "avg(seata_transaction{instance="$instance",group=~"$group",meter="timer",statistic="average",pod="$pod"}) by (status)", "interval": "", "legendFormat": "{{status}}", "queryType": "randomWalk", "refId": "A" }], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "事务耗时(含业务时间)", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [{ "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "xxxx-dev_1336501338520301", "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, "hiddenSeries": false, "id": 6, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [{ "expr": "sum(seata_transaction{instance="$instance",group=~"$group",meter="summary",statistic="count",status=~"committed|rollbacked",pod="$pod"}) by (status)", "interval": "", "legendFormat": "{{status}}", "queryType": "randomWalk", "refId": "A" }], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "正常事务统计", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [{ "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "xxxx-dev_1336501338520301", "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, "hiddenSeries": false, "id": 8, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [{ "expr": "sum(seata_transaction{instance="$instance",group=~"$group",meter="summary",statistic="count",status=~"unretry|timeout",pod="$pod"}) by (status)", "interval": "", "legendFormat": "{{status}}", "queryType": "randomWalk", "refId": "A" }], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "异常事务统计", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [{ "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "xxxx-dev_1336501338520301", "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, "hiddenSeries": false, "id": 10, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [{ "expr": "sum(seata_transaction{instance="$instance",group=~"$group",meter="summary",statistic="tps",pod="$pod"}) by (status)", "interval": "", "legendFormat": "{{status}}", "queryType": "randomWalk", "refId": "A" }], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "事务TPS(按状态)", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [{ "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "xxxx-dev_1336501338520301", "fieldConfig": { "defaults": { "custom": {} }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 }, "hiddenSeries": false, "id": 12, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "7.4.0-pre", "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [{ "expr": "sum(rate(seata_transaction{instance="$instance",group=~"$group",meter="counter",pod="$pod",status=~"committed|rollbacked"}[1m])) by (instance)", "interval": "", "legendFormat": "{{instance}}{{pod}}", "queryType": "randomWalk", "refId": "A" }], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "事务TPS(按容器)", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [{ "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } } ], "schemaVersion": 26, "showAgsLink": "cn", "style": "dark", "tags": [], "templating": { "list": [{ "allValue": null, "current": {}, "datasource": "xxxx-dev_1336501338520301", "definition": "label_values(seata_transaction,instance)", "error": null, "hide": 0, "includeAll": false, "label": "instance", "multi": false, "name": "instance", "options": [], "query": "label_values(seata_transaction,instance)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": {}, "datasource": "xxxx-dev_1336501338520301", "definition": "label_values(seata_transaction,group)", "error": null, "hide": 0, "includeAll": true, "label": "group", "multi": true, "name": "group", "options": [], "query": "label_values(seata_transaction,group)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": {}, "datasource": "xxxx-dev_1336501338520301", "definition": "label_values(seata_transaction {instance="$instance"}, pod)", "error": null, "hide": 0, "includeAll": true, "label": "pod", "multi": true, "name": "pod", "options": [], "query": "label_values(seata_transaction {instance="$instance"}, pod)", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "seata-business", "uid": "1531421479699812-13742032-475", "version": 7 }

原提问者GitHub用户caozhiyuan

展开
收起
学习娃 2023-06-14 16:59:19 91 0
2 条回答
写回答
取消 提交回答
  • json格式不对

    2023-11-07 19:03:46
    赞同 展开评论 打赏
  • Seata enterprise grafna json不适用于开源版本

    原回答者GitHub用户slievrly

    2023-06-14 17:29:05
    赞同 展开评论 打赏

阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。

相关产品

  • 可观测可视化 Grafana 版
  • 相关电子书

    更多
    《Seata 1.3 新特性以及如何参与社区》 立即下载
    低代码开发师(初级)实战教程 立即下载
    阿里巴巴DevOps 最佳实践手册 立即下载

    相关镜像