Altinn / altinn-platform

Altinn Platform infrastructure
6 stars 1 forks source link

Separate operational, application, security logging and put logdata in service owner subscription #784

Closed bengtfredh closed 1 week ago

bengtfredh commented 4 months ago

We will separate operational logging from application logging. Operational logging will be placed in separate log analytics workspace dedicated to each service owner. This makes it easier for cost analysis and access management.

More info

Reference

### Tasks
- [x] Add new resource group in service owner subscription for resources that is accessible for service owner
- [x] Create new log analytics workspaces (application,operational) in service owner resource group
- [x] Set up permissions for serviceowner account on monitor resourcegroup or workspaces
- [x] Send operational logs to newly created log analytics workspace
- [x] Add azure monitoring workspace
- [x] Move service owner ai to new resource group to collect all monitoring in 1 rg
- [x] Configure application insight to store logs in new law
- [x] Create managed grafana for each subscription (most practical because of cost and permission on metrics data)
- [x] Set up permissions on managed grafana
- [x] -- Grafana Admin - platform team
- [x] -- Grafana Editor - developer teams, service owner
- [x] Rewrite existing podmonitors and servicemonitors
- [x] Add dashboards to managed grafana
- [x] Remove kube-prometheus-stack
- [x] Delete storage accounts used for kube-prometheus-stack
- [x] Redirect https://\<org\>.apps.\<env\>.altinn.cloud/monitor to Azure Manged Grafana ref: https://ttd.apps.at21.altinn.cloud/monitor
- [ ] https://github.com/Altinn/altinn-platform/issues/811

Notes

Deployment

### Tasks
- [x] at_ring1
- [x] at_ring2
- [x] tt_ring1
- [x] tt_ring2
- [x] prod_ring1
- [x] prod_ring2
bengtfredh commented 1 month ago

Waiting to deploy prod to after @bengtfredh is back from vacation. It is not preferable to deploy something this big to production the day before vacation