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

Bucky to send custom metrics #21

Open
une6 opened this issue Nov 6, 2015 · 1 comment
Open

Bucky to send custom metrics #21

une6 opened this issue Nov 6, 2015 · 1 comment

Comments

@une6
Copy link

une6 commented Nov 6, 2015

Hi guys,

Awesome job on bucky btw.
But I just wanna ask if there's a way for us to send custom metrics since currently bucky sends raw metrics and if we wanted to have precomputed ones like "TotalPageLoadTime" and have it sent to OpenTSDB

e.g.
Total Page Load Time = performance.timing.loadEventEnd – performance.timing.navigationStart
connectTime = perfData.responseEnd - perfData.requestStart

Best regards

@une6
Copy link
Author

une6 commented Nov 6, 2015

nvm, i added the following to a local copy:

for (key in _ref5) {
time = _ref5[key];
if (typeof time === 'number') {
timer.send("" + path + "." + key, time - start);
}
}

    //BL - additional precomputed metrics
    timer.send("" + path + ".TotalPageLoadTime", performance.timing.loadEventStart - performance.timing.navigationStart);
    timer.send("" + path + ".DomComplete", performance.timing.domComplete - performance.timing.navigationStart);
    timer.send("" + path + ".TimeToInteract", performance.timing.domInteractive - performance.timing.navigationStart);
    timer.send("" + path + ".DNSLookUp", performance.timing.domainLookupEnd - performance.timing.domainLookupStart);
    timer.send("" + path + ".SSLConnectionHandshake", performance.timing.connectEnd - performance.timing.secureConnectionStart);
    timer.send("" + path + ".BackendProcess", performance.timing.responseStart - performance.timing.navigationStart);
    timer.send("" + path + ".FrontendProcess", performance.timing.loadEventStart - performance.timing.responseEnd);

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

No branches or pull requests

1 participant