Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

update dashboard #3

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

.PHONY: remove-dashbaords
remove-dashbaords:
rm -rf ../dashboards/

.PHONY: remove-dashbaords
gen-dashboards: remove-dashbaords
docker run --rm -v $$(pwd)/dashboards:/dashboards -v $$(pwd)/hack:/hack -it python:3.11.9 /bin/sh -c \
'cd hack && pip install -r requirements.txt && python sync_grafana_dashboards.py'

build-image-darwin:
docker buildx build --platform linux/amd64 -t release-ci.daocloud.io/insight/grafana_plugins_init:dev .

build-image-liunx:
docker buildx build --platform linux/amd64 -t release-ci.daocloud.io/insight/grafana_plugins_init:dev .
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# grafana_plugins_init

experimental

## build insight dashboard

```bash
make gen-dashboards
```
40 changes: 37 additions & 3 deletions dashboards/insight-system/fluent-bit.json
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@
"type": "prometheus",
"uid": "Prometheus"
},
"definition": "fluentbit_build_info",
"definition": "query_result(count(global_cluster_info{cluster_name=\"$cluster_name\"}) by (cluster))",
"description": "cluster selector",
"hide": 2,
"includeAll": true,
Expand All @@ -1518,15 +1518,49 @@

],
"query": {
"query": "label_values(global_cluster_info{cluster_name=\"$cluster_name\"}, cluster)",
"query": "query_result(count(global_cluster_info{cluster_name=\"$cluster_name\"}) by (cluster))",
"refId": "Prometheus-cluster-Variable-Query"
},
"refresh": 1,
"regex": "",
"regex": "/\"([^\"]+)\"/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"allValue": null,
"current": {
"text": "",
"value": ""
},
"datasource": {
"type": "prometheus",
"uid": ""
},
"definition": "query_result(count(global_cluster_info) by (cluster_name))",
"hide": 0,
"includeAll": false,
"label": "Cluster",
"multi": false,
"name": "cluster_name",
"options": [

],
"query": {
"query": "query_result(count(global_cluster_info) by (cluster_name))",
"refId": "Prometheus-cluster_name-Variable-Query"
},
"refresh": 2,
"regex": "/\"([^\"]+)\"/",
"sort": 1,
"tagValuesQuery": "",
"tags": [

],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {
"selected": false,
Expand Down
Loading
Loading