From c559ed8a2fca42dc16d7359b2b79fd21d2478cea Mon Sep 17 00:00:00 2001 From: vargburz Date: Fri, 8 Jul 2022 15:11:47 +0300 Subject: [PATCH 1/7] update grafana version; --- src/plugin.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.json b/src/plugin.json index 4a22419..18804ac 100644 --- a/src/plugin.json +++ b/src/plugin.json @@ -34,7 +34,7 @@ "updated": "%TODAY%" }, "dependencies": { - "grafanaDependency": ">=8.0.0", + "grafanaDependency": ">=8.3.0", "plugins": [] } } From e221551ac99ec15ab4d3b00b7c285bd69135a906 Mon Sep 17 00:00:00 2001 From: vargburz Date: Fri, 8 Jul 2022 17:00:47 +0300 Subject: [PATCH 2/7] update docs --- README.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 15f32be..a0b760a 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,35 @@ - Bar Chart (coming soon) - Gauge: dynamic thresholds and min / max - Gauge: conditional icons displaying - +- Gauge: reversed direction + +## How to use + +1. Create a new panel and select Chartwerk as the visualization +2. Add multiple queries with a unique alias +3. Go to the Options Tab and setup panel: + - Choose visualization type (Gauge is the only available option for now) + - Select metric in the Value -> Metric dropdown (the first query metric will be used as a default one) + +## Demo + +see [demo](https://grafana.corpglory.com/d/8vGyMypGz/demo-home?orgId=4) + +## Options [Gauge] + +- Visualization: + - Pod: option to select chart type +- Value: + - Metric: select metric query from dropdown +- Extemum: + - Min: + - type number for static minimum value OR + - enable "Use metric" toggle switch to select metric as minimun + - default value: 0 + - Max: + - type number for static maximum OR + - enable "Use metric" toggle switch to select metric as maximum + - default value: maximum of metric query ## Installation ### Linux / Mac OS X From dc7b2fe6e33fc10b53b4b1133cefe5fba3f8d0be Mon Sep 17 00:00:00 2001 From: vargburz Date: Fri, 8 Jul 2022 17:11:52 +0300 Subject: [PATCH 3/7] update plugin.json --- README.md | 1 + src/plugin.json | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a0b760a..5641574 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ see [demo](https://grafana.corpglory.com/d/8vGyMypGz/demo-home?orgId=4) - type number for static maximum OR - enable "Use metric" toggle switch to select metric as maximum - default value: maximum of metric query + ## Installation ### Linux / Mac OS X diff --git a/src/plugin.json b/src/plugin.json index 18804ac..665a62f 100644 --- a/src/plugin.json +++ b/src/plugin.json @@ -4,7 +4,7 @@ "name": "Chartwerk", "id": "corpglory-chartwerk-panel", "info": { - "description": "", + "description": "Chartwerk panel for Grafana", "author": { "name": "CorpGlory Inc.", "url": "https://corpglory.com" @@ -17,11 +17,15 @@ "links": [ { "name": "Website", - "url": "https://gitlab.com/chartwerk/grafana-chartwerk-panel" + "url": "https://https://chartwerk.io/" }, { "name": "License", "url": "https://gitlab.com/chartwerk/grafana-chartwerk-panel/blob/main/LICENSE" + }, + { + "name": "Gitlab", + "url": "https://gitlab.com/chartwerk/grafana-chartwerk-panel/" } ], "screenshots": [ From b1fe84131a84278f81325d83e11500323b39d9f6 Mon Sep 17 00:00:00 2001 From: vargburz Date: Fri, 8 Jul 2022 17:22:18 +0300 Subject: [PATCH 4/7] fix --- README.md | 2 +- src/plugin.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5641574..f27c22e 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ ## How to use 1. Create a new panel and select Chartwerk as the visualization -2. Add multiple queries with a unique alias +2. Add queries with a unique alias 3. Go to the Options Tab and setup panel: - Choose visualization type (Gauge is the only available option for now) - Select metric in the Value -> Metric dropdown (the first query metric will be used as a default one) diff --git a/src/plugin.json b/src/plugin.json index 665a62f..56e2a86 100644 --- a/src/plugin.json +++ b/src/plugin.json @@ -4,7 +4,7 @@ "name": "Chartwerk", "id": "corpglory-chartwerk-panel", "info": { - "description": "Chartwerk panel for Grafana", + "description": "Chartwerk panel with extended chart customization", "author": { "name": "CorpGlory Inc.", "url": "https://corpglory.com" @@ -17,7 +17,7 @@ "links": [ { "name": "Website", - "url": "https://https://chartwerk.io/" + "url": "https://chartwerk.io/" }, { "name": "License", From 7a056a57e4ddcb521bf68025f2481c5024782f5a Mon Sep 17 00:00:00 2001 From: vargburz Date: Fri, 8 Jul 2022 17:55:02 +0300 Subject: [PATCH 5/7] fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f27c22e..b5d093c 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ ## How to use 1. Create a new panel and select Chartwerk as the visualization -2. Add queries with a unique alias +2. Add queries with unique aliases 3. Go to the Options Tab and setup panel: - Choose visualization type (Gauge is the only available option for now) - Select metric in the Value -> Metric dropdown (the first query metric will be used as a default one) From 58ccf3097620fbcc7dbaf5fe09ecf0f141f620cc Mon Sep 17 00:00:00 2001 From: vargburz Date: Fri, 8 Jul 2022 17:55:23 +0300 Subject: [PATCH 6/7] fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b5d093c..f806d64 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ 1. Create a new panel and select Chartwerk as the visualization 2. Add queries with unique aliases 3. Go to the Options Tab and setup panel: - - Choose visualization type (Gauge is the only available option for now) + - Choose visualization type - Select metric in the Value -> Metric dropdown (the first query metric will be used as a default one) ## Demo From 8b80470e748779b38dbf545baa6d092095ad3979 Mon Sep 17 00:00:00 2001 From: vargburz Date: Fri, 8 Jul 2022 17:56:11 +0300 Subject: [PATCH 7/7] fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f806d64..243d7ac 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ 2. Add queries with unique aliases 3. Go to the Options Tab and setup panel: - Choose visualization type - - Select metric in the Value -> Metric dropdown (the first query metric will be used as a default one) + - Select metric in the Value -> Metric dropdown (by default, the first metric is used) ## Demo