您好,登錄后才能下訂單哦!
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進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。