Skip to content

Commit e36ebab

Browse files
authored
Merge pull request #111530 from v-albemi/time-series-insights-diagnose-and-solve-problems
Edit pass: time-series-insights-diagnose-and-solve-problems
2 parents 243e243 + 782bbf3 commit e36ebab

File tree

1 file changed

+45
-46
lines changed

1 file changed

+45
-46
lines changed
Lines changed: 45 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: 'Diagnose, troubleshoot, and solve issues - Azure Time Series Insights | Microsoft Docs'
2+
title: 'Diagnose, troubleshoot, and solve issues - Azure Time Series Insights'
33
description: This article describes how to diagnose, troubleshoot, and solve common issues in your Azure Time Series Insights environment.
44
ms.service: time-series-insights
55
services: time-series-insights
66
author: deepakpalled
77
ms.author: dpalled
88
manager: cshankar
9-
ms.reviewer: v-mamcge, jasonh, kfile
9+
ms.reviewer: v-mamcge
1010
ms.workload: big-data
1111
ms.topic: troubleshooting
1212
ms.date: 02/04/2020
@@ -15,121 +15,120 @@ ms.custom: seodec18
1515

1616
# Diagnose and solve issues in your Time Series Insights environment
1717

18-
This article describes some issues you might encounter in your Azure Time Series Insights environment. The article offers potential causes and solutions for resolution.
18+
This article describes issues that you might encounter in your Azure Time Series Insights environment. The article offers potential causes and solutions for resolution.
1919

2020
## Video
2121

22-
### Learn about common Time Series Insights customer challenges and mitigations.</br>
22+
### Learn about common Time Series Insights challenges and mitigations</br>
2323

2424
> [!VIDEO https://www.youtube.com/embed/7U0SwxAVSKw]
2525
26-
## Problem: no data is shown
26+
## Problem: No data is shown
2727

28-
No data in the [Azure Time Series Insights explorer](https://insights.timeseries.azure.com) might occur for several common reasons:
28+
If no data is appearing in the [Azure Time Series Insights explorer](https://insights.timeseries.azure.com), consider these common causes.
2929

30-
### Cause A: event source data isn't in JSON format
30+
### Cause A: Event source data isn't in JSON format
3131

32-
Azure Time Series Insights only supports JSON data. For JSON samples, read [Supported JSON shapes](./how-to-shape-query-json.md).
32+
Azure Time Series Insights supports only JSON data. For JSON samples, see [Supported JSON shapes](./how-to-shape-query-json.md).
3333

34-
### Cause B: the event source key is missing a required permission
34+
### Cause B: The event source key is missing a required permission
3535

36-
* For an IoT hub in Azure IoT Hub, you must provide the key that has **service connect** permissions. Select either the **iothubowner** or **service** policies since both have **service connect** permissions.
36+
* For an IoT hub in Azure IoT Hub, you need to provide the key that has service connect permissions. Select either the **iothubowner** or **service** policy. Both have service connect permissions.
3737

3838
[![IoT Hub service connect permissions](media/diagnose-and-solve-problems/iothub-serviceconnect-permissions.png)](media/diagnose-and-solve-problems/iothub-serviceconnect-permissions.png#lightbox)
3939

40-
* For an event hub in Azure Event Hubs, you must provide the key that has **listen** permissions. Either of the **read** or **manage** policies will work because they both have **listen** permissions.
40+
* For an event hub in Azure Event Hubs, you need to provide the key that has listen permissions. The **read** and **manage** policies will both work because they both have listen permissions.
4141

4242
[![Event hub listen permissions](media/diagnose-and-solve-problems/eventhub-listen-permissions.png)](media/diagnose-and-solve-problems/eventhub-listen-permissions.png#lightbox)
4343

44-
### Cause C: the consumer group provided isn't exclusive to Time Series Insights
44+
### Cause C: The provided consumer group isn't exclusive to Time Series Insights
4545

4646
When you register an IoT hub or an event hub, it's important to set the consumer group that you want to use to read the data. This consumer group *can't be shared*. If the consumer group is shared, the underlying IoT hub or event hub automatically and randomly disconnects one of the readers. Provide a unique consumer group for Time Series Insights to read from.
4747

48-
### Cause D: the environment has just been provisioned
48+
### Cause D: The environment has just been provisioned
4949

5050
Data will appear in your Time Series Insights explorer within a few minutes after the environment and its data are first created.
5151

52-
## Problem: some data is shown, but data is missing
52+
## Problem: Some data is shown, but data is missing
5353

54-
When data appears only partially and the data appears to be lagging, you should consider several possibilities.
54+
When data appears only partially and the data seems to be lagging, consider these possible issues.
5555

56-
### Cause A: your environment is being throttled
56+
### Cause A: Your environment is being throttled
5757

58-
[Throttling](time-series-insights-environment-mitigate-latency.md) is a common issue when environments are provisioned after you create an event source that has data. Azure IoT Hub and Azure Events Hubs store data for up to seven days. Time Series Insights always start with the oldest event in the event source (first-in, first-out, or *FIFO*).
58+
[Throttling](time-series-insights-environment-mitigate-latency.md) is a common issue when environments are provisioned after you create an event source that has data. Azure IoT Hub and Azure Events Hubs store data for up to seven days. Time Series Insights always starts with the oldest event in the event source (first-in, first-out, or *FIFO*).
5959

60-
For example, if you have 5 million events in an event source when you connect to an S1, single-unit Time Series Insights environment, Time Series Insights reads approximately 1 million events per day. It might look like Time Series Insights is experiencing five days of latency. However, what's happening is that the environment is being throttled.
60+
For example, if you have 5 million events in an event source when you connect to an S1, single-unit Time Series Insights environment, Time Series Insights reads approximately 1 million events per day. It might look like Time Series Insights is experiencing five days of latency. But what's happening is that the environment is being throttled.
6161

6262
If you have old events in your event source, you can approach throttling in one of two ways:
6363

6464
- Change your event source's retention limits to help remove old events that you don't want to show up in Time Series Insights.
65-
- Provision a larger environment size (number of units) to increase the throughput of old events. Using the preceding example, if you increase the same S1 environment to five units for one day, the environment should catch up within a day. If your steady-state event production is 1 million or fewer events per day, you can reduce the capacity of the event to one unit after it catches up.
65+
- Provision a larger environment size (number of units) to increase the throughput of old events. In the preceding example, if you increase the same S1 environment to five units for one day, the environment should catch up within a day. If your steady-state event production is 1 million or fewer events per day, you can reduce the event capacity to one unit after Time Series Insights catches up.
6666

67-
The throttling limit is enforced based on the environment's SKU type and capacity. All event sources in the environment share this capacity. If the event source for your IoT hub or event hub pushes data beyond the enforced limits, you'll experience throttling and a lag.
67+
The enforced throttling limit is based on the environment's SKU type and capacity. All event sources in the environment share this capacity. If the event source for your IoT hub or event hub pushes data beyond the enforced limits, you'll experience throttling and a lag.
6868

6969
The following figure shows a Time Series Insights environment that has an SKU of S1 and a capacity of 3. It can ingress 3 million events per day.
7070

71-
[![Environment SKU current capacity](media/diagnose-and-solve-problems/environment-sku-current-capacity.png)](media/diagnose-and-solve-problems/environment-sku-current-capacity.png#lightbox)
71+
[![Environment capacity](media/diagnose-and-solve-problems/environment-sku-current-capacity.png)](media/diagnose-and-solve-problems/environment-sku-current-capacity.png#lightbox)
7272

73-
As an example, assume an environment ingests messages from an event hub. The daily ingress rate is ~67,000 messages. This rate translates to approximately 46 messages every minute.
73+
Imagine an environment that ingests messages from an event hub. It has a daily ingress rate of about 67,000 messages. This rate translates to approximately 46 messages every minute.
7474

75-
* If each event hub message is flattened to a single Time Series Insights event, throttling doesn't occur.
76-
* If each event hub message is flattened to 100 Time Series Insights events, 4,600 events should be ingested every minute.
75+
* If each event hub message is flattened to a single Time Series Insights event, throttling doesn't occur.
76+
* If each event hub message is flattened to 100 Time Series Insights events, 4,600 events should be ingested every minute.
7777

78-
An S1 SKU environment that has a capacity of 3 can ingress only 2,100 events every minute (1 million events per day = 700 events per minute at three units = 2,100 events per minute).
78+
An S1 SKU environment that has a capacity of 3 can ingress only 2,100 events every minute (1 million events per day = 700 events per minute at three units = 2,100 events per minute).
7979

80-
For a high-level understanding of how flattening logic works, read [Supported JSON shapes](./how-to-shape-query-json.md).
80+
To get a high-level understanding of how flattening logic works, see [Supported JSON shapes](./how-to-shape-query-json.md).
8181

8282
#### Recommended resolutions for excessive throttling
8383

8484
To fix the lag, increase the SKU capacity of your environment. For more information, read [Scale your Time Series Insights environment](time-series-insights-how-to-scale-your-environment.md).
8585

86-
### Cause B: initial ingestion of historical data slows ingress
86+
### Cause B: Initial ingestion of historical data slows ingress
8787

8888
If you connect an existing event source, it's likely that your IoT hub or event hub already contains data. The environment starts pulling data from the beginning of the event source's message retention period. This default processing can't be overridden. You can engage throttling. Throttling might take a while to catch up as it ingests historical data.
8989

9090
#### Recommended resolutions for large initial ingestion
9191

9292
To fix the lag:
9393

94-
1. Increase the SKU capacity to the maximum allowed value (10, in this case). After you increase capacity, the ingress process starts to catch up much more quickly. You are charged for the increased capacity. To visualize how quickly you're catching up, you can view the availability chart in the [Time Series Insights explorer](https://insights.timeseries.azure.com).
94+
1. Increase the SKU capacity to the maximum allowed value (10, in this case). After you increase capacity, the ingress process starts to catch up much more quickly. You're charged for the increased capacity. To visualize how quickly you're catching up, you can view the availability chart in the [Time Series Insights explorer](https://insights.timeseries.azure.com).
9595

9696
2. When the lag is caught up, decrease the SKU capacity to your normal ingress rate.
9797

98-
## Problem: data was showing previously but is no longer showing
98+
## Problem: Data was showing previously but is no longer showing
9999

100-
TSI is no longer ingesting data but events are still streaming into Iot Hub or Event Hub
100+
If Time Series Insights is no longer ingesting data, but events are still streaming into Iot Hub or Event Hub, consider this potential cause.
101101

102-
### Cause A: your hub access key was regenerated and your environment needs updating
102+
### Cause A: Your hub access key was regenerated and your environment needs to be updated
103103

104-
This problem occurs when the key provided when creating your event source is no longer valid. You would see telemetry in your hub but no Ingress Received Messages in Time Series Insights. If you are unsure whether or not the key was regenerated you can search your Event Hubs' Activity log for "Create or Update Namespace Authorization Rules" or search "Create or update IotHub Resource" for IoT hub.
104+
This problem occurs when the key provided when you created your event source is no longer valid. You would see telemetry in your hub but no Ingress Received Messages in Time Series Insights. If you aren't sure whether the key was regenerated, you can search your event hub's activity log for "Create or Update Namespace Authorization Rules." For an IoT hub, search for "Create or update IotHub Resource."
105105

106-
To update your Time Series Insights environment with the new key open your hub resource in the Azure portal and copy the new key. Navigate to your TSI resource and click on Event Sources.
106+
To update your Time Series Insights environment with the new key, open your hub resource in the Azure portal and copy the new key. Go to your Time Series Insights resource and select **Event Sources**:
107107

108-
[![Update key.](media/diagnose-and-solve-problems/update-hub-key-step-1.png)](media/diagnose-and-solve-problems/update-hub-key-step-1.png#lightbox)
108+
[![Select Event Sources](media/diagnose-and-solve-problems/update-hub-key-step-1.png)](media/diagnose-and-solve-problems/update-hub-key-step-1.png#lightbox)
109109

110-
Select the event source(s) that have from which ingestion has stopped, paste in the new key and click Save.
110+
Select the event source or sources from which ingestion has stopped, paste in the new key, and then select **Save**:
111111

112-
[![Update key.](media/diagnose-and-solve-problems/update-hub-key-step-2.png)](media/diagnose-and-solve-problems/update-hub-key-step-2.png#lightbox)
112+
[![Paste in the new key](media/diagnose-and-solve-problems/update-hub-key-step-2.png)](media/diagnose-and-solve-problems/update-hub-key-step-2.png#lightbox)
113113

114-
## Problem: my event source's timestamp property name setting doesn't work
114+
## Problem: The event source's timestamp property name setting doesn't work
115115

116-
Ensure that the timestamp property name and value conform to the following rules:
116+
Ensure that the timestamp property value that comes from your event source as a JSON string is in the format _yyyy-MM-ddTHH:mm:ss.FFFFFFFK_. Here's an example: **2008-04-12T12:53Z**.
117117

118-
* The timestamp property name is case-sensitive.
119-
* The timestamp property value that comes from your event source as a JSON string should have the format _yyyy-MM-ddTHH:mm:ss.FFFFFFFK_. An example is **2008-04-12T12:53Z**.
118+
Keep in mind that the timestamp property name is case-sensitive.
120119

121-
The easiest way to ensure that your timestamp property name is captured and working properly is to use the Time Series Insights explorer. In the Time Series Insights explorer, using the chart, select a period of time after you entered the timestamp property name. Right-click the selection, and then select the **Explore events** option.
120+
The easiest way to ensure that your timestamp property name is captured and working properly is to use the Time Series Insights explorer. In the Time Series Insights explorer, using the chart, select a period of time after you entered the timestamp property name. Right-click the selection, and then select **Explore events**.
122121

123122
The first column header should be your timestamp property name. Next to the word **Timestamp**, **($ts)** will be displayed.
124123

125-
The following values will not be displayed:
124+
The following values won't be displayed:
126125

127126
- *(abc)*: Indicates that Time Series Insights is reading the data values as strings.
128-
- *Calendar icon*: Indicates that Time Series Insights is reading the data value as *datetime*.
129-
- *#*: Indicates that Time Series Insights is reading the data values as an integer.
127+
- *Calendar icon*: Indicates that Time Series Insights is reading the data values as datetime values.
128+
- *#*: Indicates that Time Series Insights is reading the data values as integers.
130129

131130
## Next steps
132131

133-
- Read about [How to mitigate latency in Azure Time Series Insights](time-series-insights-environment-mitigate-latency.md).
132+
- Read about [how to mitigate latency in Azure Time Series Insights](time-series-insights-environment-mitigate-latency.md).
134133

135-
- Learn [how to scale your Time Series Insights environment](time-series-insights-how-to-scale-your-environment.md).
134+
- Learn [how to scale your Time Series Insights environment](time-series-insights-how-to-scale-your-environment.md).

0 commit comments

Comments
 (0)