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 document_type and schema_name to prom labels #3520

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

richardTowers
Copy link
Contributor

This will allow us to investigate the performance of different content types, for example how long does it take to load a manual vs. an answer or a case_study.

If there are some content types which take a much longer time to load, maybe there are performance issues we should address.

This follows on from alphagov/govuk_app_config#424 which adds the functionality to support setting prometheus labels in this way.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3520 January 15, 2025 16:44 Inactive
@richardTowers richardTowers force-pushed the prometheus-labels-for-content-type branch from 8ca0b78 to 901c75b Compare January 15, 2025 16:44
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3520 January 15, 2025 16:45 Inactive
This results in metrics like:

    http_requests_total{action="show",controller="content_items",document_type="answer",schema_name="answer",status="200"} 1

This will allow us to investigate the performance of different content
types, for example how long does it take to load a manual vs. an answer
or a case_study. Currently we can't distinguish these in the metrics for
government-frontend, because it uses the same controller action for all
content types.

If there are some content types which take a much longer time to load,
maybe there are performance issues we should address.

This follows on from alphagov/govuk_app_config#424
which adds the functionality to support setting prometheus labels in this way.
@richardTowers richardTowers force-pushed the prometheus-labels-for-content-type branch from 901c75b to d23fcf0 Compare January 15, 2025 17:02
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3520 January 15, 2025 17:03 Inactive
@richardTowers richardTowers merged commit 48c7f6d into main Jan 15, 2025
11 checks passed
@richardTowers richardTowers deleted the prometheus-labels-for-content-type branch January 15, 2025 17:32
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.

3 participants