I'm trying to configure Metricbeat to pull statistics from WildFly 18's MicroProfile Metrics subsystem. Internally, that subsystem is implemented using smallrye-metrics. When Metricbeat polls WildFly, the Prometheus module spits out an error that says:
Unable to decode response from prometheus endpoint
I have no idea why. There are no further details. Enabling debug logging in Metricbeat provides no additional information. I've used Wireshark to confirm that Metricbeat is getting the response it should, and the format of the response looks valid to me.
I tried to paste the response here and the forum complained my post had too many characters, so here's a link to PasteBin instead: https://pastebin.com/1WJXvW6Z
Could someone who works on Metricbeat help me diagnose what's happening here?