TYK Analytics(Pump) get token (user) quota

@brahama_von Can you explain more on individual metrics for usage?

As for the remaining quota you can see that from the X-Ratelimit-Remaining response headers after a request has been made.

To see in it analytics, you would have to examine the raw response from the analytics record.

I am not sure if the Prometheus pump spits out the raw response. But if you don’t see it, you could create a custom pump like this thread and map a label to one of it.

You could even extract the value of the X-Ratelimit-Remaining rather than the whole response.

Hope this helps.

1 Like