No commit activity in last 3 years
No release in over 3 years
Grab pagespeed results from external services to use them in e.g. munin.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Grab pagespeed results from external services to use them in e.g. munin.
Currently only support webpagetest.org, which is not very reliable and sometimes slow.

Not ready for production just a toy project.

data = PagespeedGrabber.fetch('google.com', :from => 'webpagetest', :timeout => 200)

Munin

1 of 8 graphs generated via munin: Pagespeed score over 1 day for initial request:
score for initial reqest over 1 day

Download

sudo su

gem install pagespeed_grabber
curl --insecure https://github.com/grosser/pagespeed_grabber/raw/master/munin.rb > /usr/share/munin/plugins/pagespeed_grabber
chmod +x /usr/share/munin/plugins/pagespeed_grabber

Add data cron and run it once

*/5 * * * * ruby /usr/share/munin/plugins/pagespeed_grabber cache webpagetest google.com

Add plugins for time, data, score, connections graphs

ruby -e "%w[time data score connections].each{|s| %w[initial repeated].each{|t| %x{ln -s /usr/share/munin/plugins/pagespeed_grabber /etc/munin/plugins/webpagetest_#{s}_#{t}_google.com}  } }"

Check plugins work

ruby /etc/munin/plugins/webpagetest_time_google.com config    # config works
ruby /etc/munin/plugins/webpagetest_time_google.com           # values are returned

Restart

/etc/init.d/munin-node.restart

TODO

  • add other services
  • make less hacky/use official apis
  • generate initial AND repeated graph
  • find a reliable service
  • parse .har file from e.g. loads.in

Authors

Michael Grosser
michael@grosser.it
Hereby placed under public domain, do what you want, just do not hold me accountable...