Skip to content
siedi edited this page Jan 4, 2016 · 1 revision
  • Clone the repository git clone https://github.com/siedi/webpagetest-influxdb.git.
  • If you want to use the public servers from webpagetest you have to request an API key first.
  • Rename config.json.example to config.json and make your changes:
{
  "consoletimer" : 10,                             # how often we print out something on the console while we are waiting for the test results
  "wpt" : {
    "apikey" : "ADD_YOUR_KEY_HERE",                # your API key
    "location" : "Dulles:Chrome",                  # the default agent location, can be overwritten when running the individual test
    "timeout" : 500,                               # how long the scripts waits for reults from the agents, can sometimes take a long time, you might want to increase it
    "testruns" : 3,                                # should be odd and larger than 1, the higher the better, but keep your limit in mind
    "testserver" : "http://www.webpagetest.org/"   # change if your are running our provide instance
  },
  "influx" : {
    "host" : "INFLUX_DB_HOSTNAME_OR_IP",           # something like 127.0.0.1
    "port" : 8086,                                 # port to the InfluxDB, 8086 is the default
    "protocol" : "http",                           # protocol, http is the default
    "username" : "INFLUX_USER",                    # you should have created a user when installing your influxdb
    "password" : "INFLUX_PW",                      # you might want to md5 has it to avoid a clear text pw in here
    "database" : "INFLUX_DB"                       # create a new database in your influxdb instance first
  }
}
  • Run npm install

Your are done with the setup.