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

DPLT-1044 Create scheduled Lambda to write lag behind near social #137

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

morgsmccauley
Copy link
Collaborator

@morgsmccauley morgsmccauley commented Jul 19, 2023

This PR replaces latest-post-metrics-writer with a scheduled Lambda which writes the block height difference between the QueryAPI social feed and the near social feed. It does this by fetching the latest block height from each API, and writing the difference to CloudWatch.

Writing the metrics from the QueryAPI indexers themselves has the following problems:

  • Indexers aren't triggered every block, creating large gaps in the metric history.
  • We'll be relying on the QueryAPI infrastructure to tell us everything is ok - is the infra is down we won't be notified.

Having a scheduled Lambda will create a consistent metrics timeline which we can trigger alerts off.

@morgsmccauley morgsmccauley requested a review from a team as a code owner July 19, 2023 03:21
@morgsmccauley morgsmccauley merged commit d700a85 into main Jul 19, 2023
@morgsmccauley morgsmccauley deleted the DPLT-1044-social-lag-metrics-writer branch July 19, 2023 19:12
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