#support

Troubleshooting K8s POD's Log Alert Creation

TLDR chintan faced issues setting up log alerts using Query Builder. After confirmation from Ankit that it works now and help from vishal-signoz to adjust the time period, chintan resolved the issue.

Powered by Struct AI
+11
raised_hands1
6
1mo
Solved
Join the chat
Aug 07, 2023 (1 month ago)
chintan
Photo of md5-5160a496f51f350885fb9a7bc6b8004b
chintan
06:57 PM
I did setup few Log based alert for K8s POD's log through Query Builder but didn't generate alert then i came to know about this
Note: Presently the logs, traces and exceptions-based alerts support only Clickhouse Query based metric.

Dose that means i have to write ClickHouse query only and can't use Query Builder available into "Create an Alert" section ? is that correct ?
Image 1 for I did setup few Log based alert for K8s POD's log through <code>Query Builder</code> but didn't generate alert then i came to know about <a href="https://signoz.io/docs/userguide/alerts-management/#steps-to-create-alert-rules" target="_blank">this</a><br><pre><code>Note: Presently the logs, traces and exceptions-based alerts support only Clickhouse Query based metric.</code></pre><br>Dose that means i have to write <code>ClickHouse query</code> only and can't use <code>Query Builder</code> available into "Create an Alert" section ? is that correct ?
Ankit
Photo of md5-dbe7088320fe1d922707613e02f3420d
Ankit
07:29 PM
I think this is old...you can use query builder now. cc Ashu
+11
chintan
Photo of md5-5160a496f51f350885fb9a7bc6b8004b
chintan
07:43 PM
Thanks Ankit for response - in Log Section i can see result of 4 ERROR found but when I write same query in Alert it showing No data through Query Builder - we are at latest version v0.25.3. Let me know if I'm doing something wrong ... Ashu
Image 1 for Thanks <span class="s-mention s-user"> <strong>Ankit</strong></span> for response - in <code>Log</code> Section i can see result of 4 ERROR found but when I write same query in <code>Alert</code> it showing <code>No data</code> through <code>Query Builder</code> - we are at latest version v0.25.3. Let me know if I'm doing something wrong ... <span class="s-mention s-user"> <strong>Ashu</strong></span>Image 2 for Thanks <span class="s-mention s-user"> <strong>Ankit</strong></span> for response - in <code>Log</code> Section i can see result of 4 ERROR found but when I write same query in <code>Alert</code> it showing <code>No data</code> through <code>Query Builder</code> - we are at latest version v0.25.3. Let me know if I'm doing something wrong ... <span class="s-mention s-user"> <strong>Ashu</strong></span>
Aug 08, 2023 (1 month ago)
vishal-signoz
Photo of md5-f936d3e5743d23344d6c60813189716f
vishal-signoz
03:20 AM
It might be possible that error has not occurred recently. Can you try to generate error again and check?
03:26
vishal-signoz
03:26 AM
Also try updating the time period to 24 hrs, does it works?
Image 1 for Also try updating the time period to 24 hrs, does it works?
chintan
Photo of md5-5160a496f51f350885fb9a7bc6b8004b
chintan
08:00 PM
Thanks vishal-signoz after setting up duration in Step 2 - Define Alert Conditions i can see data in plot through Query Builder as well...
Image 1 for Thanks <span class="s-mention s-user"> <strong>vishal-signoz</strong></span> after setting up duration in <strong><code>Step 2 - Define Alert Conditions</code> i can see data in plot through <code>Query Builder</code> as well...</strong>
raised_hands1