feat: update monitoring parameters for LiteLLM and Typesense, add notification prompts#14
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
There was a problem hiding this comment.
Pull request overview
This PR updates monitoring alert configurations for LiteLLM and Typesense services by adding notification_prompts parameters and adjusting the default duration values for pod restart alerts from 0 to 120 seconds. However, it also inadvertently removes the alignment_period field from Typesense while retaining it in LiteLLM, creating an inconsistency.
Key Changes:
- Added
notification_promptsparameter with default value["OPENED", "CLOSED"]for both LiteLLM and Typesense pod restart alerts - Changed default
durationfrom 0 to 120 seconds for pod restart monitoring in both services - Removed
alignment_periodfrom Typesense configuration (but not from LiteLLM) - Removed inline comments explaining configuration sections
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| variables.tf | Updated typesense and litellm variable definitions to add notification_prompts parameter and adjust duration default; removed alignment_period from Typesense |
| typesense.tf | Added notification_prompts field to alert strategy configuration |
| lite_llm.tf | Added notification_prompts field to alert strategy configuration |
| README.md | Updated documentation to reflect new parameters and default values |
| CHANGELOG.md | Documented changes in version 0.9.0 release notes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…ification prompts
64ea4f8 to
c7872e1
Compare
|
/improve |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/improve |
|
/improve |
PR Code Suggestions ✨Latest suggestions up to 07553ad
Previous suggestionsSuggestions up to commit 64ea4f8
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| threshold = optional(number, 0) | ||
| alignment_period = optional(number, 60) | ||
| duration = optional(number, 0) | ||
| duration = optional(number, 180) |
There was a problem hiding this comment.
The PR title and description mention changing the default duration from 0 to 120 seconds, but the actual code changes it to 180 seconds. This inconsistency should be corrected - either update the title/description to reflect 180 seconds, or change the code to use 120 seconds as stated.
| duration = optional(number, 180) | |
| duration = optional(number, 120) |
| threshold = optional(number, 0) | ||
| alignment_period = optional(number, 60) | ||
| duration = optional(number, 0) | ||
| duration = optional(number, 180) |
There was a problem hiding this comment.
The PR title and description mention changing the default duration from 0 to 120 seconds, but the actual code changes it to 180 seconds. This inconsistency should be corrected - either update the title/description to reflect 180 seconds, or change the code to use 120 seconds as stated.
| duration = optional(number, 180) | |
| duration = optional(number, 120) |
| duration = optional(number, 0) | ||
| duration = optional(number, 180) | ||
| auto_close_seconds = optional(number, 3600) | ||
| notification_prompts = optional(list(string), null) |
There was a problem hiding this comment.
The default value for notification_prompts in the README is documented as ["OPENED", "CLOSED"], but in the variables.tf file it's defined as null. These should be consistent. If the default should be ["OPENED", "CLOSED"], update the variable definition. If it should be null, update the README documentation.
| notification_prompts = optional(list(string), null) | |
| notification_prompts = optional(list(string), ["OPENED", "CLOSED"]) |
PR Type
Enhancement
Description
Add
notification_promptsparameter to pod restart alerts for LiteLLM and TypesenseUpdate default
durationvalue from 0 to 120 seconds for pod restart monitoringRemove
alignment_periodparameter from Typesense configurationClean up inline comments in variable definitions
Diagram Walkthrough
File Walkthrough
variables.tf
Update pod restart alert parameters and defaultsvariables.tf
notification_promptsparameter with default["OPENED", "CLOSED"]for both LiteLLM and Typesense pod restart alerts
durationfrom 0 to 120 seconds for pod restartmonitoring
alignment_periodparameter from Typesensepod_restartconfiguration
lite_llm.tf
Add notification prompts to LiteLLM pod restart alertslite_llm.tf
notification_promptsfield to alert strategy block using valuefrom
pod_restartconfigurationtypesense.tf
Add notification prompts to Typesense pod restart alertstypesense.tf
notification_promptsfield to alert strategy block using valuefrom
pod_restartconfigurationCHANGELOG.md
Document version 0.9.0 release changesCHANGELOG.md
notification_promptsparameterdurationandalignment_periodvaluesREADME.md
Update input variable documentation for LiteLLM and TypesenseREADME.md
durationdefault (120) and
notification_promptsparameterdurationdefault (120), removed
alignment_period, and addednotification_promptsparameter