Skip to content

Commit

Permalink
Update Datadog configuration for Backstage service and adjust synthet…
Browse files Browse the repository at this point in the history
…ic URL references
  • Loading branch information
brettcurtis committed Dec 29, 2024
1 parent 9aa2cbf commit 9e8a9e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 49 deletions.
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ the community, but it does come with some risks.
## Reporting a Vulnerability

Privately discuss, fix, and publish information about security vulnerabilities in this repository by drafting a new
[security advisory](https://github.com/osinfra-io/gke-info-go/security/advisories/new).
[security advisory](https://github.com/osinfra-io/backstage/security/advisories/new).

<!-- This file is managed by the osinfra-io/github-organization-management repository and should not be edited directly. -->
55 changes: 7 additions & 48 deletions deployments/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,54 +2,13 @@
# https://www.terraform.io/docs/language/values/locals.html

locals {
datadog_mci_synthetic_url = module.helpers.environment == "production" ? "https://gcp.osinfra.io/${local.datadog_synthetic_service}/metadata/cluster-name" : "https://${module.helpers.env}.gcp.osinfra.io/${local.datadog_synthetic_service}/metadata/cluster-name"
datadog_mci_synthetic_url = module.helpers.environment == "production" ? "https://backstage.gcp.osinfra.io/health" : "https://backstage.${module.helpers.env}.gcp.osinfra.io/health"
datadog_synthetic_message_critical = module.helpers.environment == "production" ? "@hangouts-Platform-CriticalHighPriority" : ""
datadog_synthetic_message_medium = module.helpers.environment == "production" ? "@hangouts-Platform-MediumLowInfoPriority" : ""
datadog_synthetic_name = "GKE Info"
datadog_synthetic_service = "gke-info-go"

datadog_synthetic_tests = module.helpers.region == "us-east1" || module.helpers.zone == "b" ? {
"mci" = {
locations = [
"aws:ca-central-1",
"aws:us-west-1",
"aws:us-east-1",
"aws:eu-central-1",
"aws:eu-south-1",
"aws:eu-north-1",
"aws:us-east-1",
"aws:us-east-2",
"aws:us-west-1",
"aws:us-west-2"
]

message = local.datadog_synthetic_message_critical
message_priority = "1"
name = "Istio MCI ${local.datadog_synthetic_name}"
region = "global"
service = local.datadog_synthetic_service
status = "paused"
url = local.datadog_mci_synthetic_url
}

"mci-us-east1" = {
locations = [
"aws:us-east-1",
"aws:us-east-2",
"aws:us-west-1",
"aws:us-west-2"
]

message = local.datadog_synthetic_message_medium
message_priority = "3"
name = "Istio MCI ${local.datadog_synthetic_name}"
region = module.helpers.region
service = local.datadog_synthetic_service

status = "paused"
url = local.datadog_mci_synthetic_url
}
datadog_synthetic_name = "Backstage"
datadog_synthetic_service = "backstage"

datadog_synthetic_tests = {
"us-east1" = {
locations = [
"aws:us-east-1",
Expand All @@ -60,13 +19,13 @@ locals {

message = local.datadog_synthetic_message_medium
message_priority = "3"
name = "Istio Ingress ${local.datadog_synthetic_name}"
name = "Ingress ${local.datadog_synthetic_name}"
region = module.helpers.region
service = local.datadog_synthetic_service
status = "paused"
url = module.helpers.environment == "production" ? "https://us-east1.gcp.osinfra.io/${local.datadog_synthetic_service}" : "https://us-east1.${module.helpers.env}.gcp.osinfra.io/${local.datadog_synthetic_service}"
url = module.helpers.environment == "production" ? "https://backstage.gcp.osinfra.io" : "https://backstage.${module.helpers.env}.gcp.osinfra.io"
}
} : {}
}

registry = module.helpers.environment == "sandbox" ? "us-docker.pkg.dev/plt-lz-services-tf7f-sb/plt-docker-virtual" : "us-docker.pkg.dev/plt-lz-services-tf79-prod/plt-docker-virtual"
kubernetes_project = module.helpers.environment == "sandbox" ? "plt-k8s-tf39-sb" : module.helpers.environment == "production" ? "plt-k8s-tf10-prod" : "plt-k8s-tf33-nonprod"
Expand Down

0 comments on commit 9e8a9e6

Please sign in to comment.