Fail to run metricbeat container without internet connection


(Mathias) #1

Hi,

It looks like metricbeat is trying to download dashboards every time the docker container start.
This fails when there is no internet connection.

docker logs metricbeat
curl: (3) [globbing] nested brace in column 9
Create temporary directory /tmp/tmp774180438
Downloading https://artifacts.elastic.co/downloads/beats/beats-dashboards/beats-dashboards-5.2.2.zip
fail to download file: https://artifacts.elastic.co/downloads/beats/beats-dashboards/beats-dashboards-5.2.2.zip

Is it possible to install the dashboards from dockerfile?
Are the dashboards available as textfile.
The import_dashboards command is binary and I can not modyfy it.

You can simulate this by using add-host parameter when you start your docker.

docker run .......................... --add-host artifacts.elastic.co:127.0.0.1 metricbeat


(Mathias) #2

Yiiiha,

Problem solved by reading the command help.

With -file option is it possible to load a local .zip file instead of downloading.

Br Mathias


(system) #3

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