Doesn't the incident already tell you what the count was that led to the threshold being crossed? In the violation section of the alert, it should tell you what the count of the hogging threads was that triggered the incident.
Additionally, you can also add an action called "Thread Dump Action Plugin" which you can use to automatically trigger a thread dump every time the incident is raised as well.
Another option you have is creating a dashboard which charts the number of hogging threads and making a reference to it in the "Linked Dashboard" column of the Incident settings.
Hope this helps,
Thanks Ari. Yes we have specified in incident rule that if number of hogging threads exceeds particular value then incident should be logged. But here I want to know the count of hogging threads at the particular time the incident was logged along with the incident. Is it possible?
Yes creating dashboard will chart the number of hogging threads but we need to get the count along with the incident logged as it needs to be informed to the specific team.
Thread dump action plugin is only used to create thread dump at the moment the incident logged. But it will not give information of number of hogging threads present at that time along with the incident logged right?