Skip to content

Fix alert rules and prometheus config for stackdriver metrics#58

Merged
shlbatra merged 1 commit into
mainfrom
fix/observability-alert-rules
Jul 1, 2026
Merged

Fix alert rules and prometheus config for stackdriver metrics#58
shlbatra merged 1 commit into
mainfrom
fix/observability-alert-rules

Conversation

@shlbatra

@shlbatra shlbatra commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Updated all alert rules in alert_rules.yml to use stackdriver_* metric names (replaced old fastapi_fastapi_* and dataflow_job_user_counter references that no longer exist after the Cloud Monitoring migration)
  • Removed otel-collector scrape target from prometheus.yml (OTel Collector is behind local-dev profile, was showing as DOWN)

Alert Rule Changes

Old Alert New Alert Metric Source
HighPredictionErrorRate (fastapi_fastapi_*) HighCloudRunErrorRate Cloud Run 5xx rate
NoPredictionsFlowing (fastapi_fastapi_*) NoPredictionsFlowing Dataflow prediction_success
HighPredictionLatency (fastapi_fastapi_*) HighPredictionLatency Dataflow prediction_latency_ms_mean
FeatureFetchFailureSpike (dataflow_job_user_counter) FeatureFetchFailureSpike fetch_failure + fetch_retry
HighParseErrorRate (dataflow_job_user_counter) ParseToFetchDropoff parse vs fetch success ratio
PredictionBatchFailureSpike (dataflow_job_user_counter) PredictionRetrySpike prediction_retry

Cost-attribution alerts were already using correct stackdriver_* names — unchanged.

Test plan

🤖 Generated with Claude Code

Alert rules used old metric names (fastapi_fastapi_*, dataflow_job_user_counter)
that no longer exist after switching to Cloud Monitoring via stackdriver-exporter.
Updated all rules to use stackdriver_* metrics. Removed otel-collector scrape
target from prometheus.yml since it is behind the local-dev profile.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@shlbatra shlbatra merged commit f4c48af into main Jul 1, 2026
1 check passed
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