Skip to content

Commit 9442ac0

Browse files
vagimelihuyaboohdhalternatebower
authored
Update multiple data sources and add TSVB and Vega viz types (opensearch-project#7229)
* Update multiple data sources and add TSVB and Vega viz types Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * add text Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Add tutorials Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Add tutorials Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/vega.md Co-authored-by: Huy Nguyen <73027756+huyaboo@users.noreply.github.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update tsvb.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update vega.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update vega.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update tsvb.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update vega.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Address SME feedback Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Address SME feedback Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Address SME feedback Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Address SME feedback Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/tsvb.md Co-authored-by: Heather Halter <HDHALTER@AMAZON.COM> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/tsvb.md Co-authored-by: Heather Halter <HDHALTER@AMAZON.COM> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/vega.md Co-authored-by: Heather Halter <HDHALTER@AMAZON.COM> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/vega.md Co-authored-by: Heather Halter <HDHALTER@AMAZON.COM> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/vega.md Co-authored-by: Heather Halter <HDHALTER@AMAZON.COM> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/tsvb.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/tsvb.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/tsvb.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/tsvb.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/tsvb.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/geojson-regionmaps.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/selfhost-maps-server.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/vega.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/visbuilder.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/vega.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/vega.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/vega.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/management/multi-data-sources.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/management/multi-data-sources.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/management/multi-data-sources.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/management/multi-data-sources.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/management/multi-data-sources.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/management/multi-data-sources.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/selfhost-maps-server.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/tsvb.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/tsvb.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/tsvb.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/tsvb.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/tsvb.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/tsvb.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/tsvb.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/tsvb.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/tsvb.md Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/vega.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/vega.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> * Update _dashboards/visualize/vega.md Co-authored-by: Nathan Bower <nbower@amazon.com> Signed-off-by: Melissa Vagi <vagimeli@amazon.com> --------- Signed-off-by: Melissa Vagi <vagimeli@amazon.com> Co-authored-by: Huy Nguyen <73027756+huyaboo@users.noreply.github.com> Co-authored-by: Heather Halter <HDHALTER@AMAZON.COM> Co-authored-by: Nathan Bower <nbower@amazon.com>
1 parent 509d8f0 commit 9442ac0

21 files changed

+183
-168
lines changed

_dashboards/visualize/area.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
title: Using area charts
3+
title: Area charts
44
parent: Building data visualizations
55
nav_order: 5
66
---

_dashboards/visualize/gantt.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
title: Using Gantt charts
3+
title: Gantt charts
44
parent: Building data visualizations
55
nav_order: 30
66
redirect_from:
@@ -18,7 +18,7 @@ To create a Gantt chart, perform the following steps:
1818
1. In the visualizations menu, choose **Create visualization** and **Gantt Chart**.
1919
1. Choose a source for the chart (e.g. some log data).
2020
1. Under **Metrics**, choose **Event**. For log data, each log is an event.
21-
1. Select the **Start Time** and **Duration** fields from your data set. The start time is the timestamp for the beginning of an event. The duration is the amount of time to add to the start time.
21+
1. Select the **Start Time** and **Duration** fields from your dataset. The start time is the timestamp for the beginning of an event. The duration is the amount of time to add to the start time.
2222
1. Under **Results**, choose the number of events to display on the chart. Gantt charts sequence events from earliest to latest based on start time.
2323
1. Choose **Panel settings** to adjust axis labels, time format, and colors.
2424
1. Choose **Update**.

_dashboards/visualize/geojson-regionmaps.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
title: Using coordinate and region maps
3+
title: Coordinate and region maps
44
parent: Building data visualizations
55
has_children: true
66
nav_order: 15
@@ -12,7 +12,7 @@ redirect_from:
1212

1313
OpenSearch has a standard set of GeoJSON files that provide a vector map with each region map. OpenSearch Dashboards also provides basic map tiles with a standard vector map to create region maps. You can configure the base map tiles using [Web Map Service (WMS)](https://www.ogc.org/standards/wms). For more information, see [Configuring WMS in OpenSearch Dashboards]({{site.url}}{{site.baseurl}}/dashboards/maptiles/).
1414

15-
For air gapped environments, OpenSearch Dashboards provides a self-host maps server. For more information, see [Using the self-host maps server]({{site.url}}{{site.baseurl}}/dashboards/selfhost-maps-server/)
15+
For air-gapped environments, OpenSearch Dashboards provides a self-host maps server. For more information, see [Using the self-host maps server]({{site.url}}{{site.baseurl}}/dashboards/selfhost-maps-server/).
1616

1717
While you can't configure a server to support user-defined vector map layers, you can configure your own GeoJSON file and upload it for this purpose.
1818
{: .note}
@@ -35,7 +35,7 @@ You can use [geojson.io](https://geojson.io/#map=2/20.0/0.0) to extract GeoJSON
3535

3636
To create your own custom vector map, upload a JSON file that contains GEO data for your customized regional maps. The JSON file contains vector layers for visualization.
3737

38-
1. Prepare a JSON file to upload. Make sure the file has either a .geojson or .json extension.
38+
1. Prepare a JSON file to upload. Make sure the file has either a `.geojson` or `.json` extension.
3939
1. On the top menu bar, go to **OpenSearch Dashboards > Visualize**.
4040
1. Select the **Create Visualization** button.
4141
1. Select **Region Map**.

_dashboards/visualize/maps-stats-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: default
33
title: Maps Stats API
44
nav_order: 20
55
grand_parent: Building data visualizations
6-
parent: Using coordinate and region maps
6+
parent: Coordinate and region maps
77
has_children: false
88
---
99

_dashboards/visualize/maps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
title: Using maps
44
grand_parent: Building data visualizations
5-
parent: Using coordinate and region maps
5+
parent: Coordinate and region maps
66
nav_order: 10
77
redirect_from:
88
- /dashboards/maps-plugin/

_dashboards/visualize/maptiles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
title: Configuring a Web Map Service (WMS)
44
grand_parent: Building data visualizations
5-
parent: Using coordinate and region maps
5+
parent: Coordinate and region maps
66
nav_order: 30
77
redirect_from:
88
- /dashboards/maptiles/

_dashboards/visualize/selfhost-maps-server.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
layout: default
3-
title: Using the self-host maps server
3+
title: Using self-hosted map servers
44
grand_parent: Building data visualizations
5-
parent: Using coordinate and region maps
5+
parent: Coordinate and region maps
66
nav_order: 40
77
redirect_from:
88
- /dashboards/selfhost-maps-server/
99
---
1010

11-
# Using the self-host maps server
11+
# Using self-hosted map servers
1212

1313
The self-host maps server for OpenSearch Dashboards allows users to access the default maps service in air-gapped environments. OpenSearch-compatible map URLs include a map manifest with map tiles and vectors, the map tiles, and the map vectors.
1414

_dashboards/visualize/tsvb.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
layout: default
3+
title: TSVB
4+
parent: Building data visualizations
5+
nav_order: 45
6+
---
7+
8+
# TSVB
9+
10+
The Time-Series Visual Builder (TSVB) is a powerful data visualization tool in OpenSearch Dashboards that allows you to create detailed time-series visualizations. One of its key features is the ability to add annotations or markers at specific time points based on index data. This feature is particularly useful for making connections between multiple indexes and building visualizations that display data over time, such as flight status, delays by type, and more. TSVB currently supports the following visualization types: Area, Line, Metric, Gauge, Markdown, and Data Table.
11+
12+
## Creating TSVB visualizations from multiple data sources
13+
Introduced 2.14
14+
{: .label .label-purple }
15+
16+
Before proceeding, ensure that the following configuration settings are enabled in the `config/opensearch_dasboards.yaml` file:
17+
18+
```yaml
19+
data_source.enabled: true
20+
vis_type_timeseries.enabled: true
21+
```
22+
{% include copy-curl.html %}
23+
24+
Once you have configured [multiple data sources]({{site.url}}{{site.baseurl}}/dashboards/management/multi-data-sources/) in OpenSearch Dashboards, you can use Vega to query those data sources. The following GIF shows the process of creating TSVB visualizations in OpenSearch Dashboards.
25+
26+
![Process of creating TSVB visualizations in OpenSearch Dashboards]({{site.url}}{{site.baseurl}}/images/dashboards/configure-tsvb.gif)
27+
28+
**Step 1: Set up and connect data sources**
29+
30+
Open OpenSearch Dashboards and follow these steps:
31+
32+
1. Select **Dashboards Management** from the main menu on the left.
33+
2. Select **Data sources** and then select the **Create data source** button.
34+
3. On the **Create data source** page, enter the connection details and endpoint URL.
35+
4. On the **Home** page, select **Add sample data** and then select the **Add data** button for the **Sample web logs** dataset.
36+
37+
The following GIF shows the steps required to set up and connect a data source.
38+
39+
![Create data source]({{site.url}}{{site.baseurl}}/images/dashboards/create-datasource.gif)
40+
41+
**Step 2: Create the visualization**
42+
43+
Follow these steps to create the visualization:
44+
45+
1. From the menu on the left, select **Visualize**.
46+
2. On the **Visualizations** page, select **Create Visualization** and then select **TSVB** in the pop-up window.
47+
48+
**Step 3: Specify data sources**
49+
50+
After creating a TSVB visualization, data may appear based on your default index pattern. To change the index pattern or configure additional settings, follow these steps:
51+
52+
1. In the **Create** window, select **Panel options**.
53+
2. Under **Data source**, select the OpenSearch cluster from which to pull data. In this case, choose your newly created data source.
54+
3. Under **Index name**, enter `opensearch_dashboards_sample_data_logs`.
55+
4. Under **Time field**, select `@timestamp`. This setting specifies the time range for rendering the visualization.
56+
57+
**(Optional) Step 4: Add annotations**
58+
59+
Annotations are markers that can be added to time-series visualizations. Follow these steps to add annotations:
60+
61+
1. On the upper-left corner of the page, select **Time Series**.
62+
2. Select the **Annotations** tab and then **Add data source**.
63+
3. In the **Index** name field, specify the appropriate index. In this case, continue using the same index from the previous steps, that is, `opensearch_dashboards_sample_data_logs`.
64+
4. From **Time** field, select `@timestamp`.
65+
5. In the **Fields** field, enter `timestamp`.
66+
6. In the **Row template** field, enter `timestamp`.
67+
68+
The visualization automatically updates to display your annotations, as shown in the following image.
69+
70+
<img src="{{site.url}}{{site.baseurl}}/images/dashboards/tsvb-with-annotations.png" alt="TSVB visualization with annotations" width="700"/>

0 commit comments

Comments
 (0)