GitHub is a web-based hosting service for version control using Git. It offers the distributed version control and source code management functionality of Git and adds access control and collaboration features.
This integration installs and configures Telegraf to send Github metrics into Wavefront. Telegraf is a light-weight server process capable of collecting, processing, aggregating, and sending metrics to a Wavefront proxy.
In addition to setting up the metrics flow, this integration installs a dashboard. Here are the Overview and Events sections of a dashboard displaying Github metrics:
To see a list of the metrics for this integration, select the integration from https://github.com/influxdata/telegraf/tree/master/plugins/inputs.
Step 1. Install the Telegraf Agent
This integration uses the Webhooks input plugin for Telegraf. If you’ve already installed Telegraf on your server(s), you can skip to Step 2.
Log in to your Wavefront instance and follow the instructions in the Setup tab to install Telegraf and a Wavefront proxy in your environment. If a proxy is already running in your environment, you can select that proxy and the Telegraf install command connects with that proxy. Sign up for a free trial to check it out!
Step 2. Configure the Telegraf Webhooks input plugin
webhooks.conf file in
/etc/telegraf/telegraf.d and add the following snippet:
# ## A Webhooks Event collector [[inputs.webhooks]] # ## Address and port to host Webhook listener on service_address = ":1619" # [inputs.webhooks.github] path = "/github"
See the Telegraf documentation for details.
Step 3. Restart Telegraf
sudo service telegraf restart to restart your Telegraf agent.
Step 4. Configure Github Webhooks Services
To capture metrics from Github you should configure your Organization’s Webhooks to point at the webhooks service. To do this:
- Sign in, then select the related repository you own.
- Click on Settings on the right panel.
- Then click on Webhooks on the left panel.
- Click on the Add Webhook button.
- Set Payload URL to
- Set Content type to
- Select Send me everything.
- Leave the Active checkbox checked.
- Click on Add webhook to save the webhook.