I'm trying to use the metricbeat prometheus module to run a query like :
query:
'match[]' : 'sum(increase(unix_bytes[5m])) by (process)'
however I get an error "Unable to decode response from prometheus endpoint". Am I kidding myself that I'm gonna be able to execute this type of query?
Secondly in the prometheus module does the period: 300s directive tell metricbeat to query the last 5m or do I need to do that in the query? The module is pretty sparsely documented!
Hi,
Is there any progress in this issue?
I am also trying to fetch the result from prometheus query. But /federate API in Prometheus doesn't seem to support "sum" query. This API works to scrape Prometheus' metrics.
So I added some code into Metricbeat and it works.
I am wondering if it's right way to work.
Hey! This is expected to be solved by https://github.com/elastic/beats/pull/15177 where Metricbeat collects from Prometheus Query API directly. It is expected to be available in 7.7.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.