Fine0830 commented on a change in pull request #4228: Support Browser protocol at OAP URL: https://github.com/apache/skywalking/pull/4228#discussion_r373828732
########## File path: oap-server/server-bootstrap/src/main/resources/browser_analysis.oal ########## @@ -0,0 +1,87 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one or more +* contributor license agreements. See the NOTICE file distributed with +* this work for additional information regarding copyright ownership. +* The ASF licenses this file to You under the Apache License, Version 2.0 +* (the "License"); you may not use this file except in compliance with +* the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +*/ + +// Browser service +browser_redirect_avg = from(BrowserPerfDetail.redirectTime).longAvg(); +browser_dns_avg = from(BrowserPerfDetail.dnsTime).longAvg(); +browser_req_avg = from(BrowserPerfDetail.reqTime).longAvg(); +browser_dom_analysis_avg = from(BrowserPerfDetail.domAnalysisTime).longAvg(); +browser_dom_ready_avg = from(BrowserPerfDetail.domReadyTime).longAvg(); +browser_blank_avg = from(BrowserPerfDetail.blankTime).longAvg(); + +// Multiple values including p50, p75, p90, p95, p99 +browser_redirect_percentile = from(BrowserPerfDetail.redirectTime).percentile(10); +browser_dns_percentile = from(BrowserPerfDetail.dnsTime).percentile(10); +browser_req_percentile = from(BrowserPerfDetail.reqTime).percentile(10); +browser_dom_analysis_percentile = from(BrowserPerfDetail.domAnalysisTime).percentile(10); +browser_dom_ready_percentile = from(BrowserPerfDetail.domReadyTime).percentile(10); +browser_blank_percentile = from(BrowserPerfDetail.blankTime).percentile(10); Review comment: I don't think we need those metrics. service page metrics are enough. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services