Skip to content

Commit

Permalink
Merge pull request #179 from DFE-Digital/659-grafana-cluster-health-d…
Browse files Browse the repository at this point in the history
…ashboard-2

Added latest dashboards
  • Loading branch information
VenkataChalla554 authored Mar 19, 2024
2 parents e48b45f + 2526e6c commit e90bea0
Show file tree
Hide file tree
Showing 11 changed files with 12,789 additions and 2,647 deletions.
3,150 changes: 3,150 additions & 0 deletions cluster/terraform_kubernetes/config/dashboards/k8s-addons-prometheus.json

Large diffs are not rendered by default.

1,363 changes: 1,363 additions & 0 deletions cluster/terraform_kubernetes/config/dashboards/k8s-system-api-server.json

Large diffs are not rendered by default.

2,989 changes: 2,989 additions & 0 deletions cluster/terraform_kubernetes/config/dashboards/k8s-views-global.json

Large diffs are not rendered by default.

2,307 changes: 2,307 additions & 0 deletions cluster/terraform_kubernetes/config/dashboards/k8s-views-namespaces.json

Large diffs are not rendered by default.

2,966 changes: 2,966 additions & 0 deletions cluster/terraform_kubernetes/config/dashboards/k8s-views-nodes.json

Large diffs are not rendered by default.

2,645 changes: 0 additions & 2,645 deletions cluster/terraform_kubernetes/config/dashboards/kubernetes-cluster.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ scrape_configs:
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: kubernetes_pod_name
- source_labels: [__meta_kubernetes_pod_node_name]
target_label: nodename
# Scrape config for kube-state-metrics.
- job_name: 'kube-state-metrics'
static_configs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ scrape_configs:
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: kubernetes_pod_name
- source_labels: [__meta_kubernetes_pod_node_name]
target_label: nodename
# Scrape config for kube-state-metrics.
- job_name: 'kube-state-metrics'
static_configs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ scrape_configs:
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: kubernetes_pod_name
- source_labels: [__meta_kubernetes_pod_node_name]
target_label: nodename
# Scrape config for kube-state-metrics.
- job_name: 'kube-state-metrics'
static_configs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ scrape_configs:
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: kubernetes_pod_name
- source_labels: [__meta_kubernetes_pod_node_name]
target_label: nodename
# Scrape config for kube-state-metrics.
- job_name: 'kube-state-metrics'
static_configs:
Expand Down
8 changes: 6 additions & 2 deletions cluster/terraform_kubernetes/grafana.tf
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,14 @@ resource "kubernetes_config_map" "grafana_dashboards" {
}

data = {
"dashboard1.json" = file("${path.module}/config/dashboards/kubernetes-cluster.json")
"k8s-addons-prometheus.json" = file("${path.module}/config/dashboards/k8s-addons-prometheus.json")
"k8s-system-api-server.json" = file("${path.module}/config/dashboards/k8s-system-api-server.json")
"k8s-views-global.json" = file("${path.module}/config/dashboards/k8s-views-global.json")
"k8s-views-namespaces.json" = file("${path.module}/config/dashboards/k8s-views-namespaces.json")
"k8s-views-nodes.json" = file("${path.module}/config/dashboards/k8s-views-nodes.json")

}
}

resource "kubernetes_config_map" "grafana_dashboard_provisioning" {
metadata {
name = "grafana-dashboard-provisioning"
Expand Down

0 comments on commit e90bea0

Please sign in to comment.