You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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.
Beta Was this translation helpful? Give feedback.
All reactions