Skip to content

Commit 601adea

Browse files
committed
Remove duplicate, add tagging
1 parent c172a14 commit 601adea

18 files changed

+1014
-5781
lines changed

modules/workloads/infra/dashboards.tf

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -16,36 +16,12 @@ resource "grafana_dashboard" "pods" {
1616
config_json = file("${path.module}/dashboards/pods.json")
1717
}
1818

19-
resource "grafana_dashboard" "pv" {
20-
count = var.enable_dashboards ? 1 : 0
21-
folder = var.dashboards_folder_id
22-
config_json = file("${path.module}/dashboards/pesistentvolumes.json")
23-
}
24-
2519
resource "grafana_dashboard" "nodes" {
2620
count = var.enable_dashboards ? 1 : 0
2721
folder = var.dashboards_folder_id
2822
config_json = file("${path.module}/dashboards/nodes.json")
2923
}
3024

31-
resource "grafana_dashboard" "necluster" {
32-
count = var.enable_dashboards ? 1 : 0
33-
folder = var.dashboards_folder_id
34-
config_json = file("${path.module}/dashboards/nodeexpoter-use-cluster.json")
35-
}
36-
37-
resource "grafana_dashboard" "nenodeuse" {
38-
count = var.enable_dashboards ? 1 : 0
39-
folder = var.dashboards_folder_id
40-
config_json = file("${path.module}/dashboards/nodeexporter-use-node.json")
41-
}
42-
43-
resource "grafana_dashboard" "nenode" {
44-
count = var.enable_dashboards ? 1 : 0
45-
folder = var.dashboards_folder_id
46-
config_json = file("${path.module}/dashboards/nodeexporter-nodes.json")
47-
}
48-
4925
resource "grafana_dashboard" "nwworload" {
5026
count = var.enable_dashboards ? 1 : 0
5127
folder = var.dashboards_folder_id
@@ -82,12 +58,6 @@ resource "grafana_dashboard" "kubelet" {
8258
config_json = file("${path.module}/dashboards/kubelet.json")
8359
}
8460

85-
resource "grafana_dashboard" "controller" {
86-
count = var.enable_dashboards ? 1 : 0
87-
folder = var.dashboards_folder_id
88-
config_json = file("${path.module}/dashboards/controller.json")
89-
}
90-
9161
resource "grafana_dashboard" "clusternw" {
9262
count = var.enable_dashboards ? 1 : 0
9363
folder = var.dashboards_folder_id

modules/workloads/infra/dashboards/cluster-networking.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@
15821582
"schemaVersion": 36,
15831583
"style": "dark",
15841584
"tags": [
1585-
"kubernetes-mixin"
1585+
"infrastructure"
15861586
],
15871587
"templating": {
15881588
"list": [

modules/workloads/infra/dashboards/cluster.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2856,7 +2856,7 @@
28562856
"schemaVersion": 36,
28572857
"style": "dark",
28582858
"tags": [
2859-
"kubernetes-mixin"
2859+
"infrastructure"
28602860
],
28612861
"templating": {
28622862
"list": [

0 commit comments

Comments
 (0)