To visualize metrics data in Kibana, you must create an ELK index pattern.

An index pattern defines the Elasticsearch indices that contain the metrics data that you want to view and monitor. Kibana uses these index patterns to create visualizations in the dashboard. After you create an index pattern, you can perform the following tasks.

  • Interactively explore the metrics data

  • Analyze your data in charts, tables, gauges, tag clouds, and much more

Prerequisites

Verify that you have the deployed blockchain ID.

Procedure

  1. Log in to the Kibana platform.
  2. Navigate to the Use Elasticsearch data section.
  3. Select Connect to your Elasticsearch index.
  4. In the navigation tab, click Index Patterns.
  5. Enter the blockchain ID in the index pattern search bar.

    The index pattern format is <blockchain_Id>-yyyy.mm.dd.

    You can append the date to the blockchain ID in the index pattern to make the data searchable.

  6. Click Create index pattern.
  7. In the navigation tab, select the Discover tab.

    A log dump appears on the main page.

  8. In the navigation bar, select metric data and change the available fields to selected fields.

    A field represents metric data. When you change the available field to the selected field, visualization of that field appears. You can save multiple fields for visualization and monitoring in the dashboard.

  9. Click the Visualize tab.

    The visualization is based on your Y-axis and X-axis selection.

  10. To save the visualization for the dashboard, click Save.
  11. Click the Dashboard tab.
  12. Add existing or new visualizations to the dashboard.

    For example, a dashboard can show Docker metrics with two visualizations one for CPU use and one for Docker containers running.

    • CPU use shows the maximum Docker container CPU use system on the Y-axis in Terabytes. The X-axis is marked with a timestamp of 5 minutes.

    • Docker container running shows the average Docker containers running on the system.