Skip to content

apollo_dashboard: format pod alerts using metric structs + fix conflict test#13295

Merged
Itay-Tsabary-Starkware merged 1 commit intomain-v0.14.2from
03-16-apollo_dashboard_format_pod_alerts_using_metric_structs_fix_conflict_test
Mar 18, 2026
Merged

apollo_dashboard: format pod alerts using metric structs + fix conflict test#13295
Itay-Tsabary-Starkware merged 1 commit intomain-v0.14.2from
03-16-apollo_dashboard_format_pod_alerts_using_metric_structs_fix_conflict_test

Conversation

@Itay-Tsabary-Starkware
Copy link
Copy Markdown
Collaborator

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware commented Mar 16, 2026

Note

Medium Risk
Changes the PromQL strings used by pod-related infra alerts to be generated via metric structs/scoped filtering, which could affect alert firing if query formatting differs. Also broadens the global metric-name de-duplication test and updates metric scopes, which may cause CI failures if any downstream crates have conflicting names.

Overview
Refactors pod infra alert queries to use apollo_metrics::define_metrics! + MetricQueryName helpers instead of hand-built strings and ad-hoc label-filter suffix replacement (notably for CrashLoopBackOff).

Expands the metric-name duplication test to include additional component metric lists (including new Pod metrics, Tokio metrics, and transaction-converter exports), and updates MetricScope to include Pod (and reorder CompileToCasm).

Updates apollo_dashboard dev-dependencies to include additional crates needed for the expanded metric test.

Written by Cursor Bugbot for commit d76e2ba. This will update automatically on new commits. Configure here.

@reviewable-StarkWare
Copy link
Copy Markdown

This change is Reviewable

Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Comment thread crates/apollo_dashboard/src/alert_scenarios/infra_alerts.rs Outdated
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware force-pushed the 03-16-apollo_dashboard_format_pod_alerts_using_metric_structs_fix_conflict_test branch from 08ebc89 to d76e2ba Compare March 17, 2026 09:50
Copy link
Copy Markdown
Collaborator

@nadin-Starkware nadin-Starkware left a comment

Choose a reason for hiding this comment

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

@nadin-Starkware reviewed 4 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on Itay-Tsabary-Starkware).

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware added this pull request to the merge queue Mar 18, 2026
Merged via the queue into main-v0.14.2 with commit 08d21e1 Mar 18, 2026
20 of 31 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants