boyney123 / garie-lighthouse

Lighthouse Garie plugin. Polls websites to checkout performance metrics also supports webhooks.
MIT License
50 stars 24 forks source link

custom Data collect #14

Open fadomire opened 5 years ago

fadomire commented 5 years ago

Hello, thanks for this great project

it would be cool if we could choose the Data collected

typically, i'm using performance.mark and performance.measure to track key execution time in my app

those measure are reported in lighthouse report as "User Timing marks and measures" in the performance part for e.g : Name | Type | Start Time | Duration ui:init | Measure | 848.8 ms | 214.87 ms

i'd like to include them in Garie dashboards

fadomire commented 5 years ago

after taking a look at the code, it seems collected audits are hardcoded const auditData = ['errors-in-console', 'time-to-first-byte', 'interactive', 'redirects']; the audit i want to collect is user-timings i think

maybe the auditData can be specified via config ?