-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: remove unsupported and add log analytics workspace #1425
Conversation
📝 WalkthroughWalkthroughThe pull request updates the diagnostic configuration for an Azure API Management instance. It removes the existing Changes
Sequence Diagram(s)sequenceDiagram
participant APIM as API Management
participant MSD as Monitor Diagnostic Setting
participant LA as Log Analytics Workspace
APIM->>MSD: Generate logs and metrics
MSD->>LA: Forward logs and metrics
Possibly related PRs
Suggested reviewers
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Terraform environment testFormat and Style 🖌
|
Context | Values |
---|---|
Pusher | @tjololo |
Action | push |
Working Directory | ./infrastructure/adminservices-test/altinn-apim-test-rg |
State File | github.com/altinn/altinn-platform/environments/test/altinn-apim-test-rg.tfstate |
Plan File | github.com_altinn_altinn-platform_environments_test_altinn-apim-test-rg.tfstate.tfplan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
infrastructure/adminservices-test/altinn-apim-test-rg/analytics.tf (1)
79-86
: New Log Analytics Workspace Configuration
The newazurerm_log_analytics_workspace
resource is set up with the SKU"PerGB2018"
and a retention period of 7 days. Confirm that these settings align with your monitoring and compliance requirements. Optionally, consider parameterizingretention_in_days
to allow easier adjustments for different environments or future changes.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
infrastructure/adminservices-test/altinn-apim-test-rg/analytics.tf
(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Analyze (go)
🔇 Additional comments (1)
infrastructure/adminservices-test/altinn-apim-test-rg/analytics.tf (1)
18-28
: New Diagnostic Settings Resource
The newazurerm_monitor_diagnostic_setting
resource is configured to forward "GatewayLogs" (logs) and "AllMetrics" (metrics) from the API Management instance to the Log Analytics workspace. Please verify that these categories are supported for your specific API Management instance and that no additional options (such as retention policies) are required in your operational context.
Description
Azuremonitor setup isn't really supported it seems. Add LAW and diagnosticsettings to ease the clickops journey
Related Issue(s)
Verification
Documentation
Summary by CodeRabbit