File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed
ccloud/fm-azure-log-analytics-sink Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -118,17 +118,22 @@ sleep 10
118
118
119
119
playground connector show-lag --connector $connector_name
120
120
121
- # https://learn.microsoft.com/en-us/azure/azure-monitor/logs/data-ingestion-time#checking-ingestion-time
122
- # there is known latency: "The average latency to ingest log data is between 20 seconds and 3 minutes."
121
+ if [ -z " $GITHUB_RUN_NUMBER " ]
122
+ then
123
+ # do not test in CI, only rely on lag
124
+
125
+ # https://learn.microsoft.com/en-us/azure/azure-monitor/logs/data-ingestion-time#checking-ingestion-time
126
+ # there is known latency: "The average latency to ingest log data is between 20 seconds and 3 minutes."
123
127
124
- sleep 180
128
+ sleep 180
125
129
126
- az extension add --name log-analytics
127
- az monitor log-analytics query \
128
- --workspace $AZURE_LOG_ANALYTICS_WORKSPACE_ID \
129
- --analytics-query ' log_analytics_topic_CL | limit 10' > /tmp/result.log 2>&1
130
- cat /tmp/result.log
131
- grep " first_name_s" /tmp/result.log
130
+ az extension add --name log-analytics
131
+ az monitor log-analytics query \
132
+ --workspace $AZURE_LOG_ANALYTICS_WORKSPACE_ID \
133
+ --analytics-query ' log_analytics_topic_CL | limit 10' > /tmp/result.log 2>&1
134
+ cat /tmp/result.log
135
+ grep " first_name_s" /tmp/result.log
136
+ fi
132
137
133
138
log " Do you want to delete the fully managed connector $connector_name ?"
134
139
check_if_continue
You can’t perform that action at this time.
0 commit comments