Skip to content

fix(observability): a sql alert omits the promql condition entirely - #332

Merged
rldyourmnd merged 1 commit into
mainfrom
fix/sql-alert-omits-promql-condition
Sep 1, 2026
Merged

fix(observability): a sql alert omits the promql condition entirely#332
rldyourmnd merged 1 commit into
mainfrom
fix/sql-alert-omits-promql-condition

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

The first live apply of the tenant overlay returned 422: OpenObserve refuses promql_condition with an empty operator, which is exactly what the zero struct serialized on sql alerts. PromQLCondition is now a pointer set only on the promql path (omitempty drops it for sql). Applied live: both anton_ alerts created, read-back converged (state: managed), 30 managed alerts total.

https://claude.ai/code/session_01LsGid6U5RrQdFvJmvYdGCF

OpenObserve refuses to deserialize an empty operator, and the zero-value
promql_condition a sql alert carried had exactly that. The condition is
now a pointer set only on the promql path; the first live apply of the
tenant overlay found this with a 422 and converged once omitted -- both
anton_ alerts are live and read back equal.

Claude-Session: https://claude.ai/code/session_01LsGid6U5RrQdFvJmvYdGCF
@rldyourmnd
rldyourmnd merged commit d6b1919 into main Sep 1, 2026
10 checks passed
@rldyourmnd
rldyourmnd deleted the fix/sql-alert-omits-promql-condition branch September 1, 2026 17:25
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.

1 participant