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

Commit

Permalink
feat: declare Grafana dashboards with jsonnet (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Basty authored Mar 31, 2023
1 parent 3703c5f commit 6e004f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions terraform/monitoring/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ data "jsonnet_file" "dashboard" {

ext_str = {
dashboard_title = module.this.id
prometheus_uid = grafana_data_source.prometheus.uid
prometheus_uid = grafana_data_source.prometheus.uid
}
}

# JSON Dashboard. When exporting from Grafana make sure that all
# variables are replaced properly
resource "grafana_dashboard" "at_a_glance" {
overwrite = true
message = "Updated by Terraform"
overwrite = true
message = "Updated by Terraform"
config_json = data.jsonnet_file.dashboard.rendered
}
2 changes: 1 addition & 1 deletion terraform/monitoring/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
version = "~> 1.24"
}
jsonnet = {
source = "alxrem/jsonnet"
source = "alxrem/jsonnet"
version = "~> 2.2.0"
}
}
Expand Down

0 comments on commit 6e004f3

Please sign in to comment.