Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: deal monitor alert #81

Merged
merged 1 commit into from
Dec 1, 2023
Merged

feat: deal monitor alert #81

merged 1 commit into from
Dec 1, 2023

Conversation

vasco-santos
Copy link
Contributor

@vasco-santos vasco-santos commented Nov 24, 2023

CRON to monitor deals in progress and trigger alerts if they are taking longer than expectations. I opted for taking this into the API Stack as it ends up not being a role of any of the actors (Aggregator, Dealer, etc).

The Monitor CRON goes through Dealer aggregate store (like the CRON who sees deals are ready to issue receipts), and when aggregates are there for longer than a configured threshold (AGGREGATE_MONITOR_THRESHOLD_MS), they are inspected. By inspection, we see the date where min piece was ingested and based on alerting thresholds (MIN_PIECE_WARN_THRESHOLD_MS + MIN_PIECE_CRITICAL_THRESHOLD_MS) may add aggregates to alerts as warning or critical alert.

We rely on grafana alerting to HTTP POST a payload with the known alerts. This has an integration already with Slack

Needs:

Copy link

seed-deploy bot commented Nov 27, 2023

View stack outputs

@vasco-santos vasco-santos force-pushed the feat/deal-monitor-alert branch from 2cb4f7f to 009611c Compare November 28, 2023 17:07
@vasco-santos
Copy link
Contributor Author

@alanshaw propagated w3up updates here and this is ready to go :)

@seed-deploy seed-deploy bot temporarily deployed to pr81 November 28, 2023 17:15 Inactive
Copy link
Member

@alanshaw alanshaw left a comment

Choose a reason for hiding this comment

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

LGTM

@vasco-santos vasco-santos merged commit 3d88618 into main Dec 1, 2023
3 checks passed
@vasco-santos vasco-santos deleted the feat/deal-monitor-alert branch December 1, 2023 10:59
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.

2 participants