2021-02-01T13:05:56.097+0800 INFO instance/beat.go:456 heartbeat stopped.
2021-02-01T13:05:56.099+0800 ERROR instance/beat.go:951 Exiting: error in autodiscover provider settings: error setting up docker autodiscover provider: protocol not available
Exiting: error in autodiscover provider settings: error setting up docker autodiscover provider: protocol not available
Version:
heartbeat version 7.9.2 (amd64), libbeat 7.9.2 [2ab907f5ccecf9fd82fe37105082e89fd871f684 built 2020-09-22 22:24:50 +0000 UTC]
I think that docker autodiscover tries to connect by default to unix:///var/run/docker.sock. Unix sockets are only supported in recent versions of Windows, what is problably causing this protocol not available error.
In Windows, the npipe should be used instead, something like this:
I found a solution.
For the name, you have to set the name and id under config.
For the timeout problem, I use localhost instead of data.host.
Here is the setting that I use:
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.