Skip to content

Commit

Permalink
[PPANTT-190] fix: Typo mdb -> mbd
Browse files Browse the repository at this point in the history
  • Loading branch information
svariant committed Dec 2, 2024
1 parent ef26540 commit 398e7b7
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
34 changes: 17 additions & 17 deletions src/domains/ebollo-app/00_alerts.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## MDB Service ##
## MBD Service ##

resource "azurerm_monitor_scheduled_query_rules_alert" "pagopa-mdb-service-get-mdb-responsetime-upd" {
resource "azurerm_monitor_scheduled_query_rules_alert" "pagopa-mbd-service-get-mbd-responsetime-upd" {
count = var.env_short == "p" ? 1 : 0
resource_group_name = "dashboards"
name = "pagopa-${var.env_short}-pagopa-ebollo-mdb-service-get-mdb-rest-responsetime @ _pagopa-mdb-service"
name = "pagopa-${var.env_short}-pagopa-ebollo-mbd-service-get-mbd-rest-responsetime @ _pagopa-mbd-service"
location = var.location

action {
Expand All @@ -13,12 +13,12 @@ resource "azurerm_monitor_scheduled_query_rules_alert" "pagopa-mdb-service-get-m
}

data_source_id = data.azurerm_api_management.apim.id
description = "Response time for /mdb less than or equal to 1.5s - https://portal.azure.com/?l=en.en-us#@pagopait.onmicrosoft.com/dashboard/arm/subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourcegroups/dashboards/providers/microsoft.portal/dashboards/pagopa-p-opex_pagopa-mdb-service"
description = "Response time for /mbd less than or equal to 1.5s - https://portal.azure.com/?l=en.en-us#@pagopait.onmicrosoft.com/dashboard/arm/subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourcegroups/dashboards/providers/microsoft.portal/dashboards/pagopa-p-opex_pagopa-mbd-service"
enabled = true
query = (<<-QUERY
let threshold = 1500;
AzureDiagnostics
| where url_s matches regex "/mdb"
| where url_s matches regex "/mbd"
| summarize
watermark=threshold,
duration_percentile_95=percentiles(DurationMs, 95) by bin(TimeGenerated, 5m)
Expand All @@ -34,10 +34,10 @@ AzureDiagnostics
}
}

resource "azurerm_monitor_scheduled_query_rules_alert" "pagopa-mdb-service-get-mdb-rest-availability-upd" {
resource "azurerm_monitor_scheduled_query_rules_alert" "pagopa-mbd-service-get-mbd-rest-availability-upd" {
count = var.env_short == "p" ? 1 : 0
resource_group_name = "dashboards"
name = "pagopa-${var.env_short}-pagopa-mdb-service-get-mdb-rest-availability @ _pagopa-mdb-service"
name = "pagopa-${var.env_short}-pagopa-mbd-service-get-mbd-rest-availability @ _pagopa-mbd-service"
location = var.location

action {
Expand All @@ -47,12 +47,12 @@ resource "azurerm_monitor_scheduled_query_rules_alert" "pagopa-mdb-service-get-m
}

data_source_id = data.azurerm_api_management.apim.id
description = "Availability for /mdb is less than or equal to 99% - https://portal.azure.com/?l=en.en-us#@pagopait.onmicrosoft.com/dashboard/arm/subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourcegroups/dashboards/providers/microsoft.portal/dashboards/pagopa-p-opex_pagopa-mdb-service"
description = "Availability for /mbd is less than or equal to 99% - https://portal.azure.com/?l=en.en-us#@pagopait.onmicrosoft.com/dashboard/arm/subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourcegroups/dashboards/providers/microsoft.portal/dashboards/pagopa-p-opex_pagopa-mbd-service"
enabled = true
query = (<<-QUERY
let threshold = 0.99;
AzureDiagnostics
| where url_s matches regex "/mdb'"
| where url_s matches regex "/mbd'"
| summarize
Total=count(),
Success=count(responseCode_d < 500)
Expand All @@ -70,10 +70,10 @@ AzureDiagnostics
}
}

resource "azurerm_monitor_scheduled_query_rules_alert" "pagopa-mdb-service-get-mdb-payment-responsetime-upd" {
resource "azurerm_monitor_scheduled_query_rules_alert" "pagopa-mbd-service-get-mbd-payment-responsetime-upd" {
count = var.env_short == "p" ? 1 : 0
resource_group_name = "dashboards"
name = "pagopa-${var.env_short}-pagopa-ebollo-mdb-service-get-mdb-payment-rest-responsetime @ _pagopa-mdb-service"
name = "pagopa-${var.env_short}-pagopa-ebollo-mbd-service-get-mbd-payment-rest-responsetime @ _pagopa-mbd-service"
location = var.location

action {
Expand All @@ -83,12 +83,12 @@ resource "azurerm_monitor_scheduled_query_rules_alert" "pagopa-mdb-service-get-m
}

data_source_id = data.azurerm_api_management.apim.id
description = "Response time for /mdb-payment less than or equal to 1.5s - https://portal.azure.com/?l=en.en-us#@pagopait.onmicrosoft.com/dashboard/arm/subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourcegroups/dashboards/providers/microsoft.portal/dashboards/pagopa-p-opex_pagopa-mdb-service"
description = "Response time for /mbd-payment less than or equal to 1.5s - https://portal.azure.com/?l=en.en-us#@pagopait.onmicrosoft.com/dashboard/arm/subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourcegroups/dashboards/providers/microsoft.portal/dashboards/pagopa-p-opex_pagopa-mbd-service"
enabled = true
query = (<<-QUERY
let threshold = 1500;
AzureDiagnostics
| where url_s matches regex "/mdb-payment"
| where url_s matches regex "/mbd-payment"
| summarize
watermark=threshold,
duration_percentile_95=percentiles(DurationMs, 95) by bin(TimeGenerated, 5m)
Expand All @@ -104,10 +104,10 @@ AzureDiagnostics
}
}

resource "azurerm_monitor_scheduled_query_rules_alert" "pagopa-mdb-service-get-mdb-payment-rest-availability-upd" {
resource "azurerm_monitor_scheduled_query_rules_alert" "pagopa-mbd-service-get-mbd-payment-rest-availability-upd" {
count = var.env_short == "p" ? 1 : 0
resource_group_name = "dashboards"
name = "pagopa-${var.env_short}-pagopa-mdb-service-get-mdb-payment-rest-availability @ _pagopa-mdb-service"
name = "pagopa-${var.env_short}-pagopa-mbd-service-get-mbd-payment-rest-availability @ _pagopa-mbd-service"
location = var.location

action {
Expand All @@ -117,12 +117,12 @@ resource "azurerm_monitor_scheduled_query_rules_alert" "pagopa-mdb-service-get-m
}

data_source_id = data.azurerm_api_management.apim.id
description = "Availability for /mdb-payment is less than or equal to 99% - https://portal.azure.com/?l=en.en-us#@pagopait.onmicrosoft.com/dashboard/arm/subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourcegroups/dashboards/providers/microsoft.portal/dashboards/pagopa-p-opex_pagopa-mdb-service"
description = "Availability for /mbd-payment is less than or equal to 99% - https://portal.azure.com/?l=en.en-us#@pagopait.onmicrosoft.com/dashboard/arm/subscriptions/b9fc9419-6097-45fe-9f74-ba0641c91912/resourcegroups/dashboards/providers/microsoft.portal/dashboards/pagopa-p-opex_pagopa-mbd-service"
enabled = true
query = (<<-QUERY
let threshold = 0.99;
AzureDiagnostics
| where url_s matches regex "/mdb-payment'"
| where url_s matches regex "/mbd-payment'"
| summarize
Total=count(),
Success=count(responseCode_d < 500)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
locals {
apim_mdb_pagopa_api = {
display_name = "MDB Product pagoPA"
description = "API for MDB"
display_name = "MBD Product pagoPA"
description = "API for MBD"
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/domains/ebollo-app/05_subkey.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ resource "azurerm_api_management_subscription" "nodo_subkey" {
api_management_name = data.azurerm_api_management.apim.name
resource_group_name = data.azurerm_api_management.apim.resource_group_name
product_id = data.azurerm_api_management_product.apim_node_for_psp_product.id
display_name = "Subscription MDB Node for PSP APIM"
display_name = "Subscription MBD Node for PSP APIM"
allow_tracing = false
state = "active"
}
Expand All @@ -11,7 +11,7 @@ resource "azurerm_api_management_subscription" "carts_subkey" {
api_management_name = data.azurerm_api_management.apim.name
resource_group_name = data.azurerm_api_management.apim.resource_group_name
product_id = data.azurerm_api_management_product.apim_carts_product.id
display_name = "Subscription MDB for Cart APIM"
display_name = "Subscription MBD for Cart APIM"
allow_tracing = false
state = "active"
}
Expand All @@ -20,7 +20,7 @@ resource "azurerm_api_management_subscription" "payments_subkey" {
api_management_name = data.azurerm_api_management.apim.name
resource_group_name = data.azurerm_api_management.apim.resource_group_name
product_id = data.azurerm_api_management_product.apim_gpd_payments_rest.id
display_name = "Subscription MDB for Payments APIM"
display_name = "Subscription MBD for Payments APIM"
allow_tracing = false
state = "active"
}
4 changes: 2 additions & 2 deletions src/domains/ebollo-app/env/itn-prod/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ apim_dns_zone_prefix = "platform"
ingress_load_balancer_ip = "10.3.2.250"

pod_disruption_budgets = {
"mdb-service" = {
"mbd-service" = {
minAvailable = 2
matchLabels = {
"app.kubernetes.io/instance" = "mdb-service"
"app.kubernetes.io/instance" = "mbd-service"
}
},
}
2 changes: 1 addition & 1 deletion src/domains/nodo-app/07_gh_runner.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module "gh_runner_job" {
},
{
name : "pagopa-mbd"
short_name : "mdb"
short_name : "mbd"
}
]
job = {
Expand Down

0 comments on commit 398e7b7

Please sign in to comment.