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

add uploadedInLastFiveMinutes to the imageCounts #4185

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

twrichards
Copy link
Contributor

@twrichards twrichards commented Nov 6, 2023

Now that the reaper is back in action (see #4145) we can no longer rely on the total count in ES for the alarms which hang-off the metrics produced by image-counter-lambda (see https://github.com/guardian/editorial-tools-platform/blob/main/cloudformation/media-service-account/image-counter-lambda.yaml). These alarms exist for two reasons...

  1. to alarm when we have an ingestion issue (i.e. total count wasn't rising)
  2. to alarm when we lose lots of images (as has happened in the past 😬)

This PR facilitates a new alarm to capture reason 1.

2 is much harder since we're reaping at a variable rate (effectively based on the ingestion rate from the moment 20 days prior).

@twrichards twrichards requested a review from a team as a code owner November 6, 2023 17:35
Copy link
Contributor

@phillipbarron phillipbarron left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@twrichards twrichards force-pushed the image-counter-lambda/fix-searchResponseCount branch from db133e2 to 4eff25f Compare November 14, 2023 09:08
Base automatically changed from image-counter-lambda/fix-searchResponseCount to main November 14, 2023 09:15
@prout-bot
Copy link

Seen on auth, usage, image-loader, metadata-editor, thrall, leases, cropper, collections, media-api, kahuna (merged by @twrichards 9 minutes and 57 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants