Sub: We are looking for a solution to push the Prometheus data to Elasticsearch for long term storage.
We have deployed Elasticsearch, Metric Beat, prometheus and Grafana on a kubernetes cluster. We need to push prometheus data to ElasticSearch and the grafana needs to pull prometheus data from Elasticsearch to render the data. Please help us with steps to integrate these components.
Thanks for your reply. I have installed all components as per the documentation provided. Prometheus is not scraping the metrics and not pushing to the metricbeat. I have updated the remote write url to metricbeat service. I am getting following error:
I have installed metricbeat-7.17.3. I have initially scraped metrics to 9201 port of the metricbeat. Below are my configurations of prometheus and metricbeat.
I just noticed that the port 9201 is being connected when I exec into the pod and curl to the localhost:9201. but, this is not working from outside pod.
Please suggest if you come across any issue like this.
Unfortunately I can't help more because I don't have access to your environment.
But if you cannot connect from outside the pod, and it works when testing from inside the pod, it's clearly a issue outside Metricbeat and related to you Kubernetes environment. You'll have to find out why Kubernetes is not routing the traffic to this port on the container.
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.