-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align with existing search-quality-evaluation-dashboards patterns
Signed-off-by: Eric Pugh <epugh@opensourceconnections.com> Signed-off-by: Alexey Rodriguez Yakushev <alexey.rodriguez@gmail.com>
- Loading branch information
1 parent
6b3df3b
commit ec207e2
Showing
5 changed files
with
35 additions
and
23 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |
File renamed without changes.