Thanks, that makes sense.
On Friday, 11 September 2020 at 21:29:34 UTC+10 [email protected] wrote:
> 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/15690e23-848b-4418-b439-554c7c114c35n%40googlegroups.com.