Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get controller labels from controller, not params
I've got an open PR to do this for the default default in prometheus_exporter itself: github[.]com/discourse/prometheus_exporter/pull/293 But it's unclear whether the maintainers will accept that, and if so how long that will take. In the meantime, we've got quite a bit of noise in our metrics because it's currently possible for an HTTP request to overwrite the action / controller labels by passing them in as request parameters like this: curl -v http://127.0.0.1:3000/ --data 'controller=test' This commit extends the default middleware so we have more sensible defaults for both Rails and Sinatra apps. I couldn't work out any good labels for sinatra apps that wouldn't be potentially high cardinality, so those are just blank.
- Loading branch information