cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Incident based on http response code

stefan_klug
Newcomer

I've created a business transaction with a measure. This measure is a filter on http response status code >= 400.

The BT counts the occurrences like charm.

But if I define a incident based on the measure (filter) of the BT, it does not trigger.

I defined it like this:

Measure (filter):

URI contains: <part of the URI>

BT Evaluation/Filter/Splitting...:

Match: greater

Value: 399

Evaluation: string value

Thresholds: > 1.0

Incident Rule:

Measure: The filter above.

Threshold: severe

Aggregation: count

How do I get the incident triggered?

Thank you!

Best regards!

Stefan

6 REPLIES 6

luiz_goncalves
Inactive

So when you create your incident rule, you need to select the measure Transaction Count from your BT.
And the threshold should be how many times this error transaction appears.
For example: If I want a alert when I have more than 5 occurences of this error 400, my threshold should be Upper Severe 5, not 399 ( it is the logic for the http code on the BT, not the alert threshold).
I hope this can help you.
Regards
Luiz

stefan_klug
Newcomer

Hello @Luiz Henrique G.,

thanks for your reply but I do not see the measure Transaction Count.

I guess the solution is right in front of my eyes but I can not see it. So I've created some screenshots (some parts have to be censored, sorry).

Now I've created a new BT with a measure:

(I tried it with and without the part in the red ellipse.)

With this configuration the BT shows me that it counts occurences of the measured part. That's fine.

Now I created an incident:

The condition is the occurence of the measure (upper severe = 1.0 num).

I can not choose a Transaction Count as you advised:

Even if the BT counts the occurence of the measured part, the incident doesn't trigger...

Thanks for your help.

luiz_goncalves
Inactive

Hi Stefan,
The incident will trigger accordling with the measure you selected on the incident.
When you create the incident please select the measure you create before (Web Request - Response Status Code....) instead of selecting the entire BT.

The incident should trigger when it meets the threshold, in this case exceds or equal 1.

measure.png

incident.png

stefan_klug
Newcomer

Hi @Luiz Henrique G.,

thanks again!

I've tried it like you documented in your screenshots and created a new measure (which collects the data correct) and used this measure as the source for the incident. But again: No luck 😞

2017-02-22-08-48-46.png2017-02-22-08-49-27.png

luiz_goncalves
Inactive

Could you try to chart this measure?

stefan_klug
Newcomer

Hi @Luiz Henrique G.,

It works now. It was a really stupid problem. A downtime was misconfigured and so the incidents where not shown even if they occured.

Thank you for your help!

Best regards,

Stefan