Skip to content

Commit

Permalink
Make osparc-config dotenv-precommit pass: Use all caps env-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnicegyu11 committed Dec 16, 2024
1 parent 5b1c3fb commit 00bc0c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions services/monitoring/grafana/terraform/datasources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
resource "grafana_data_source" "prometheusfederation" {
type = "prometheus"
name = "prometheus-federation"
url = var.prometheus_federation_url
url = var.PROMETHEUS_FEDERATION_URL
basic_auth_enabled = false
is_default = true
}

resource "grafana_data_source" "prometheuscatchall" {
type = "prometheus"
name = "prometheus-catchall"
url = var.prometheus_catchall_url
url = var.PROMETHEUS_CATCHALL_URL
basic_auth_enabled = false
is_default = false
uid = "RmZEr52nz"
Expand All @@ -19,7 +19,7 @@ resource "grafana_data_source" "prometheuscatchall" {
resource "grafana_data_source" "tempo" {
type = "tempo"
name = "tempo"
url = var.tempo_url
url = var.TEMPO_URL
basic_auth_enabled = false
is_default = false
}
4 changes: 2 additions & 2 deletions services/monitoring/grafana/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ terraform {
}

provider "grafana" {
url = var.grafana_url
auth = var.grafana_auth
url = var.GRAFANA_URL
auth = var.GRAFANA_AUTH
}
10 changes: 5 additions & 5 deletions services/monitoring/grafana/terraform/variables.tf
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
variable "grafana_url" {
variable "GRAFANA_URL" {
description = "grafana_url"
sensitive = false
}
variable "grafana_auth" {
variable "GRAFANA_AUTH" {
description = "Username:Password"
sensitive = true
}
variable "prometheus_federation_url" {
variable "PROMETHEUS_FEDERATION_URL" {
description = "Prometheus Federation URL"
sensitive = false
}
variable "prometheus_catchall_url" {
variable "PROMETHEUS_CATCHALL_URL" {
description = "Prometheus Catchall URL"
sensitive = false
}
variable "tempo_url" {
variable "TEMPO_URL" {
description = "Tempo URL"
sensitive = false
}

0 comments on commit 00bc0c7

Please sign in to comment.