Skip to content

Enhance metric alerts observability#8232

Open
jonathanawesome wants to merge 9 commits into
mainfrom
enhance-metric-alerts-observability
Open

Enhance metric alerts observability#8232
jonathanawesome wants to merge 9 commits into
mainfrom
enhance-metric-alerts-observability

Conversation

@jonathanawesome

Copy link
Copy Markdown
Member

This PR adds observability to the metric-alert evaluator without changing evaluation behavior. It attaches rule-intent attributes to the evaluate-group span (metric and threshold types, whether a saved filter is applied, and whether the query fetched the previous window or percentile columns) so a slow trace is identifiable in TraceQL without reading the raw db.query.

On the Metric Alerts dashboard it adds two panels tracking the filtered-vs-unfiltered rule and group population over time, and surfaces the cost-driver attributes as columns on the existing "Slow target groups" trace table so we can see why a given group is slow.

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
hive 11.7.0-alpha-20260718001724-05ed5e966231fccca5a5b24ec6a9efc817a65e02 npm ↗︎ unpkg ↗︎

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces new Prometheus gauges to track enabled rules and query groups split by whether they use filters, along with corresponding panels in the Grafana dashboard. It also optimizes filter condition parsing during rule evaluation and adds more granular span attributes to tracing spans. The review feedback points out a violation of the repository style guide, as the pull request modifies services and dashboards but is missing a changeset for the hive scope.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread packages/services/workflows/src/metrics.ts
@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

🐋 This PR was built and pushed to the following Docker images:

Targets: build

Platforms: linux/amd64

Image Tags: 11.7.0-alpha-05ed5e9, 05ed5e9, 05ed5e966231fccca5a5b24ec6a9efc817a65e02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant