But I get this error if I check the connection with ./metricbeat test modules beat
beat...
state...
error... ERROR error making http request: Get "http://localhost:5066/state": dial tcp [::1]:5066: connect: connection refused
stats...
error... ERROR error making http request: Get "http://localhost:5066/stats": dial tcp [::1]:5066: connect: connection refused
Edit 1: Other modules like Kibana, Elasticsearch and Logstash are working well.
And interestingly if I use ./metricbeat test modules beat I got the error but if I start metricbeat with ./metricbeat -e, "Disable self monitoring" appears nicely on Stack Monitoring.
Edit 2: If I remove http parts from metricbeat.yml, ./metricbeat test modules beat gives the same error but I can not see "Disable self monitoring" on Stack Monitoring.
GET _cluster/settings
PUT _cluster/settings
{
"persistent": {
"xpack.monitoring.collection.enabled": false
}
}
That just tests and does not send data that makes sense because no data is sent... .
Monitoring can be a bit confusing...
I have found
First and foremost, you also have to monitor the elasticsearch cluster if you want to show the beats in stack monitoring... Just Beat Monitoring will not show...
a) For beat the internal Collection is easiest.
b) Setup Elasticsearch-xpack modules
Then you should get both the beat and elasticsearch on stack monitoring
in my metricbeat.yml this is all I added
# Set to true to enable the monitoring reporter.
monitoring.enabled: true
and then for me I just enabled the elasticsearch-xpack module
we actually wanted to disable Self-Monitoring. Because as I read on some sources Self Monitoring will be gone in future. We unified the system and monitoring everything with Metricbeat.
If you enter "Enter Setup Mode" there are 3 sentences:
Thank you very much for your kind assistance. I really appreciate it.
I have already set up this method. Monitoring Beats with Metricbeat.
I just changed to your method and saw that it says "Monitor with Metricbeat". I think there is no difference between them and you are right, I chose the hard way.
The magic answer why I got this error is, to start metricbeat itself. sudo systemctl start metricbeat.
Then you can test your metricbeat modules. ./metricbeat test modules beat
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.