Skywalking8是如何启用自定义Dashboard并持久化
Skywalking 8是如何启用自定义Dashboard并持久化,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。
创新互联建站专注于万全企业网站建设,响应式网站开发,商城网站开发。万全网站建设公司,为万全等地区提供建站服务。全流程定制网站建设,专业设计,全程项目跟踪,创新互联建站专业和态度为您提供的服务
添加大屏视图:
这里手动添加的这个Dashboard并没有持久化到后端存储里,而是全部保存到浏览器本地缓存,????
添加完成后,导出json。如下内容:
[{ "name": "SLA Overview", "type": "metric", "children": [{ "name": "Overview", "children": [{ "width": 3, "title": "Service Summary", "height": 350, "entityType": "All", "independentSelector": true, "metricType": "REGULAR_VALUE", "metricName": "service_sla", "queryMetricType": "readMetricsValue", "chartType": "ChartNum", "aggregation": "/", "aggregationNum": "100", "unit": "%" }, { "width": "9", "title": "Service Overview", "height": "1000", "entityType": "Service", "independentSelector": true, "metricType": "REGULAR_VALUE", "metricName": "service_sla", "queryMetricType": "sortMetrics", "chartType": "ChartSlow", "topN": "100", "sortOrder": "ASC", "unit": "%", "aggregation": "/", "aggregationNum": "100" }] }] }]
持久化操作
目前我用的是elasticsearch7, 修改oap server里config/ui-initialized-templates.yml
在最后一行添加:
- name: SLA Overview configuration: |- [ {"name":"SLA Overview","type":"metric","children":[{"name":"Overview","children":[{"width":3,"title":"Service Summary","height":350,"entityType":"All","independentSelector":true,"metricType":"REGULAR_VALUE","metricName":"service_sla","queryMetricType":"readMetricsValue","chartType":"ChartNum","aggregation":"/","aggregationNum":"100","unit":"%"},{"width":"9","title":"Service Overview","height":"1000","entityType":"Service","independentSelector":true,"metricType":"REGULAR_VALUE","metricName":"service_sla","queryMetricType":"sortMetrics","chartType":"ChartSlow","topN":"100","sortOrder":"ASC","unit":"%","aggregation":"/","aggregationNum":"100"}]}]}] activated: true disabled: false
添加完成后重启oap server,oap server会将这些配置持久化到elasticsearch 7里了。我们可以通过kibana查询具体索引:
关于Skywalking 8是如何启用自定义Dashboard并持久化问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注创新互联行业资讯频道了解更多相关知识。
新闻名称:Skywalking8是如何启用自定义Dashboard并持久化
分享地址:http://pwwzsj.com/article/jogcsj.html