前端数据周报草稿

简介: 前端数据周报草稿

正文

上个月玩了两张前端数据的监控展示图如下

715a3e7f55bc480ea67c79ccd2ecede8~tplv-k3u1fbpfcp-zoom-in-crop-mark_4536_0_0_0.webp.jpg


能直接看到一周会话统计,环比; 一周uv统计环比及趋势; 一周LCP趋势及环比; 一周报错趋势及环比; 一周卡顿汇总及趋势; 配置文件如下

{
  "dashboardBindSet": [],
  "dashboardExtend": {},
  "dashboardMapping": [],
  "dashboardOwnerType": "node",
  "dashboardType": "CUSTOM",
  "iconSet": {},
  "main": {
    "charts": [
      {
        "extend": {
          "fixedTime": {
            "key": "7d",
            "text": "最近7天"
          },
          "settings": {
            "bgColor": "#E8EDCC",
            "colors": [],
            "compareTitle": "环比",
            "compareType": "circleCompare",
            "currentChartType": "singlestat",
            "downsample": "last",
            "fixedTime": "7d",
            "fontColor": "#2D8CF0",
            "isTimeInterval": false,
            "levels": [],
            "lineColor": "#3AB8FF",
            "mappings": [],
            "openCompare": true,
            "precision": "2",
            "showFieldMapping": false,
            "showLine": true,
            "showLineAxis": false,
            "showTitle": true,
            "timeInterval": "default",
            "titleDesc": "",
            "units": []
          }
        },
        "group": {
          "name": null
        },
        "name": "一周会话统计",
        "pos": {
          "h": 12,
          "w": 13,
          "x": 0,
          "y": 0
        },
        "queries": [
          {
            "color": "",
            "datasource": "dataflux",
            "name": "",
            "qtype": "dql",
            "query": {
              "alias": "",
              "code": "A",
              "dataSource": "session",
              "field": "*",
              "fieldFunc": "count",
              "fieldType": "",
              "fill": "",
              "filters": [],
              "funcList": [],
              "groupBy": [
                "userid"
              ],
              "groupByTime": "",
              "namespace": "rum",
              "q": "R::`session`:(COUNT(`*`)) BY `userid`",
              "queryFuncs": [],
              "search": "",
              "type": "simple"
            },
            "type": "singlestat",
            "unit": ""
          }
        ],
        "type": "singlestat"
      },
      {
        "extend": {
          "fixedTime": {
            "key": "7d",
            "text": "最近7天"
          },
          "settings": {
            "bgColor": "#EEEBDE",
            "colors": [],
            "compareTitle": "环比",
            "compareType": "circleCompare",
            "currentChartType": "singlestat",
            "downsample": "last",
            "fixedTime": "7d",
            "fontColor": "#CD8282",
            "isTimeInterval": false,
            "levels": [],
            "lineColor": "#3AB8FF",
            "mappings": [],
            "openCompare": true,
            "precision": "2",
            "showFieldMapping": false,
            "showLine": true,
            "showLineAxis": false,
            "showTitle": true,
            "timeInterval": "default",
            "titleDesc": "",
            "units": []
          }
        },
        "group": {
          "name": null
        },
        "name": "一周UV统计及趋势",
        "pos": {
          "h": 12,
          "w": 11,
          "x": 13,
          "y": 0
        },
        "queries": [
          {
            "color": "",
            "datasource": "dataflux",
            "name": "",
            "qtype": "dql",
            "query": {
              "alias": "UV",
              "code": "A",
              "dataSource": "view",
              "field": "userid",
              "fieldFunc": "count",
              "fieldType": "keyword",
              "fill": null,
              "fillNum": null,
              "filters": [],
              "funcList": [],
              "groupBy": [],
              "groupByTime": "",
              "namespace": "rum",
              "q": "R::`view`:(COUNT(`userid`) AS `UV`)",
              "queryFuncs": [],
              "type": "simple",
              "withLabels": []
            },
            "type": "singlestat",
            "unit": ""
          }
        ],
        "type": "singlestat"
      },
      {
        "extend": {
          "fixedTime": {
            "key": "7d",
            "text": "最近7天"
          },
          "settings": {
            "bgColor": "#FFFFFF",
            "colors": [],
            "compareTitle": "环比",
            "compareType": "circleCompare",
            "currentChartType": "singlestat",
            "downsample": "last",
            "fixedTime": "7d",
            "fontColor": "#F40F57",
            "isTimeInterval": false,
            "levels": [],
            "lineColor": "#E81457",
            "mappings": [],
            "openCompare": true,
            "precision": "2",
            "showFieldMapping": false,
            "showLine": true,
            "showLineAxis": false,
            "showTitle": true,
            "timeInterval": "default",
            "titleDesc": "",
            "units": []
          }
        },
        "group": {
          "name": null
        },
        "name": "一周报错统计及趋势",
        "pos": {
          "h": 10,
          "w": 13,
          "x": 0,
          "y": 23
        },
        "queries": [
          {
            "color": "",
            "datasource": "dataflux",
            "name": "",
            "qtype": "dql",
            "query": {
              "alias": "",
              "code": "A",
              "dataSource": "error",
              "field": "error_handling",
              "fieldFunc": "count",
              "fieldType": "keyword",
              "fill": "",
              "filters": [],
              "funcList": [],
              "groupBy": [],
              "groupByTime": "",
              "namespace": "rum",
              "q": "R::`error`:(COUNT(`error_handling`))",
              "queryFuncs": [],
              "search": "",
              "type": "simple"
            },
            "type": "singlestat",
            "unit": ""
          }
        ],
        "type": "singlestat"
      },
      {
        "extend": {
          "fixedTime": {
            "key": "7d",
            "text": "最近7天"
          },
          "settings": {
            "bgColor": "",
            "colors": [],
            "compareTitle": "环比",
            "compareType": "circleCompare",
            "currentChartType": "singlestat",
            "downsample": "last",
            "fixedTime": "7d",
            "fontColor": "#A6A0A0",
            "isTimeInterval": false,
            "levels": [],
            "lineColor": "#8B8585",
            "mappings": [],
            "openCompare": true,
            "precision": "2",
            "showFieldMapping": false,
            "showLine": true,
            "showLineAxis": false,
            "showTitle": true,
            "timeInterval": "default",
            "titleDesc": "",
            "units": []
          }
        },
        "group": {
          "name": null
        },
        "name": "一周卡顿汇总及趋势",
        "pos": {
          "h": 10,
          "w": 13,
          "x": 0,
          "y": 33
        },
        "queries": [
          {
            "color": "",
            "datasource": "dataflux",
            "name": "",
            "qtype": "dql",
            "query": {
              "alias": "",
              "code": "A",
              "dataSource": "long_task",
              "field": "*",
              "fieldFunc": "count",
              "fieldType": "",
              "fill": "",
              "filters": [],
              "funcList": [],
              "groupBy": [],
              "groupByTime": "",
              "namespace": "rum",
              "q": "R::`long_task`:(COUNT(`*`))",
              "queryFuncs": [],
              "search": "",
              "type": "simple"
            },
            "type": "singlestat",
            "unit": ""
          }
        ],
        "type": "singlestat"
      },
      {
        "extend": {
          "fixedTime": {
            "key": "7d",
            "text": "最近7天"
          },
          "links": [
            {
              "alias": "跳转到 [性能分析]",
              "open": "curWin",
              "type": "custom",
              "url": "/rum/detail/#{V.appid}?time=#{TR}&tabKey=性能分析&variable={\"appid\":\"#{V.appid}\",\"env\":\"#{V.env}\",\"version\":\"#{V.version}\",\"view_loading_type\":\"re(`.*`)\",\"view_path_group\":\"re(`.*`)\",\"browser\":\"re(`.*`)\",\"country\":\"re(`.*`)\"}"
            }
          ],
          "settings": {
            "chartType": "areaLine",
            "colors": [],
            "compareTitle": "环比",
            "compareType": "circleCompare",
            "currentChartType": "sequence",
            "density": "lower",
            "fixedTime": "7d",
            "isPercent": false,
            "isTimeInterval": true,
            "levels": [
              {
                "bgColor": "#F10D31",
                "title": "页面基线",
                "value": 2000000000
              }
            ],
            "openCompare": true,
            "openStack": false,
            "showFieldMapping": true,
            "showLine": false,
            "showTitle": true,
            "stackType": "time",
            "tableSortMetricName": "P75(LCP)",
            "timeInterval": "default",
            "titleDesc": "页面渲染",
            "units": [
              {
                "key": "last(first_contentful_paint)",
                "name": "last(first_contentful_paint)",
                "unit": "",
                "units": [
                  "time",
                  "ns"
                ]
              }
            ],
            "xAxisShowType": "time"
          }
        },
        "group": {
          "name": null
        },
        "name": "一周LCP趋势统计及环比",
        "pos": {
          "h": 11,
          "w": 13,
          "x": 0,
          "y": 12
        },
        "queries": [
          {
            "color": "",
            "datasource": "dataflux",
            "disabled": false,
            "name": "",
            "qtype": "dql",
            "query": {
              "alias": "",
              "code": "A",
              "dataSource": "view",
              "field": "first_contentful_paint",
              "fieldFunc": "last",
              "fieldType": "float",
              "fill": null,
              "fillNum": null,
              "filters": [],
              "funcList": [],
              "groupBy": [
                "app_id"
              ],
              "groupByTime": "",
              "namespace": "rum",
              "q": "R::`view`:(LAST(`first_contentful_paint`)) BY `app_id`",
              "queryFuncs": [],
              "type": "simple",
              "withLabels": []
            },
            "type": "sequence",
            "unit": ""
          }
        ],
        "type": "sequence"
      },
      {
        "extend": {
          "fixedGroupByTime": null,
          "fixedTime": {
            "key": "7d",
            "text": "最近 7 天"
          },
          "isRefresh": false,
          "settings": {
            "alias": [],
            "chartType": "line",
            "colors": [],
            "compareTitle": "",
            "compareType": "",
            "currentChartType": "sequence",
            "density": "medium",
            "fixedTime": "7d",
            "isPercent": false,
            "isTimeInterval": true,
            "legendPostion": "none",
            "legendValues": "",
            "levels": [],
            "openCompare": false,
            "openStack": false,
            "showFieldMapping": false,
            "showLine": false,
            "showTitle": true,
            "stackType": "time",
            "timeInterval": "default",
            "titleDesc": "",
            "units": [],
            "xAxisShowType": "time"
          }
        },
        "group": {
          "name": null
        },
        "name": "应用点击趋势图",
        "pos": {
          "h": 10,
          "w": 13,
          "x": 0,
          "y": 43
        },
        "queries": [
          {
            "color": "",
            "datasource": "dataflux",
            "name": "",
            "qtype": "dql",
            "query": {
              "alias": "",
              "code": "A",
              "dataSource": "action",
              "field": "*",
              "fieldFunc": "count",
              "fieldType": "",
              "fill": "",
              "filters": [],
              "funcList": [],
              "groupBy": [
                "action_name",
                "app_id"
              ],
              "groupByTime": "",
              "namespace": "rum",
              "q": "R::`action`:(COUNT(`*`)) BY `action_name`, `app_id`",
              "queryFuncs": [],
              "search": "",
              "type": "simple"
            },
            "type": "sequence",
            "unit": ""
          }
        ],
        "type": "sequence"
      },
      {
        "extend": {
          "fixedTime": {
            "key": "30d",
            "text": "最近 30 天"
          },
          "settings": {
            "alias": [],
            "bar": {
              "direction": "horizontal",
              "xAxisShowType": "groupBy"
            },
            "chartType": "bar",
            "color": "#498BFE",
            "colors": [
              {
                "color": "#498BFE",
                "key": "last(resource_size){\"resource_url\": \"https://mcs.volceapplog.com/list\"}",
                "name": "last(resource_size){\"resource_url\": \"https://mcs.volceapplog.com/list\"}"
              }
            ],
            "compareTitle": "",
            "compareType": "",
            "fixedTime": "30d",
            "isTimeInterval": false,
            "levels": [],
            "openCompare": false,
            "showFieldMapping": false,
            "showTableHead": true,
            "showTitle": true,
            "showTopSize": true,
            "table": {
              "queryMode": "toGroupColumn"
            },
            "tableSortMetricName": "",
            "tableSortType": "top",
            "timeInterval": "default",
            "titleDesc": "",
            "topSize": 10,
            "units": []
          }
        },
        "group": {
          "name": null
        },
        "name": "资源加载排行榜",
        "pos": {
          "h": 21,
          "w": 11,
          "x": 13,
          "y": 12
        },
        "queries": [
          {
            "color": "",
            "datasource": "dataflux",
            "name": "",
            "qtype": "dql",
            "query": {
              "code": "A",
              "dataSource": "resource",
              "field": "resource_size",
              "fieldFunc": "last",
              "fill": null,
              "fillNum": null,
              "filters": [],
              "funcList": [
                "last",
                "top:10"
              ],
              "groupBy": [
                "resource_url"
              ],
              "groupByTime": "",
              "namespace": "rum",
              "q": "R::`resource`:(LAST(`resource_size`)) BY `resource_url`",
              "queryFuncs": [],
              "type": "dql",
              "withLabels": []
            },
            "type": "toplist",
            "unit": ""
          }
        ],
        "type": "toplist"
      },
      {
        "extend": {
          "fixedTime": {
            "key": "7d",
            "text": "最近 7 天"
          },
          "settings": {
            "alias": [],
            "bar": {
              "direction": "horizontal",
              "xAxisShowType": "groupBy"
            },
            "chartType": "bar",
            "color": "#498BFE",
            "colors": [
              {
                "color": "#498BFE",
                "key": "count(action_long_task_count){\"action_name\": \"红潭酱酒 1 瓶\", \"action_type\": \"click\", \"view_url\": \"https://sts.test.tanjiu.cn/portal/stock/stockDetail?tabName=%E8%BF%9B%E8%B4%A7\"}",
                "name": "count(action_long_task_count){\"action_name\": \"红潭酱酒 1 瓶\", \"action_type\": \"click\", \"view_url\": \"https://sts.test.tanjiu.cn/portal/stock/stockDetail?tabName=%E8%BF%9B%E8%B4%A7\"}"
              }
            ],
            "compareTitle": "",
            "compareType": "",
            "fixedTime": "7d",
            "isTimeInterval": false,
            "levels": [],
            "openCompare": false,
            "showFieldMapping": false,
            "showTableHead": true,
            "showTitle": true,
            "showTopSize": true,
            "table": {
              "queryMode": "toGroupColumn"
            },
            "tableSortMetricName": "",
            "tableSortType": "top",
            "timeInterval": "default",
            "titleDesc": "",
            "topSize": 10,
            "units": []
          }
        },
        "group": {
          "name": null
        },
        "name": "页面动作和长耗时排行榜",
        "pos": {
          "h": 19,
          "w": 11,
          "x": 13,
          "y": 33
        },
        "queries": [
          {
            "color": "",
            "datasource": "dataflux",
            "name": "",
            "qtype": "dql",
            "query": {
              "alias": "",
              "code": "A",
              "dataSource": "action",
              "field": "action_long_task_count",
              "fieldFunc": "count",
              "fieldType": "float",
              "fill": null,
              "fillNum": null,
              "filters": [],
              "funcList": [
                "last",
                "top:10"
              ],
              "groupBy": [
                "action_name",
                "view_url",
                "action_type"
              ],
              "groupByTime": "",
              "namespace": "rum",
              "q": "R::`action`:(COUNT(`action_long_task_count`)) BY `action_name`, `view_url`, `action_type`",
              "queryFuncs": [],
              "type": "simple",
              "withLabels": []
            },
            "type": "toplist",
            "unit": ""
          }
        ],
        "type": "toplist"
      }
    ],
    "groups": [],
    "type": "template",
    "vars": []
  },
  "summary": "",
  "tagInfo": [],
  "tags": [],
  "thumbnail": "",
  "title": "前端监控周报"
}



目录
相关文章
|
27天前
|
存储 监控 安全
前端框架的数据驱动方式如何保证数据的安全性?
总之,前端框架的数据驱动方式需要综合运用多种手段来保证数据的安全性。从传输、存储、访问控制到防范攻击等各个方面进行全面考虑和实施,以确保用户数据的安全可靠。同时,不断加强安全管理和技术创新,以应对不断变化的安全挑战。
105 60
|
2月前
|
JSON 前端开发 Java
震惊!图文并茂——Java后端如何响应不同格式的数据给前端(带源码)
文章介绍了Java后端如何使用Spring Boot框架响应不同格式的数据给前端,包括返回静态页面、数据、HTML代码片段、JSON对象、设置状态码和响应的Header。
161 1
震惊!图文并茂——Java后端如何响应不同格式的数据给前端(带源码)
|
2月前
|
监控 JavaScript 前端开发
前端的混合之路Meteor篇(六):发布订阅示例代码及如何将Meteor的响应数据映射到vue3的reactive系统
本文介绍了 Meteor 3.0 中的发布-订阅模型,详细讲解了如何在服务器端通过 `Meteor.publish` 发布数据,包括简单发布和自定义发布。客户端则通过 `Meteor.subscribe` 订阅数据,并使用 MiniMongo 实现实时数据同步。此外,还展示了如何在 Vue 3 中将 MiniMongo 的 `cursor` 转化为响应式数组,实现数据的自动更新。
|
2月前
|
JSON 分布式计算 前端开发
前端的全栈之路Meteor篇(七):轻量的NoSql分布式数据协议同步协议DDP深度剖析
本文深入探讨了DDP(Distributed Data Protocol)协议,这是一种在Meteor框架中广泛使用的发布/订阅协议,支持实时数据同步。文章详细介绍了DDP的主要特点、消息类型、协议流程及其在Meteor中的应用,包括实时数据同步、用户界面响应、分布式计算、多客户端协作和离线支持等。通过学习DDP,开发者可以构建响应迅速、适应性强的现代Web应用。
|
2月前
|
JavaScript 前端开发 Python
django接收前端vue传输的formData图片数据
django接收前端vue传输的formData图片数据
62 4
|
2月前
|
NoSQL 前端开发 MongoDB
前端的全栈之路Meteor篇(三):运行在浏览器端的NoSQL数据库副本-MiniMongo介绍及其前后端数据实时同步示例
MiniMongo 是 Meteor 框架中的客户端数据库组件,模拟了 MongoDB 的核心功能,允许前端开发者使用类似 MongoDB 的 API 进行数据操作。通过 Meteor 的数据同步机制,MiniMongo 与服务器端的 MongoDB 实现实时数据同步,确保数据一致性,支持发布/订阅模型和响应式数据源,适用于实时聊天、项目管理和协作工具等应用场景。
|
2月前
|
存储 前端开发 API
前端开发中,Web Storage的存储数据的方法localstorage和sessionStorage的使用及区别
前端开发中,Web Storage的存储数据的方法localstorage和sessionStorage的使用及区别
115 0
|
2月前
|
前端开发 Java 数据库
springBoot:template engine&自定义一个mvc&后端给前端传数据&增删改查 (三)
本文介绍了如何自定义一个 MVC 框架,包括后端向前端传递数据、前后端代理配置、实现增删改查功能以及分页查询。详细展示了代码示例,从配置文件到控制器、服务层和数据访问层的实现,帮助开发者快速理解和应用。
|
4月前
|
前端开发 JavaScript
这篇文章介绍了如何使用form表单结合Bootstrap格式将前端数据通过action属性提交到后端的servlet,包括前端表单的创建、数据的一级和二级验证,以及后端servlet的注解和参数获取。
这篇文章介绍了使用AJAX技术将前端页面中表单接收的多个参数快速便捷地传输到后端servlet的方法,并通过示例代码展示了前端JavaScript中的AJAX调用和后端servlet的接收处理。
这篇文章介绍了如何使用form表单结合Bootstrap格式将前端数据通过action属性提交到后端的servlet,包括前端表单的创建、数据的一级和二级验证,以及后端servlet的注解和参数获取。
|
4月前
|
前端开发
第一种方式:使用form表单将前端数据提交到servelt(将前端数据提交到servlet)
这篇文章介绍了如何使用form表单结合Bootstrap格式将前端数据通过action属性提交到后端的servlet,包括前端表单的创建、数据的一级和二级验证,以及后端servlet的注解和参数获取。
第一种方式:使用form表单将前端数据提交到servelt(将前端数据提交到servlet)
下一篇
DataWorks