Problem with Prometheus Module

Hey all,
I am currently making a POC with Metricbeat. My goal is to scrape Pormetheus metrics and send them over to the ELK Stack.
Currently I am running into an Error, which I can not solve, namely "Unable to decode response from prometheus endpoint"

Basically I have a Prometheus Server in the Cloud. I try to access the Prometheus metrics via Metricbeat, which is running local in a docker container
( docker run --net=host -v ~/Metricbeat/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml
with a custom YML which sends the data then to elasticsearch and Kibana.

what gets to elasticsearch

the metricbeat.yml

Here are some meticbeat logs

Do you guys maybe have an Idea, how i can solve this problem or is it bug from Prometheus/ Metricbeat side?
Many Thanks,

Hey, me again.

I have set up a local mock server which exports the same data like the Prometheus in the cloud, with whom i have the issues with.

To check, wehter there is an problem with the structure of the data, i'll make a curl on the data out of the docker container, wehre Metricbeat is running. First on the cloud Prometheus, then on the local Prometheus. To dont run into this issue of to much data ( i have add a querry to get only few results

Here is the response:

Like you see, the structure is exactly the same.
Also when I point Metricbeat to the local Prometheus, It works just fine. Like you see here in elasticsearch:

But still, when I point Metricbeat to the Prometheus in the cloud, It still gives the error instead of the metrics.

I only can think now of 3 problems

  • Bug in Metricbeat
  • Some sort of problem with sshuttle ( i need it to connect to the server. Also I can get the data when I curl the server from the Metricbeat Docker container so i don't think its a problem)
  • Black Magic

Does anyone have some Idea how to fix this?


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.