Skip to content

Commit 00bc0c7

Browse files
committed
Make osparc-config dotenv-precommit pass: Use all caps env-vars
1 parent 5b1c3fb commit 00bc0c7

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

services/monitoring/grafana/terraform/datasources.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
resource "grafana_data_source" "prometheusfederation" {
33
type = "prometheus"
44
name = "prometheus-federation"
5-
url = var.prometheus_federation_url
5+
url = var.PROMETHEUS_FEDERATION_URL
66
basic_auth_enabled = false
77
is_default = true
88
}
99

1010
resource "grafana_data_source" "prometheuscatchall" {
1111
type = "prometheus"
1212
name = "prometheus-catchall"
13-
url = var.prometheus_catchall_url
13+
url = var.PROMETHEUS_CATCHALL_URL
1414
basic_auth_enabled = false
1515
is_default = false
1616
uid = "RmZEr52nz"
@@ -19,7 +19,7 @@ resource "grafana_data_source" "prometheuscatchall" {
1919
resource "grafana_data_source" "tempo" {
2020
type = "tempo"
2121
name = "tempo"
22-
url = var.tempo_url
22+
url = var.TEMPO_URL
2323
basic_auth_enabled = false
2424
is_default = false
2525
}

services/monitoring/grafana/terraform/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ terraform {
1616
}
1717

1818
provider "grafana" {
19-
url = var.grafana_url
20-
auth = var.grafana_auth
19+
url = var.GRAFANA_URL
20+
auth = var.GRAFANA_AUTH
2121
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
variable "grafana_url" {
1+
variable "GRAFANA_URL" {
22
description = "grafana_url"
33
sensitive = false
44
}
5-
variable "grafana_auth" {
5+
variable "GRAFANA_AUTH" {
66
description = "Username:Password"
77
sensitive = true
88
}
9-
variable "prometheus_federation_url" {
9+
variable "PROMETHEUS_FEDERATION_URL" {
1010
description = "Prometheus Federation URL"
1111
sensitive = false
1212
}
13-
variable "prometheus_catchall_url" {
13+
variable "PROMETHEUS_CATCHALL_URL" {
1414
description = "Prometheus Catchall URL"
1515
sensitive = false
1616
}
17-
variable "tempo_url" {
17+
variable "TEMPO_URL" {
1818
description = "Tempo URL"
1919
sensitive = false
2020
}

0 commit comments

Comments
 (0)