How to use dashboards imported from metricbeat into opensearch-dashboard [Opensearch 2.13.0 & metricbeat 7.12.1]?

I sincerely apologize if this is considered as a double post. In quest of reaching a larger community both here and elsewhere of opensearch, I admit posting this on stackoverflow. I am a bit desperate as I sort of encourage my organization to use opensearch instead of elastic.

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

  • Opensearch 2.13.0
  • metricbeat 7.12.1

Describe the issue:

The issue is posted on stackoverflow https://stackoverflow.com/questions/78429215/how-to-use-dashboards-imported-from-metricbeat-into-opensearch-dashboard-opense

After following the links referenced and write up by @electricbrain I am not able to see any of the dashboard imported from metricbeat to the opensearch-dashboards. Kindly help me make this a success. Thanks

Configuration:

docker-compose.yml

services:
  opensearch:
    image: opensearchproject/opensearch:2.13.0
    container_name: opensearch
    environment:
      - cluster.name=opensearch-cluster
      - node.name=opensearch-node
      - "discovery.type=single-node"
      - bootstrap.memory_lock=true
      - compatibility.override_main_response_version=true
      # - "plugins.security.disabled: true"
      - "OPENSEARCH_INITIAL_ADMIN_PASSWORD=AFQrb42jMYEyXeSnLaef"
    ports:
      - "9200:9200"
    volumes:
      - ./opensearch-data:/usr/share/opensearch/data
    networks:
      - opensearch-net

  opensearch-dashboard:
    image: opensearchproject/opensearch-dashboards:2.13.0
    container_name: opensearch-dashboard
    environment:
      - "OPENSEARCH_DASHBOARDS_ALLOW_IFRAMES=true"
      - "OPENSEARCH_HOSTS=https://opensearch:9200"
    ports:
      - "5601:5601"
    networks:
      - opensearch-net
    depends_on:
      - opensearch

  metricbeat:
    image: docker.elastic.co/beats/metricbeat-oss:7.12.1
    container_name: metricbeat
    user: root
    volumes:
      - ./metricbeat.yml:/usr/share/metricbeat/metricbeat.yml
      - /var/run/docker.sock:/var/run/docker.sock
    networks:
      - opensearch-net
    depends_on:
      - opensearch

networks:
  opensearch-net:

metricbeat.yaml

metricbeat.modules:
- module: system
  metricsets:
    - cpu
    - memory
    - network
    - filesystem
  period: 10s
  processors:
    - drop_event.when.regexp:
        system.filesystem.mount_point: '^/(sys|cgroup|proc|dev|etc|host|lib)($|/)'

output.elasticsearch:
  hosts: ["https://opensearch:9200"]
  username: "admin"
  password: "AFQrb42jMYEyXeSnLaef"
  ssl.verification_mode: "none"
  index: "metricbeat-7.12.1"
  # setup.dashboards.enabled: true

setup:
    kibana:
      host: "http://opensearch-dashboard:5601"
    dashboards:
      enabled: false
    template:
      name: 'myapp'
      pattern: 'myapp-*'
      enabled: false
    ilm:
      overwrite: true

metricbeat json files

The files uploaded are in this dropbox zip link

It seems the OpenSearch web site/documentation has been updated significantly since that page was written.

A priori your configuration appears to be tested if I’m reading this page correctly: “Yes via version setting”

Hello @electricbrain , I really don’t know much, so I tried to follow to the details every instruction/documentation that I can find. So I am using recommended version for the opensearch and its associated *beats. I also followed the settings as recommended.

The only blur part to me is how the opensearch isn’t actually showing any dashboard . The way I see it is as long as the data is in there, creation of the dashboard will be manual and I suspect that will take a long time for me to complete it.

Any luck anybody ?

@blacksensei Have you resolved this issue? The steps described in StackOverflow and here include only the import of the index template and index pattern.

You need to create Dashboards manually.