sdinteractive / SomethingDigital_InfluxDb

Base module for sending data for InfluxDB.
3 stars 2 forks source link

Add a response header that shows module/controller/route #17

Open mpchadwick opened 8 years ago

mpchadwick commented 8 years ago

E.g.

X-SD-InfluxDb-Route catalog/category/view

We can then record that to a custom log and stream it to InfluxDb with https://github.com/influxdata/telegraf/tree/master/plugins/inputs/logparser

Thus we can calculate increase in 5XX errors on a per route basis (e.g. Increase in 5XX to /checkout/cart/add might go undetected when not looking on a per route basis).

mpchadwick commented 8 years ago

This can potentially leverage route https://github.com/mpchadwick/kapacitor_utils/blob/master/query_parser/query_parser.go