Prometheus only records metrics, which are numeric values - counters and 
gauges.

You can apply labels to timeseries, but these are not suitable for storing 
arbitrary strings like URL paths, because every new URL path you see will 
create a new timeseries.  It can lead to cardinality explosion, especially 
if your system is open where attackers can generate arbitrary URL paths.

I suggest you look at a logging solution, like Loki or Elasticsearch.  Loki 
allows you to apply PromQL-style queries to your logs; Elasticsearch has 
its own query language and API.

On Friday, 17 September 2021 at 11:28:13 UTC+1 kazakaze wrote:

> I have a proxy server, simply, I want to record which URLs are accessed 
> through the proxy server. And hope to use prometheus as monitoring. 
> However, when I was brainstorming, I wonder if 
> *prometheus+request-url-path* is a good idea.

-- 
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/9a3c8caf-ac84-4f8b-a6c1-29cb6242fe45n%40googlegroups.com.

Reply via email to