Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to get the latest metrics update in gunicorn environment. #944

Unanswered
NINJA-J asked this question in Q&A
Discussion options

I'm currently using flask with guniciorn. I want to collect some metrics regarding a specific HTTP request, like request parameters. I'm using Gauge with GunicornInternalPrometheusMetrics.

The scenario is like 3 http calls come in and updated the metrics to [a, b, c] values. Due to load balance, these updates may be located to different gunicorn worker. I want to find a way to let the gauge metrics reports these value changes normally, i.e. only keep the latest metrics. However, the default aggregation mode only supports all, min, max and sum, which are definitly not what I'm looking for.

I'm wondering what the best approach would be to solve it with in the prometheus_client module.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /