Hi <@U01HWQ1RTC2> - I very much eager to see alert...
# support
k
Hi @User - I very much eager to see alertmanager with custom webhook support, this week. Also, need few clarity on fields available in defining an alert. Do we have a documentation - to understand the available fields for defining an alert? Mainly I am looking for some fields like, ā€¢ Traces time span is more than 20 sec ā€¢ DB queries per min is more than 100 If there is a documentation for the available fields - it will be super awesome. Thanks!
šŸ‘ 1
p
@User Will add more docs soon. Stay tuned šŸ™‚
āœ… 1
a
Hey @User webhook in under test. Should come in a few days.
āœ… 1
DB alert expr will look something like
Copy code
sum(rate(signoz_db_latency_count[1m])) by (db_system) > 100
you can remove
by (db_system)
if you want overall for the DB.
Copy code
sum(rate(signoz_db_latency_count[1m])) by (service_name) > 100
use above expr, if you want to alert when DB calls exceeds 100 for any service in a min. You can also plot the query in dashboard and check what it means
Copy code
sum(rate(signoz_db_latency_count[1m])) by (db_system)
You can play around the syntax using promql https://prometheus.io/docs/prometheus/latest/querying/basics/
Can you please explain what you mean by
ā€¢ Traces time span is more than 20 sec
k
Hi @User - whenever I have long running traces - i need to raise an alert. In attached screenshot - one of the span took more than 50 sec - i need to define alerts for them.
a
@User it is not possible to set alert for a very generic query. But if you have an idea whether this will be covered under DB calls or external calls, we can set alerts for them