30 May 2024 11:58 AM
We made a change to our application monitored by Dynatrace.
Before the change we saw something called "ruxit gateway" make requests to our "/metrics" endpoint.
The previous implementation returned HTTP200 with content-type "text/plain; version=0.0.4; charset=utf-8"
We made a small change that (should!) serve the same response and content-type.
However we're now seeing HTTP406s in response suggesting an issue with content negotiation.
I'm just looking for information on what "ruxit gateway" is and what content-type is in the requests to "/metrics".
This should give me some information to try to figure out what has been broken.
Solved! Go to Solution.
31 May 2024 07:28 AM
Ruxit gateway is Dynatrace ActiveGate. Based on the metric endpoint I assume it's an application in Kubernetes and you are scraping the Prometheus metrics from the /metrics endpoint.
The HTTP Response 406 is returned from your application, so I'd recommend looking at your application why it is not accepting the request. The request Content-Type header is text/plain.
31 May 2024 08:35 AM
Thank-you @Julius_Loman for the pointer.
Upon debugging we noted that our application's default content-type was application/json and our refactoring had removed the explicit content negotiation for text/plain. Adding this back has solved our problem.