Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skywalking alarm filter usage not work #5001

Closed
1 task
bonnieguo opened this issue Jul 1, 2020 · 5 comments
Closed
1 task

skywalking alarm filter usage not work #5001

bonnieguo opened this issue Jul 1, 2020 · 5 comments
Labels
question End user question and discussion.
Milestone

Comments

@bonnieguo
Copy link

Please answer these questions before submitting your issue.

  • Why do you submit this issue?
  • Question or discussion

Question

in skywalking alarm filter, in the file :alarm-settings.yml, i want to create a alarm rule and filter out some endpoint and service,
use the exclude-names and exclude-names-regex, but seems not work

the version of my skywalking is 7.0
use it as below: hairuo-gateway is a service
exclude-names:

  • hairuo-gateway

exclude-names-regex:

  • ./${server.error.path:${error.path:/error}}.
  • .hairuo-gateway.
  • /${server.error.path:${error.path:/error}} in component-distribution
  • /${server.error.path:${error.path:/error}} in component-distribution
  • bizcrm_saasb_initAcsDataFromContract in biz-crm-bridge-crm

the alarm i recevie is like this
[
{
"scopeId":3,
"scope":"ENDPOINT",
"name":"/crm/web/generic/bizcrm/saasb/home/queryHomeMenu in hairuo-gateway",
"id0":684,
"id1":0,
"ruleName":"endpoint_sla_49_rule",
"alarmMessage":"endpoint /crm/web/generic/bizcrm/saasb/home/queryHomeMenu in hairuo-gateway",
"startTime":1593581843991
}
]

[
{
"scopeId":3,
"scope":"ENDPOINT",
"name":"/${server.error.path:${error.path:/error}} in cloudwareaiinvite-web",
"id0":1279,
"id1":0,
"ruleName":"endpoint_sla_49_rule",
"alarmMessage":"endpoint /${server.error.path:${error.path:/error}} in cloudwareaiinvite-web",
"startTime":1593581845785
}
]

is there any wrong with it?
__

Bug

  • Which version of SkyWalking, OS and JRE?

  • Which company or project?

  • What happen?
    If possible, provide a way for reproducing the error. e.g. demo application, component version.


Requirement or improvement

  • Please describe about your requirements or improvement suggestions.
@wu-sheng
Copy link
Member

wu-sheng commented Jul 1, 2020

Endpoint is not service, it belongs to a service.

/crm/web/generic/bizcrm/saasb/home/queryHomeMenu in hairuo-gateway

This is the endpoint name in the alarm. Make sure your name regex matching them. RunningRule#in is the core, debug it if necessary.

@wu-sheng wu-sheng closed this as completed Jul 1, 2020
@wu-sheng wu-sheng added this to the 8.1.0 milestone Jul 1, 2020
@wu-sheng wu-sheng added the question End user question and discussion. label Jul 1, 2020
@bonnieguo
Copy link
Author

bonnieguo commented Jul 1, 2020

for the endpoint mentioned above:
/crm/web/generic/bizcrm/saasb/home/queryHomeMenu in hairuo-gateway

i try to use
.*hairuo-gateway.*

to regex match to it ,but it seems not work

@bonnieguo
Copy link
Author

.*hairuo-gateway.*

@wu-sheng
Copy link
Member

wu-sheng commented Jul 1, 2020

You should not ask for Regex. This is not the thing we created.

@wu-sheng
Copy link
Member

wu-sheng commented Jul 1, 2020

I have told you the codes, do your local tests, and read codes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question End user question and discussion.
Projects
None yet
Development

No branches or pull requests

2 participants