I am using Metricbeat's HTTP module to make a request to the RabbitMQ API to retrieve queue data. However, the Metricbeat RabbitMQ module does not include some fields like incoming and delivery rate, so I am making the request to the API directly.
The problem I am facing is that the response from the RabbitMQ API consists of nested objects and arrays, which Metricbeat is not storing in the index. To overcome this issue, I want to convert the incoming JSON data from the HTTP response into a string and store it in a new field in Metricbeat.
How can I achieve this? Is there a way to convert the JSON data into a string and store it in a field using Metricbeat's HTTP module?
I think I can use processors but I am struggling with how to achieve this.