# Metricbeat Kibana Dashboard Request Time-out when there is a Virtual IP in the VM being monitored

**URL:** <https://discuss.elastic.co/t/metricbeat-kibana-dashboard-request-time-out-when-there-is-a-virtual-ip-in-the-vm-being-monitored/265775>\
**Category:** Beats\
**Tags:** docker, metricbeat\
**Created:** [March 1, 2021, 10:19am UTC](https://discuss.elastic.co/t/metricbeat-kibana-dashboard-request-time-out-when-there-is-a-virtual-ip-in-the-vm-being-monitored/265775 "2021-03-01T10:19:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thesn](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@thesn](https://discuss.elastic.co/u/thesn)\
**Post date:** [March 1, 2021, 10:19am UTC](https://discuss.elastic.co/t/metricbeat-kibana-dashboard-request-time-out-when-there-is-a-virtual-ip-in-the-vm-being-monitored/265775/1 "2021-03-01T10:19:27Z")

</div>

hi,

I have ES 7.11.1 and Kibana 7.11.1 setup in docker container (10.6.226.80) using docker-compose in a Linux VM.  
Also, I have Metricbeat 7.11.1 setup in docker container (10.6.226.104) using docker-compose in a Linux VM.

I set the setup.dashboards.enable: true  
When I start the Metricbeat (docker-compose up -d metricbeat), I saw error in the logs:

```auto
    2021-03-01T09:39:31.328Z	ERROR	instance/beat.go:971	Exiting: Error importing Kibana dashboards: fail to import the dashboards in Kibana: Error importing directory /usr/share/metricbeat/kibana: failed to import Kibana index pattern: 1 error: error loading index pattern: returned 408 to import file: <nil>. Response: {"statusCode":408,"error":"Request Time-out","message":"Request Time-out"}
Exiting: Error importing Kibana dashboards: fail to import the dashboards in Kibana: Error importing directory /usr/share/metricbeat/kibana: failed to import Kibana index pattern: 1 error: error loading index pattern: returned 408 to import file: <nil>. Response: {"statusCode":408,"error":"Request Time-out","message":"Request Time-out"}

```

After comparing with other VMs (which the Metricbeat is running with no issues), I found out that the VM (10.6.226.104) has a Virtual IP (10.6.226.250) up in the same network interface.  
This Virtual IP is used for database fail-over. Thus, it has to stay there.  
This Virtual IP is my main suspect of what causing the Request Time-out error.

Any suggestion on how to still be able to monitor this VM using Metricbeat?

Thank you.

my docker-compose:

```auto
    version: "2.2"
services:
  metricbeat:
    image: registry.bankbjb.co.id/metricbeat:7.11.1
    container_name: metricbeat
    hostname: bjbmdwdbdev
    user: root #to read the docker socket
    volumes:
      - "./metricbeat/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml:ro"
      - "./metricbeat/fields.yml:/usr/share/metricbeat/fields.yml:ro"
      - "/proc:/hostfs/proc:ro"
      - "/sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro"
      - "/var/run/docker.sock:/var/run/docker.sock:ro"
      - "/:/hostfs:ro"
    command: metricbeat -e -system.hostfs=/hostfs -strict.perms=false

```

my metricbeat.yaml:

```auto
    # =========================== Modules configuration ============================
metricbeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: true

metricbeat.modules:
- module: system
  metricsets: ["cpu","memory","network","filesystem"]
  enabled: true
  period: 60s
  processes: ['.*']
  cpu.metrics: ["percentages","normalized_percentages"]
  core.metrics: ["percentages"]

  process.include_top_n:
    enabled: true
    by_cpu: 10
    by_memory: 10

# ================================= Dashboards =================================
setup.dashboards.enabled: true

# ================================== Logging ===================================
logging.metrics.period: 60s

# ================================== Template ==================================
setup.template.fields: "fields.yml"

# Elasticsearch template settings
setup.template.settings:
  index:
    number_of_shards: 1
    codec: best_compression

# =================================== Kibana ===================================
setup.kibana:
  host: "10.6.226.80:5601"
  space.id: "system-monitor"

# ---------------------------- Elasticsearch Output ----------------------------
output.elasticsearch:
  enabled: true
  hosts: ["10.6.226.80:9200"]
  protocol: "http"

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 29, 2021, 12:20pm UTC](https://discuss.elastic.co/t/metricbeat-kibana-dashboard-request-time-out-when-there-is-a-virtual-ip-in-the-vm-being-monitored/265775/2 "2021-03-29T12:20:06Z")

</div>

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