From 2e18ee68f06b61d296d92783e6a716fb8ce99fc8 Mon Sep 17 00:00:00 2001 From: Teddy Andrieux Date: Mon, 24 Aug 2020 09:55:31 +0200 Subject: [PATCH] charts: Update Fluent-bit dashboard from fluent for MetalK8s Add link to Loki and Logs dashboards and add a templating variable for `DS_PROMETHEUS` Refs: #2721 --- charts/fluent-bit-dashboard.json | 38 ++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/charts/fluent-bit-dashboard.json b/charts/fluent-bit-dashboard.json index a651d28150..afdd9def85 100644 --- a/charts/fluent-bit-dashboard.json +++ b/charts/fluent-bit-dashboard.json @@ -53,7 +53,30 @@ "gnetId": 7752, "graphTooltip": 1, "id": null, - "links": [], + "links": [ + { + "icon": "dashboard", + "includeVars": true, + "keepTime": true, + "tags": [], + "targetBlank": true, + "title": "Logs", + "tooltip": "", + "type": "link", + "url": "/grafana/d/a7e130cb82be229d6f3edbfd0a438001/logs" + }, + { + "icon": "dashboard", + "includeVars": true, + "keepTime": true, + "tags": [], + "targetBlank": true, + "title": "Loki", + "tooltip": "", + "type": "link", + "url": "/grafana/d/g6fe30815b172c9da7e813c15ddfe607/loki" + } + ], "panels": [ { "cacheTimeout": null, @@ -1417,7 +1440,18 @@ "style": "dark", "tags": [], "templating": { - "list": [] + "list": [ + { + "current": { + "text": "Prometheus", + "value": "Prometheus" + }, + "hide": 2, + "name": "DS_PROMETHEUS", + "query": "prometheus", + "type": "datasource" + } + ] }, "time": { "from": "now-15m",