The metric type you want is "counter", which is incremented on each hit.

However you need to be careful here, as you may end up with a cardinality 
explosion if you label your metrics with {domain="X", page="Y", 
browser="Z"}.  That is, there's an unlimited number of pages which could be 
scraped, you'll see these requests from bots, attacker scripts etc.

If you are going to use prometheus for this, you need to be careful to 
sanitise the input data, e.g. select from a small list of pre-existing 
domains, pages, and browsers, and ignore all unknown values.  Otherwise you 
may be better off with ad-hoc log analysis tools.

-- 
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/06f63209-d10f-4ccf-9229-d2443a3298f2o%40googlegroups.com.

Reply via email to