espressif / esp-insights

ESP Insights: A remote diagnostics/observability framework for connected devices
Apache License 2.0
101 stars 27 forks source link

ESP Insights - MQTT case - No Error, Warning and Event logs in Dashboard. #25

Open Sky-Soo-Ap opened 1 year ago

Sky-Soo-Ap commented 1 year ago

Hi Dear, I tried temperature_sensor example and added a smoke test from diagnostics_smoke_test example. Following is the attached log file, sdkconfig file and Dashboard screenshot. ESP_Insights_MQTT_case_No_Error_Warning_Event_logs.log sdkconfig.log ESP_Insights_MQTT_case_No_Error_Warning_Event_logs

vikramdattu commented 1 year ago

@Sky-Soo-Ap the smoke_test example by design crashes randomly for 5 times. Hence the crashes. If you reboot manually, again the device will go into 5 times crash mode.

The line introducing the crash: https://github.com/espressif/esp-insights/blob/d8b2dfcff850a0b6ae44c406d5f40a3c9364dc8c/examples/diagnostics_smoke_test/main/app_main.c#L73

vikramdattu commented 1 year ago

@Sky-Soo-Ap can you share the logs with Insights debug enabled, like you did in another issue? Also, did you make any changes to config to the Insight enable API call? Did you check if you are getting metrics/variables data on the dashboard?

Sky-Soo-Ap commented 1 year ago

@vikramdattu Following logs with Insights debug enabled. ESP_Insights_MQTT_case_No_Error_Warning_Event_logs_1.log

did you make any changes to config to the Insight enable API call? No, following is the source code (app_main.txt) and config (config.log). sdkconfig.log app_main.txt Did you check if you are getting metrics/variables data on the dashboard? No, following is the screenshot on Dashboard. ESP_Insights_MQTT_case_No_Error_Warning_Event_logs_1

vikramdattu commented 1 year ago

Hello @Sky-Soo-Ap,

Unfortunately, I am not able to reproduce the issue with IDF branch release/v5.0 yet. There are some change in the log format, which is causing this.

e.g. in your case

"\u001b[0;33mW (36229) app_main: [count][3]\u001b[0m\n"

this entire string is getting treated as an argument to printf function for some reason! Do you by any chance have changes in IDF, especially about log output which may cause this? Do check for the same.

As far as metrics and variables are concerned, those should still be visible on he dashboard. Can you please click on Metrics/variables tabs and check if those are showing?

Sky-Soo-Ap commented 1 year ago

Hi @vikramdattu, Metrics tab has just a little values and, Variables tab is empty on Dashboard. ESP_Insights_MQTT_case_Metrics ESP_Insights_MQTT_case_Variables