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

Provide recipe index health diagnostics #4

Open
jayaddison opened this issue Jun 13, 2022 · 0 comments
Open

Provide recipe index health diagnostics #4

jayaddison opened this issue Jun 13, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@jayaddison
Copy link
Member

jayaddison commented Jun 13, 2022

Is your feature request related to a problem? Please describe.
We typically re-crawl and re-index recipe content after changes to our product data and upgrades to our crawling pipeline.

It can be difficult to determine how 'fresh' our recipe index is currently; the indexed_at column in the database is probably the best way to assess this.

Describe the solution you'd like
It'd be nice to have a chart in the diagnostics dashboard that displays a histogram of indexed recipes by day or month.

Describe alternatives you've considered
This could be performed as a query on-demand when needed.

Additional context
The OpenSearch query for this looks something like:

{
    "aggs": {
        "documents_by_date": {
            "date_histogram": {"field": "indexed_at", "calendar_interval": "day"}
        }
    }
}
@jayaddison jayaddison added the enhancement New feature or request label Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant