[DIT-218] 5xx 에러율 디스코드 알림 형식 개선#274
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: adb010d1a7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| title: '{{ if eq .CommonLabels.alertname "[CRITICAL] 5xx 에러율 1% 초과" }}{{ if eq .Status "firing" }}{{ .CommonLabels.alertname }}{{ else }}[RESOLVED] 5xx 에러율 정상화{{ end }}{{ else }}{{ if eq .Status "firing" }}{{ else }}[복구] {{ end }}{{ .CommonLabels.alertname }}{{ end }}' | ||
| message: | | ||
| {{ if eq .CommonLabels.alertname "[CRITICAL] 5xx 에러율 1% 초과" }} | ||
| {{ $notificationStatus := .Status }} |
There was a problem hiding this comment.
Escape Go-template variables in contact point settings
When Grafana provisions contact point settings, it expands $variable references before storing the template; with no notificationStatus environment variable, this becomes {{ := .Status }} (and the later eq $notificationStatus is also stripped), leaving an invalid notification template. In the normal prod provisioning path this can break Discord notifications for this receiver; use $$notificationStatus or avoid the local variable.
Useful? React with 👍 / 👎.
구분
요약
변경사항
1. 5xx 에러율 알림 규칙 정리
다.
2. Discord 발생 알림 개선
5xx Rate를 백분율로 표시합니다.3. Discord 정상화 알림 개선
Duration을 추가했습니다.