Skip to content

Commit a42b175

Browse files
awsvikramVenkataramanbonclay7
authored
Node exporter dashboards (#43)
* Added dashboards for node exporter * Drop use cluster and node * Add nodename to ne metrics * Add account ID and region Co-authored-by: Venkataraman <[email protected]> Co-authored-by: Rodrigue Koffi <[email protected]>
1 parent 2e6ac04 commit a42b175

File tree

8 files changed

+1307
-4
lines changed

8 files changed

+1307
-4
lines changed

.github/workflows/plan-examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
workflow_dispatch:
99

1010
concurrency:
11-
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
11+
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
1212
cancel-in-progress: true
1313

1414
jobs:

.github/workflows/pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ jobs:
137137
with:
138138
terraform-version: ${{ steps.minMax.outputs.maxVersion }}
139139
terraform-docs-version: ${{ env.TERRAFORM_DOCS_VERSION }}
140-
tflint-version: ${{ env.TFLINT_VERSION }}
140+
tflint-version: ${{ env.TFLINT_VERSION }}

.github/workflows/stale_issue_pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
with no activity. Remove stale label or comment or this issue will be closed in 10 days
3131
stale-pr-message: |
3232
This PR has been automatically marked as stale because it has been open 30 days
33-
with no activity. Remove stale label or comment or this PR will be closed in 10 days
33+
with no activity. Remove stale label or comment or this PR will be closed in 10 days

modules/workloads/infra/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ This module is inspired from the open source [kube-prometheus-stack](https://git
4242
| [aws_prometheus_rule_group_namespace.recording_rules](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/prometheus_rule_group_namespace) | resource |
4343
| [grafana_dashboard.cluster](https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/dashboard) | resource |
4444
| [grafana_dashboard.kubelet](https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/dashboard) | resource |
45+
| [grafana_dashboard.nodeexp_nodes](https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/dashboard) | resource |
4546
| [grafana_dashboard.nodes](https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/dashboard) | resource |
4647
| [grafana_dashboard.nsworkload](https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/dashboard) | resource |
4748
| [grafana_dashboard.workloads](https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/dashboard) | resource |

modules/workloads/infra/dashboards.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,9 @@ resource "grafana_dashboard" "cluster" {
2828
folder = var.dashboards_folder_id
2929
config_json = file("${path.module}/dashboards/cluster.json")
3030
}
31+
32+
resource "grafana_dashboard" "nodeexp_nodes" {
33+
count = var.enable_dashboards ? 1 : 0
34+
folder = var.dashboards_folder_id
35+
config_json = file("${path.module}/dashboards/nodeexporter-nodes.json")
36+
}

0 commit comments

Comments
 (0)