caddy-prometheus icon indicating copy to clipboard operation
caddy-prometheus copied to clipboard

Export user agent?

Open OmgImAlexis opened this issue 7 years ago • 4 comments
trafficstars

Could you possibly add the user agent to the exported data?

OmgImAlexis avatar Dec 29 '17 06:12 OmgImAlexis

[ Quoting [email protected] in "[miekg/caddy-prometheus] Export use..." ]

Could you possibly add the user agent to the exported data?

the cardinality of that data is too big to be properly exported - if you can access it in the first place.

miekg avatar Dec 29 '17 08:12 miekg

I'm not sure what you mean?

I'm mainly wanting this for my API servers that accept connections from known clients. Each using appname v1.0.0 for example. I'm mainly trying to see how many people are on what version and I don't have a clue when it comes to Go otherwise I would have forked and added my own code.

OmgImAlexis avatar Dec 29 '17 11:12 OmgImAlexis

What about adding the user agent as a label to each request?

OmgImAlexis avatar Dec 31 '17 01:12 OmgImAlexis

So you want stats on what clients are used to access? I think log parsing is a better idea. As @miekg said, the problem is with the amount of different user agents in the wild. Or handle user-agent header in your API servers.

ptman avatar Jul 31 '18 13:07 ptman