This repository contains a Graphite importer for Cloudflare and Pingdom metrics.
- Pingdom credentials including username, password and app-key
- Cloudflare credentials including email address and api-key
- Graphite server as target for the importer
- Valid
config.yml
based onconfig.yml.sample
in the current working directory
The following list contains all parameters that need to be set in the carbon
section.
Name | Description | Sample |
---|---|---|
server | Graphite server | sample.example.com |
port | Listen port on the Graphite server | 2003 |
The following list contains all parameters that need to be set in the pingdom
section.
Name | Description | Sample |
---|---|---|
username | Username of your Pingdom account | [email protected] |
password | Password of your Pingdom account | mysecretpassword |
app_key | App-key that you set in the Pingdom backend | mysecretappkey |
The following list contains all parameters that need to be set on the cloudflare
section.
The pingdom_check
section in the config.yml
is an array of dictonaries, where each dictonary represents one Pingdom check. The following list contains all parameters that need to be set for a Pingdom check.
Name | Description | Sample |
---|---|---|
name | Name of the Cloudflare zone | example.com |
E-mail address of your Cloudflare account | [email protected] | |
key | Cloudflare API key | a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 |
url | URL to Cloudflare analyticts dashboard | https://api.cloudflare.com/client/v4/zones/... |
Name | Description | Sample |
---|---|---|
id | Pingdom check id | 1234567 |
name | Full path on the Graphite server | www.example.com.http |
limit | The amount of metrics to pull from Pingdom | 10 |
There is no need to specify any checks for the Cloudflare importer. All metrics from the requests-, bandwidth- and threats-section will be gathered. However you can create multiple lists in the cloudflare
section if you have more than one zone.
- Clone the GitHub repository and change directory
- Copy
config.yml.sample
toconfig.yml
- Change the Pingdom credentails and Graphtie prameters in
config.yml
- Configure your Pingdom checks (id, name, limit)
- Run
pingdom.py
or set up a scheduled task