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并持久化问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注亿速云行业资讯频道了解更多相关知识。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。