commit 6329666348e14aae1f3c1da05a044610e4704fd7 parent 89fbe75ee5caad57684081d6a78d07b05871a188 Author: Dionysis Grigoropoulos <dgrig@erethon.com> Date: Sat, 25 Jan 2020 14:44:25 +0200 terraform: Init dir for services and add Grafana Diffstat:
terraform/infrastructure/services/grafana/main.tf | | | 10 | ++++++++++ |
terraform/infrastructure/services/grafana/variables.tf | | | 4 | ++++ |
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/terraform/infrastructure/services/grafana/main.tf b/terraform/infrastructure/services/grafana/main.tf @@ -0,0 +1,10 @@ +provider "grafana" { + url = var.url +} + +resource "grafana_data_source" "prometheus" { + type = "prometheus" + name = "defaultPrometheus" + url = "http://127.0.0.1:9090" + is_default = true +} diff --git a/terraform/infrastructure/services/grafana/variables.tf b/terraform/infrastructure/services/grafana/variables.tf @@ -0,0 +1,4 @@ +variable "url" { + description = "URL for Grafan" + default = "https://grafana.erethon.com" +}