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

Misc Promethus changes #130

Merged
merged 3 commits into from
Nov 21, 2023
Merged

Misc Promethus changes #130

merged 3 commits into from
Nov 21, 2023

Conversation

tillprochaska
Copy link
Contributor

This PR collects a few minor, miscellaneous changes related to Prometheus metrics, based on my (limited) practical experience integrating Prometheus into other Aleph components.

Even though it is considered an anti-pattern to add a prefix with the name of the software or component to metrics (according to the official Prometheus documentation), I have decided to add a prefix. I’ve found that this makes it much easier to find relevant metrics. The main disadvantage of per-component prefixes queries become slightly more complex if you want to query the same metric (e.g. HTTP request duration) across multiple components. This isn’t super important in our case though, so I think the trade-off is acceptable.
Copy link
Contributor

@stchris stchris left a comment

Choose a reason for hiding this comment

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

Generally agree with this, I just have two questions

servicelayer/worker.py Show resolved Hide resolved
servicelayer/worker.py Outdated Show resolved Hide resolved
@tillprochaska tillprochaska merged commit 5344cf5 into main Nov 21, 2023
1 check passed
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