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

Various updates to Observability Library #1022

Merged
merged 4 commits into from
Feb 5, 2025
Merged

Various updates to Observability Library #1022

merged 4 commits into from
Feb 5, 2025

Conversation

leeyikjiun
Copy link
Collaborator

@leeyikjiun leeyikjiun commented Feb 4, 2025

  • Fix alert query type not instant when the query is instant
  • Add disable resolve message and uid to contact point
  • Add stacking mode to time series panel
  • Add multi and include all to custom variable
  • Use csv when the variable key and value is the same
  • Fix delete notification template status code should be 204
  • Add annotations to alerts
  • Derive notification templates name from file name

Example of variable values:
Before:
crit : crit , error : error , warn : warn , info : info , debug : debug
After:
error, warn, info, debug, crit

Requires

Supports

- Fix alert query type not instant when the query is instant
- Add disable resolve message and uid to contact point
- Add stacking mode to time series panel
- Add multi and include all to custom variable
- Use csv when the variable key and value is the same
- Fix delete notification template status code should be 204
- Add annotations to alerts
- Derive notification templates name from file name
Comment on lines 15 to 17
if fileName == "notification-templates" {
fileName = "chainlink"
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this necessary ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because I'm using the filename as the template name. So a dev-platform-por.yaml will end up becoming dev-platform-por-slack-notification-template.

We can rename notification-templates.yaml to chainlink.yaml as well. Either way is fine.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes remove that logic I think better to rename file

Atrax1
Atrax1 previously approved these changes Feb 4, 2025
@Atrax1
Copy link
Collaborator

Atrax1 commented Feb 4, 2025

@leeyikjiun Some test to fix as well

Copy link
Collaborator

@Atrax1 Atrax1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

@leeyikjiun leeyikjiun self-assigned this Feb 4, 2025
@Atrax1 Atrax1 requested review from jmank88, patrickhuie19 and a team February 4, 2025 16:06
@@ -45,7 +45,7 @@ func (c *Client) DeleteNotificationTemplate(name string) (DeleteNotificationTemp
}

statusCode := resp.StatusCode()
if statusCode != 200 {
if statusCode != 204 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if statusCode != 204 {
if statusCode != http.StatusNoContent {

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great suggestion! Let me fix all the status codes in one go in another PR. cc @Atrax1

@Atrax1 Atrax1 merged commit 8f50d72 into main Feb 5, 2025
12 checks passed
@Atrax1 Atrax1 deleted the update-obs-lib branch February 5, 2025 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants