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

[IOPLT-641] Add opex alarms for trial-system #1143

Merged
merged 5 commits into from
Jul 25, 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
23 changes: 23 additions & 0 deletions .github/workflows/opex_api_trial_system.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Opex Dashboard api_trial_system

on:
push:
branches:
- master
paths:
- 'openapi/generated/api_trial_system.yaml'
- '.github/workflows/opex_api_trial_system.yml'
- '.opex/api_trial_system/**'

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}

jobs:
apply:
uses: ./.github/workflows/call_opex_api.yml
name: Apply changes to Production
secrets: inherit
with:
api_name: api_trial_system
31 changes: 31 additions & 0 deletions .github/workflows/pr_opex_api_trial_system.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: PR - Opex Dashboard api_trial_system

on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened
branches:
- master
paths:

- 'openapi/generated/api_trial_system.yaml'
- '.github/workflows/pr_opex_api_trial_system.yml'
- '.github/workflows/opex_api_trial_system.yml'
- '.opex/api_trial_system/**'

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: false

jobs:
plan:
uses: ./.github/workflows/call_pr_opex_api.yml
name: Plan changes against Production
secrets: inherit
with:
api_name: api_trial_system
1 change: 1 addition & 0 deletions .opex/api_trial_system/env/prod/backend.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
subscription=PROD-IO
4 changes: 4 additions & 0 deletions .opex/api_trial_system/env/prod/backend.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource_group_name = "terraform-state-rg"
storage_account_name = "tfappprodio"
container_name = "terraform-state"
key = "opex.io-backend.api_trial_system.tfstate"
14 changes: 14 additions & 0 deletions .opex/api_trial_system/env/prod/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
oa3_spec: openapi/generated/api_trial_system.yaml
name: opex_iobackend_api_trial_system
location: Italy North
timespan: 5m
evaluation_frequency: 10
evaluation_time_window: 30
event_occurrences: 4 # After 5*4=20 min
data_source: /subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-external/providers/Microsoft.Network/applicationGateways/io-p-appgateway
action_groups:
- /subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/ts-p-itn-monitor-rg-01/providers/Microsoft.Insights/actiongroups/ioptrialsystemerror
overrides:
hosts:
- app-backend.io.italia.it
- api-app.io.pagopa.it
10 changes: 10 additions & 0 deletions .opex/api_trial_system/env/prod/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
prefix = "ts"
env_short = "p"

tags = {
CreatedBy = "Terraform"
Environment = "Prod"
Owner = "trial-system"
Source = "https://github.com/pagopa/io-backend"
CostCenter = "TS310 - PAGAMENTI & SERVIZI"
}
Loading