From 22bf985245ed85a3bfe6eea57de7026df83b49a4 Mon Sep 17 00:00:00 2001 From: Jacopo Carlini Date: Wed, 8 Jan 2025 10:57:58 +0100 Subject: [PATCH] alert revision printit --- src/domains/printit-app/00_alerts.tf | 8 ++++---- src/domains/printit-app/README.md | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/domains/printit-app/00_alerts.tf b/src/domains/printit-app/00_alerts.tf index fde084f4dd..7e9e414eda 100644 --- a/src/domains/printit-app/00_alerts.tf +++ b/src/domains/printit-app/00_alerts.tf @@ -14,7 +14,7 @@ resource "azurerm_monitor_scheduled_query_rules_alert" "pagopa-print-payment-not data_source_id = data.azurerm_api_management.apim.id description = "Response time for /print-payment-notice-service is 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-print-payment-notice-service" - enabled = true + enabled = false query = (<<-QUERY let threshold = 1500; AzureDiagnostics @@ -254,7 +254,7 @@ resource "azurerm_monitor_scheduled_query_rules_alert" "generate-pdf-engine-gene } data_source_id = data.azurerm_api_management.apim.id description = "Response time for /generate-pdf is less than or equal to 5s" - enabled = true + enabled = false query = (<<-QUERY let threshold = 5000; AzureDiagnostics @@ -287,10 +287,10 @@ resource "azurerm_monitor_scheduled_query_rules_alert" "pagopa-pdf-engine-pdf-av custom_webhook_payload = "{}" } data_source_id = data.azurerm_api_management.apim.id - description = "Availability for /generate-pdf is less than or equal to 99%" + description = "Availability for /generate-pdf is less than or equal to 90%" enabled = true query = (<<-QUERY -let threshold = 0.99; +let threshold = 0.90; AzureDiagnostics | where url_s matches regex "/generate-pdf" | summarize diff --git a/src/domains/printit-app/README.md b/src/domains/printit-app/README.md index a649ffcd00..8751fa8085 100644 --- a/src/domains/printit-app/README.md +++ b/src/domains/printit-app/README.md @@ -255,7 +255,7 @@ No outputs. | [ingress\_load\_balancer\_ip](#input\_ingress\_load\_balancer\_ip) | ## Aks | `string` | n/a | yes | | [instance](#input\_instance) | One of beta, prod01, prod02 | `string` | n/a | yes | | [io\_backend\_base\_path](#input\_io\_backend\_base\_path) | io backend api base path | `string` | `null` | no | -| [is\_feature\_enabled](#input\_is\_feature\_enabled) | n/a |
object({
pdf_engine = bool
printit = bool
})
|
{
"pdf_engine": false,
"printit": false
}
| no | +| [is\_feature\_enabled](#input\_is\_feature\_enabled) | n/a |
object({
pdf_engine = bool
printit = bool
})
|
{
"pdf_engine": false,
"printit": false
}
| no | | [k8s\_kube\_config\_path\_prefix](#input\_k8s\_kube\_config\_path\_prefix) | n/a | `string` | `"~/.kube"` | no | | [location](#input\_location) | One of westeurope, northeurope | `string` | n/a | yes | | [location\_short](#input\_location\_short) | One of wue, neu | `string` | n/a | yes | @@ -269,9 +269,9 @@ No outputs. | [payment\_wallet\_migrations\_enabled](#input\_payment\_wallet\_migrations\_enabled) | Payment wallet migrations enabled | `bool` | `false` | no | | [payment\_wallet\_with\_pm\_enabled](#input\_payment\_wallet\_with\_pm\_enabled) | payment wallet using Payment Manager | `bool` | `false` | no | | [pdv\_api\_base\_path](#input\_pdv\_api\_base\_path) | Personal data vault api base path | `string` | `null` | no | -| [pod\_disruption\_budgets](#input\_pod\_disruption\_budgets) | Pod disruption budget for domain namespace |
map(object({
name = optional(string, null)
minAvailable = optional(number, null)
matchLabels = optional(map(any), {})
}))
| `{}` | no | +| [pod\_disruption\_budgets](#input\_pod\_disruption\_budgets) | Pod disruption budget for domain namespace |
map(object({
name = optional(string, null)
minAvailable = optional(number, null)
matchLabels = optional(map(any), {})
}))
| `{}` | no | | [prefix](#input\_prefix) | n/a | `string` | n/a | yes | -| [tags](#input\_tags) | n/a | `map(any)` |
{
"CreatedBy": "Terraform"
}
| no | +| [tags](#input\_tags) | n/a | `map(any)` |
{
"CreatedBy": "Terraform"
}
| no | ## Outputs