You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/02/21 08:36:28 UTC
[GitHub] [skywalking] JayeshMuley edited a comment on issue #6370: Alarm composite rules not working
JayeshMuley edited a comment on issue #6370:
URL: https://github.com/apache/skywalking/issues/6370#issuecomment-782816941
I still facing this issue where composit alerts are not coming. See the configuration file and Alerts
```yaml
rules:
service_instance_resp_time_rule:
metrics-name: service_instance_resp_time
op: ">"
threshold: 10
period: 5
count: 1
only-as-condition: false
message: High Response service Instance {name} Message1
service_instance_cpm_rule:
metrics-name: service_instance_cpm
op: ">"
threshold: 10
period: 5
count: 1
only-as-condition: false
message: High cpm service Instance Instance {name} Message2
instance_jvm_cpu_rule:
metrics-name: instance_jvm_cpu
op: ">"
threshold: 10
period: 5
count: 1
only-as-condition: false
message: CPU Util Instance {name} Message3
composite-rules:
comp1_rule:
expression: service_instance_resp_time_rule && instance_jvm_cpu_rule
message: Message4 service Instance {name}
```
```text
mysql> select name , start_time , substr(alarm_message,1,50) , time_bucket from alarm_record where name like '%core_perf.service%' and alarm_message like '%Message1%';
+--------------------------------------------+---------------+----------------------------------------------------+----------------+
| name | start_time | substr(alarm_message,1,50) | time_bucket |
+--------------------------------------------+---------------+----------------------------------------------------+----------------+
| "DIEPAIOPSITCENT7534" of core_perf.service | 1613893462668 | High Response service Instance "DIEPAIOPSITCENT753 | 20210221131422 |
| "DIEPAIOPSITCENT7534" of core_perf.service | 1613893822668 | High Response service Instance "DIEPAIOPSITCENT753 | 20210221132022 |
| "DIEPAIOPSITCENT7534" of core_perf.service | 1613894182668 | High Response service Instance "DIEPAIOPSITCENT753 | 20210221132622 |
+--------------------------------------------+---------------+----------------------------------------------------+----------------+
3 rows in set (0.02 sec)
mysql>
mysql>
mysql>
mysql> select name , start_time , substr(alarm_message,1,50) , time_bucket from alarm_record where name like '%core_perf.service%' and alarm_message like '%Message2%';
+--------------------------------------------+---------------+----------------------------------------------------+----------------+
| name | start_time | substr(alarm_message,1,50) | time_bucket |
+--------------------------------------------+---------------+----------------------------------------------------+----------------+
| "DIEPAIOPSITCENT7534" of core_perf.service | 1613893402669 | High cpm service Instance Instance "DIEPAIOPSITCE | 20210221131322 |
| "DIEPAIOPSITCENT7534" of core_perf.service | 1613893762668 | High cpm service Instance Instance "DIEPAIOPSITCE | 20210221131922 |
| "DIEPAIOPSITCENT7534" of core_perf.service | 1613894122668 | High cpm service Instance Instance "DIEPAIOPSITCE | 20210221132522 |
+--------------------------------------------+---------------+----------------------------------------------------+----------------+
3 rows in set (0.00 sec)
mysql>
mysql>
mysql> select * from alarm_record where alarm_message like '%Message4%';
Empty set (0.00 sec)
```
Kindly suggest.
Thanks and Regards,
Jayesh Muley
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org