Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sentry to uk forecasts #619

Merged
merged 6 commits into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions terraform/nowcasting/development/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module "api" {
container-env_vars = [
{ "name" : "DB_URL", "value" : module.database.forecast-database-secret-url},
{ "name" : "ORIGINS", "value" : "*" },
{ "name" : "SENTRY_DSN", "value" : var.sentry_dsn },
{ "name" : "SENTRY_DSN", "value" : var.sentry_dsn_api },
{ "name" : "AUTH0_DOMAIN", "value" : var.auth_domain },
{ "name" : "AUTH0_API_AUDIENCE", "value" : var.auth_api_audience },
{ "name" : "AUTH0_RULE_NAMESPACE", "value" : "https://openclimatefix.org"},
Expand Down Expand Up @@ -326,6 +326,8 @@ module "national_forecast" {
bucket_read_policy_arn = module.s3.iam-policy-s3-nwp-read.arn
datadir = "data-national"
}

sentry_dsn = var.sentry_dsn
}

# 4.4
Expand Down Expand Up @@ -363,7 +365,7 @@ module "forecast_pvnet" {
pvnet_gsp_sum = "true"
ecs-task_execution_role_arn = module.ecs.ecs_task_execution_role_arn
run_extra_models = "true"
sentry_dsn = var.sentry_dsn_backend
sentry_dsn = var.sentry_dsn
}

# 4.5
Expand Down Expand Up @@ -400,6 +402,7 @@ module "forecast_pvnet_day_ahead" {
loglevel = "INFO"
ecs-task_execution_role_arn = module.ecs.ecs_task_execution_role_arn
day_ahead_model = "true"
sentry_dsn = var.sentry_dsn
}

# 5.1
Expand Down Expand Up @@ -498,7 +501,7 @@ module "pvsite_api" {
{ "name" : "DB_URL", "value" : module.pvsite_database.default_db_connection_url},
{ "name" : "FAKE", "value" : "0" },
{ "name" : "ORIGINS", "value" : "*" },
{ "name" : "SENTRY_DSN", "value" : var.sentry_dsn },
{ "name" : "SENTRY_DSN", "value" : var.sentry_dsn_api },
{ "name" : "AUTH0_API_AUDIENCE", "value" : var.auth_api_audience },
{ "name" : "AUTH0_DOMAIN", "value" : var.auth_domain },
{ "name" : "AUTH0_ALGORITHM", "value" : "RS256" },
Expand Down Expand Up @@ -553,6 +556,7 @@ module "pvsite_forecast" {
datadir = "data-national"
}
ecs-task_execution_role_arn = module.ecs.ecs_task_execution_role_arn
sentry_dsn = var.sentry_dsn
}

# 6.5
Expand Down
2 changes: 1 addition & 1 deletion terraform/nowcasting/development/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ variable "forecast_pvnet_day_ahead_docker_version" {
default = "not-set"
}

variable "sentry_dsn_backend" {
variable "sentry_dsn_api" {
type = string
description = "The Sentry DSN for all backend components"
default = ""
Expand Down