Tutorial

How to Create a Dashboard in OpenSearch

Published on September 3, 2024
How to Create a Dashboard in OpenSearch

Introduction

OpenSearch is an open-source search and analytics suite that originated as a fork of Elasticsearch and Kibana. It supports real-time data ingestion, advanced querying, and robust security, making it ideal for e-commerce, IT monitoring, and finance applications. With features like SQL query support, machine learning, and alerting, OpenSearch continuously evolves through active community development.

In this tutorial, you’ll learn the basics of creating a dashboard using the Dashboard application and OpenSearch sample data. The sample dataset includes existing visualizations, which you can use or modify to create new ones. By the end of this tutorial, you’ll have mastered the foundations of creating a new dashboard with multiple panels in OpenSearch Dashboards.

Prerequisites

Before you begin, ensure you have:

Most Common Use Cases of OpenSearch Dashboard

The Dashboard application in OpenSearch Dashboards allows you to represent analytical, operational, and strategic data visually, providing a quick understanding of trends and key metrics, simplifying data exploration, and delivering timely insights.

Here are three use cases for dashboards in OpenSearch:

  1. E-commerce Sales Monitoring:
    • Create a dashboard to track real-time sales metrics, including total revenue, average order value, and conversion rates.
    • Visualize customer behavior, such as cart abandonment rates and product popularity, to optimize marketing strategies.
    • Use alerts to notify the team of significant changes in sales patterns, helping to address any issues quickly.
  2. IT Infrastructure Monitoring:
    • Set up dashboards to monitor server health, network performance, and application uptime across the infrastructure.
    • Visualize key metrics like CPU usage, memory consumption, and network latency to ensure optimal performance.
    • Implement alerts for critical thresholds, enabling rapid response to potential outages or performance degradations.
  3. Security Incident Tracking:
    • Create dashboards to monitor and analyze security logs, including login attempts, firewall activity, and intrusion detection alerts.
    • Track suspicious activity patterns in real-time to identify potential security breaches.
    • Use visualization tools to correlate data across multiple sources, enhancing the ability to respond to and mitigate security incidents effectively.

Step 1 - Creating a Managed OpenSearch Database

  • To create a managed Open search database, go to the database section of the control panel, and click “Create Database”.

  • Choose a “data center/region”.

  • Select the desired VPC network from the region (if you have multiple VPCs created).

  • Choose “OpenSearch” as the Database engine.

    opensearch database

  • Now, Choose the configuration for the database.

Note: You can change the configuration and upscale any time after the cluster creation; however, downscaling is currently not supported.

  • Open search also supports scale storage. Hence, you can choose the storage size.
  • Name database cluster, select your preferred Project, and add tags (if any, optional option)
  • Click create Database Cluster.

Step 2 - Creating a dashboard and adding an existing visualization

  • Click to OpenSearch Dashboard from the DigitalOcean cloud control panel

  • Login to the dashboard with the credentials provided in the cloud panel.

    alt_text

  • Once you log into OpenSearch, go to OpenSearch “Dashboards > Dashboard” on the top menu.

  • From the Dashboards panel, choose “Create Dashboard”.

  • Click the calendar icon and set the time filter to Last X days.

  • In the panel, choose “Add an existing”.

  • In the Add panels window, select Line Avg Bytes over time, then close the panel.

You’ve successfully created a basic dashboard with a single panel, which will be used throughout the rest of this tutorial.

single panel opensearch dashboard

Step 3 - Creating visualization

  • Create a New Visualization- From the dashboard toolbar, click “Create new.”
  • Select “Gauge/metrics” in the New Visualization window and choose the desired index pattern.
  • Save the Visualization- Click “Save” in the toolbar.
  • Enter a title like “Metrics count” for the gauge chart panel in the Save Visualization window.
  • Click “Save and return.”

The gauge chart visualization is now saved, and you will be redirected back to the dashboard. You should see two visualizations displayed on the dashboard.

visualization-in-opensearch

Note: To visualize and explore data in OpenSearch Dashboards, you can create an index pattern to retrieve data from OpenSearch. You have four different options: Index patterns, Data sources, Saved objects, and Advanced settings. OpenSearch Dashboards requires an index pattern to identify which indices you want to explore. An index pattern can point to a specific index, such as your log data from yesterday or all indices containing your log data.

Conclusion

Congratulations! You’ve learned how to create and visualize dashboards in a DigitalOcean Managed OpenSearch database. We’ve covered setting up a new dashboard, using sample data, and adding visualizations. With these skills, you can now effectively monitor and analyze your key metrics.

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about our products

About the authors
Default avatar

Solutions Engineer II


Default avatar

Sr Technical Writer

Senior Technical Writer @ DigitalOcean | 2x Medium Top Writers | 2 Million+ monthly views & 34K Subscribers | Ex Cloud Consultant @ AMEX | Ex SRE(DevOps) @ NUTANIX


Still looking for an answer?

Ask a questionSearch for more help

Was this helpful?
 
Leave a comment


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Join the Tech Talk
Success! Thank you! Please check your email for further details.

Please complete your information!

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.