Skip to content

Commit

Permalink
Merge pull request #65 from ahinvinith/main
Browse files Browse the repository at this point in the history
Added dashboard JSON for new tool and modified the column alligments … #64
  • Loading branch information
jebinjeb authored Jun 13, 2023
2 parents d82ae7f + 8eaaaa5 commit 250ad23
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 65 deletions.
2 changes: 1 addition & 1 deletion charts/grafana/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ name: grafana
sources:
- https://github.com/grafana/grafana
type: application
version: 6.26.12
version: 6.26.13
123 changes: 98 additions & 25 deletions charts/grafana/dashboards/plugins-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 1,
"id": 8,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "vertamedia-clickhouse-datasource"
},
"description": "This panel displays all the resources from the cluster",
"description": "This panel displays the access rights for the current user and all server resources.",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -64,7 +64,7 @@
"x": 0,
"y": 0
},
"id": 8,
"id": 10,
"options": {
"footer": {
"fields": "",
Expand All @@ -86,22 +86,22 @@
"format": "table",
"formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
"intervalFactor": 1,
"query": "select * from default.getall_resources\n",
"rawQuery": "select * from default.getall_resources",
"query": "SELECT * FROM default.rakkess",
"rawQuery": "SELECT * FROM default.rakkess",
"refId": "A",
"round": "0s",
"skip_comments": true
}
],
"title": "kubernetes_resources",
"title": "Rakkess Access Matrix",
"transparent": true,
"type": "table"
},
{
"datasource": {
"type": "vertamedia-clickhouse-datasource"
},
"description": "This panel displays all the out-off-date images from the cluster",
"description": "This panel displays all the kubernetes resources from the cluster",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -131,11 +131,83 @@
"overrides": []
},
"gridPos": {
"h": 7,
"h": 8,
"w": 24,
"x": 0,
"y": 8
},
"id": 8,
"options": {
"footer": {
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "9.3.2",
"targets": [
{
"datasource": {
"type": "vertamedia-clickhouse-datasource"
},
"dateTimeType": "DATETIME",
"extrapolate": true,
"format": "table",
"formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
"intervalFactor": 1,
"query": "SELECT * FROM default.getall_resources",
"rawQuery": "SELECT * FROM default.getall_resources",
"refId": "A",
"round": "0s",
"skip_comments": true
}
],
"title": "Kubernetes Resources",
"transparent": true,
"type": "table"
},
{
"datasource": {
"type": "vertamedia-clickhouse-datasource"
},
"description": "This panel displays the out-off-date images from the cluster.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "center",
"displayMode": "color-text",
"filterable": true,
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 10
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 16
},
"id": 6,
"options": {
"footer": {
Expand All @@ -158,22 +230,22 @@
"format": "table",
"formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
"intervalFactor": 1,
"query": "select * from default.outdated_images\n\n",
"rawQuery": "select * from default.outdated_images",
"query": "SELECT * FROM default.outdated_images\nWHERE Versions_Behind > 0",
"rawQuery": "SELECT * FROM default.outdated_images\nWHERE Versions_Behind > 0",
"refId": "A",
"round": "0s",
"skip_comments": true
}
],
"title": "outdated_images",
"title": "Outdated Images",
"transparent": true,
"type": "table"
},
{
"datasource": {
"type": "vertamedia-clickhouse-datasource"
},
"description": "This panel displays all the Deleted APIs from the cluster",
"description": "This panel displays all the deleted APIs from the cluster",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -203,10 +275,10 @@
"overrides": []
},
"gridPos": {
"h": 7,
"h": 8,
"w": 24,
"x": 0,
"y": 15
"y": 25
},
"id": 4,
"options": {
Expand All @@ -230,8 +302,8 @@
"format": "table",
"formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
"intervalFactor": 1,
"query": "select * from default.DeletedAPIs\n",
"rawQuery": "select * from default.DeletedAPIs",
"query": "SELECT * FROM default.DeletedAPIs",
"rawQuery": "SELECT * FROM default.DeletedAPIs",
"refId": "A",
"round": "0s",
"skip_comments": true
Expand All @@ -245,7 +317,7 @@
"datasource": {
"type": "vertamedia-clickhouse-datasource"
},
"description": "This panel displays all the Deprecated APIs from the cluster",
"description": "This panel displays all the deprecatedAPIs from the cluster",
"fieldConfig": {
"defaults": {
"color": {
Expand All @@ -262,7 +334,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand All @@ -274,10 +347,10 @@
"overrides": []
},
"gridPos": {
"h": 8,
"h": 7,
"w": 24,
"x": 0,
"y": 22
"y": 33
},
"id": 2,
"options": {
Expand All @@ -301,8 +374,8 @@
"format": "table",
"formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
"intervalFactor": 1,
"query": "select * from default.DeprecatedAPIs\n",
"rawQuery": "select * from default.DeprecatedAPIs",
"query": "SELECT * FROM default.DeprecatedAPIs",
"rawQuery": "SELECT * FROM default.DeprecatedAPIs",
"refId": "A",
"round": "0s",
"skip_comments": true
Expand All @@ -325,8 +398,8 @@
},
"timepicker": {},
"timezone": "",
"title": "k8s-plugins",
"uid": "K-QBkXw4k",
"version": 18,
"title": "Kubviz Plugins",
"uid": "wyP_aLl4z",
"version": 2,
"weekStart": ""
}
Loading

0 comments on commit 250ad23

Please sign in to comment.