Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First stab at UBI dashboards #64

Merged
merged 4 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions ubi-dashboards/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

# How to load dashboards into your OpenSearch installation

This assumes that you have already have UBI data and the `ubi_queries` index created.
See the `ubi-data-generator` tool to generate data.

Run the following shell script: `./install_dashboards.sh http://localhost:9200 http://localhost:5601`

* `ubi_dashboard.ndjson` represents the UBI Dashboards needed to analyze and understand the data.
26 changes: 26 additions & 0 deletions ubi-dashboards/install_dashboards.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

# Ansi color code variables
ERROR='\033[0;31m'
MAJOR='\033[0;34m'
MINOR='\033[0;37m '
RESET='\033[0m' # No Color

opensearch=$1
opensearch_dashboard=$2
set -eo pipefail

if [ -z "$opensearch" ]; then
echo "Error: please pass in both the opensearch url and the opensearch dashboard url"
exit 1
fi
if [ -z "$opensearch_dashboard" ]; then
echo "Error: please pass in both the opensearch url and the opensearch dashboard url"
exit 1
fi

echo "${MAJOR}Using Open Search and Open Search Dashboards at $opensearch and $opensearch_dashboard respectively.${RESET}"

echo "${MAJOR}\nInstalling Quality Evaluation Framework Dashboards${RESET}"
curl -X POST "http://$opensearch_dashboard/api/saved_objects/_import?overwrite=true" -H "osd-xsrf: true" --form file=@ubi_dashboard.ndjson > /dev/null

echo "${MAJOR}The UBI Dashboards were successfully installed${RESET}"
Loading
Loading