skip to navigation
skip to content

Not Logged In

performanceplatform-collector 0.1.2

performanceplatform-collector: tools for sendingdata to the Performance Platform

A python command line tool that aggregates data from third party sources and pushes the result through to the Performance Platform (see for more details). This tool will currently interface with Google Analytics and Pingdom to retrieve data.


Using pip

$ pip install performanceplatform-collector

From source

$ git clone
$ cd performanceplatform-collector
$ virtualenv venv
$ source venv/bin/activate
$ python install


pp-collector takes paths to various JSON files as arguments:

$ pp-collector -q [query file] -c [credentials file] -t [token file] -b [backdrop file]

There are also some optional command line arguments you can provide pp-collector:

Rather than logging out to log/collector.log it will output all logs to stdout/err

When it comes to submitting the gathered data to the Performance Platform it will skip
making the POST requests and instead log out the url, headers and body to your terminal.


There are four configuration files that get injected into pp-collector and are the four required parameters:

  • Query, contains everything about what the collector will do during execution. It provides an entrypoint that pp-collector will execute and provide the query and options k-v pairs:

      "entrypoint": "performanceplatform.collector.pingdom",
      "query": {
        "name": "govuk"
      "options": { },
      "data-set": {
        "data-group": "my-data-group",
        "data-set": "my-data-set"
  • Token, this holds the bearer token to be used by this collector when POSTing to the Performance Platform:

      "token": "some long hex value"
  • Credentials, passes through any usernames, passwords, API keys etc… that are required to communicate to the third party service you desire.

  • Backdrop, where backdrop lives:

      "url": ""

For our deployment of performanceplatform-collector we pull in deployment from performanceplatform-collector-config repo. You will find much more indepth information about the collector configuration in the repos README.


The following entrypoints are currently available:

Extending performanceplatform-collector

performanceplatform-collector can be extended to support new types of collector. To do so you’ll need to add new entrypoints. For each new type of collector create a file at:


Inside that file add a main function which has the following signature:

main(credentials, data_set_config, query, options, start_at, end_at)

These arguments are all strings which are forwarded from the command line.

File Type Py Version Uploaded on Size
performanceplatform-collector-0.1.2.tar.gz (md5) Source 2014-06-06 27KB
  • Downloads (All Versions):
  • 6 downloads in the last day
  • 54 downloads in the last week
  • 178 downloads in the last month