Add fraud-service Prometheus metrics and error propagation for external APIs#153
Merged
Merged
Conversation
When all three external providers (Stripe, Sift, MaxMind) return errors, medium-risk transactions are now rejected with reason "external-verification-unavailable" — making the failures visible in the Grafana error dashboard. New Prometheus metrics track outbound call status and latency per provider. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Servlet filter returns 503 on ~30% of requests during the :10 and :40 minute windows (2-min duration each), matching the sim client error spike pattern. Skips /actuator endpoints. Configurable via error-spike.* properties; enabled by default. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Deploys Promtail on every node to tail pod logs from the banking-app namespace (excluding sim-client noise) and ship to Loki. Adds an "Application Logs — Errors" panel to the error dashboard filtering for ERROR/WARN/Exception/panic lines alongside the existing eBPF traffic panel. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fraud_external_requests_totalandfraud_external_request_duration_secondsPrometheus metrics tracking outbound calls to Stripe, Sift, and MaxMindexternal-verification-unavailable— making fraud-service failures visible in the Grafana error dashboard via the existing transactions-service rejection pathTest plan
go build ./...passesgo test ./...passes:9091/metricsafter deployexternal-verification-unavailablerejections show up in the Errors by Endpoint table🤖 Generated with Claude Code