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 2020/04/10 04:34:45 UTC

[GitHub] [skywalking] MilkSDF opened a new issue #4631: Question about the value of responseCode in the OAL

MilkSDF opened a new issue #4631: Question about the value of responseCode in the OAL
URL: https://github.com/apache/skywalking/issues/4631
 
 
   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [*] Question or discussion
   
   ___
   ### Question
   - What do you want to know?
   I want to monitor the responseCode of the http call ,so I define a metric in the oal file
   
   service_responseCode =  from(Service.responseCode).sum()
   
   I invoke a http request, but in the table of service_responseCode, the value is always 0.
   isn't it should be  multiple 200 or 500 ?
   
   ![image](https://user-images.githubusercontent.com/7495090/78962732-9dd2cb80-7b27-11ea-8aeb-1611dcf74913.png)
   
   how to write the expression to calculate the percent of the 500 responseCode in the http call. 
   ___
   ### 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.

----------------------------------------------------------------
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


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng closed issue #4631: Question about the value of responseCode in the OAL

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #4631: Question about the value of responseCode in the OAL
URL: https://github.com/apache/skywalking/issues/4631
 
 
   

----------------------------------------------------------------
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


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng edited a comment on issue #4631: Question about the value of responseCode in the OAL

Posted by GitBox <gi...@apache.org>.
wu-sheng edited a comment on issue #4631: Question about the value of responseCode in the OAL
URL: https://github.com/apache/skywalking/issues/4631#issuecomment-611876485
 
 
   Another thing, make sure the source.responseCode has value. We don't use this right now, especially in trace case.

----------------------------------------------------------------
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


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng commented on issue #4631: Question about the value of responseCode in the OAL

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4631: Question about the value of responseCode in the OAL
URL: https://github.com/apache/skywalking/issues/4631#issuecomment-611876207
 
 
   First. I think the right function is count, not sum.
   
   Your OAL is not right. Take this as an example.
   
   service_5xx = from(Service.*).filter(responseCode >= 500).cpm();
   
   We don't have that percent func you described, you may need to extend.

----------------------------------------------------------------
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


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng commented on issue #4631: Question about the value of responseCode in the OAL

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4631: Question about the value of responseCode in the OAL
URL: https://github.com/apache/skywalking/issues/4631#issuecomment-611876485
 
 
   Another thing, make sense the source.responseCode has value. We don't use this right now, especially in trace case.

----------------------------------------------------------------
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


With regards,
Apache Git Services