I'd like to understand what my nginx instance is returning and who it's asking to handle requests. What fraction of my queries get handled by rails, what fraction are handled directly by nginx, what fraction are heading off to nginx_status, etc.
Similarly, I'd also like to understand things like how many of which HTTP result codes I'm returning. If there's a peak in 500's, I'd like to know.
The telegraf nginx plugin provides some very basic stats on nginx but no more. I've seen some vaguely complicated solutions for result codes that basically involve setting up log monitoring infrastructure. This data seems so fundamental I feel I must be missing something.
I've seen nothing that will help me understand who is actually handling queries (i.e., which handler).
All of this is interesting because (1) secular growth in handler dispatches can indicate scaling issues in clearer ways than simple load on the handler machines, and (2) peaks in anything can alert to problems.
Any pointers?