Hey guys,

I'm using Prometheus to monitor http request performance by exporting 
metrics from nginx access logs (mtail + Prometheus).

I would like to have a Top K view of slowest url route patterns. By url 
"route pattern", I mean something like "/api/orders/:num", where the ":num" 
is a placeholder. Urls like "/api/orders/1200", "/api/orders/1201" will all 
fall to the route pattern "/api/orders/:num".

Seems "regex" action will not work in this case, because I'm not using the 
matched group as label value, but use the regex_replace(source_label, 
/\d+/, ':num') result as the label value.

Any idea? Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/d9394120-ddaf-493d-8072-6d1aaec0529f%40googlegroups.com.

Reply via email to