Skip to content

Commit

Permalink
chore(printit): Alert revision (#2706)
Browse files Browse the repository at this point in the history
alert revision printit
  • Loading branch information
jacopocarlini authored Jan 8, 2025
1 parent 9c9c8af commit 3f62dd4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/domains/printit-app/00_alerts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/domains/printit-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ No outputs.
| <a name="input_ingress_load_balancer_ip"></a> [ingress\_load\_balancer\_ip](#input\_ingress\_load\_balancer\_ip) | ## Aks | `string` | n/a | yes |
| <a name="input_instance"></a> [instance](#input\_instance) | One of beta, prod01, prod02 | `string` | n/a | yes |
| <a name="input_io_backend_base_path"></a> [io\_backend\_base\_path](#input\_io\_backend\_base\_path) | io backend api base path | `string` | `null` | no |
| <a name="input_is_feature_enabled"></a> [is\_feature\_enabled](#input\_is\_feature\_enabled) | n/a | <pre>object({<br/> pdf_engine = bool<br/> printit = bool<br/> })</pre> | <pre>{<br/> "pdf_engine": false,<br/> "printit": false<br/>}</pre> | no |
| <a name="input_is_feature_enabled"></a> [is\_feature\_enabled](#input\_is\_feature\_enabled) | n/a | <pre>object({<br> pdf_engine = bool<br> printit = bool<br> })</pre> | <pre>{<br> "pdf_engine": false,<br> "printit": false<br>}</pre> | no |
| <a name="input_k8s_kube_config_path_prefix"></a> [k8s\_kube\_config\_path\_prefix](#input\_k8s\_kube\_config\_path\_prefix) | n/a | `string` | `"~/.kube"` | no |
| <a name="input_location"></a> [location](#input\_location) | One of westeurope, northeurope | `string` | n/a | yes |
| <a name="input_location_short"></a> [location\_short](#input\_location\_short) | One of wue, neu | `string` | n/a | yes |
Expand All @@ -269,9 +269,9 @@ No outputs.
| <a name="input_payment_wallet_migrations_enabled"></a> [payment\_wallet\_migrations\_enabled](#input\_payment\_wallet\_migrations\_enabled) | Payment wallet migrations enabled | `bool` | `false` | no |
| <a name="input_payment_wallet_with_pm_enabled"></a> [payment\_wallet\_with\_pm\_enabled](#input\_payment\_wallet\_with\_pm\_enabled) | payment wallet using Payment Manager | `bool` | `false` | no |
| <a name="input_pdv_api_base_path"></a> [pdv\_api\_base\_path](#input\_pdv\_api\_base\_path) | Personal data vault api base path | `string` | `null` | no |
| <a name="input_pod_disruption_budgets"></a> [pod\_disruption\_budgets](#input\_pod\_disruption\_budgets) | Pod disruption budget for domain namespace | <pre>map(object({<br/> name = optional(string, null)<br/> minAvailable = optional(number, null)<br/> matchLabels = optional(map(any), {})<br/> }))</pre> | `{}` | no |
| <a name="input_pod_disruption_budgets"></a> [pod\_disruption\_budgets](#input\_pod\_disruption\_budgets) | Pod disruption budget for domain namespace | <pre>map(object({<br> name = optional(string, null)<br> minAvailable = optional(number, null)<br> matchLabels = optional(map(any), {})<br> }))</pre> | `{}` | no |
| <a name="input_prefix"></a> [prefix](#input\_prefix) | n/a | `string` | n/a | yes |
| <a name="input_tags"></a> [tags](#input\_tags) | n/a | `map(any)` | <pre>{<br/> "CreatedBy": "Terraform"<br/>}</pre> | no |
| <a name="input_tags"></a> [tags](#input\_tags) | n/a | `map(any)` | <pre>{<br> "CreatedBy": "Terraform"<br>}</pre> | no |

## Outputs

Expand Down

0 comments on commit 3f62dd4

Please sign in to comment.