Skip to content

kumaya/collectd_graphite_grafana_demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collectd/Graphite/Grafana demo

This project provides a simple demonstration of Collectd, Graphite, and Grafana.

Usage

Use vagrant up --provider=libvirt to start the VM.

Provisioning will take a few minutes as packages are installed and configured.

The provision script seeds your Graphite database with some data:

  • some raw data is sent to Graphite via echo "test.count 4 date +%s" | nc -q0 127.0.0.1 2003.
  • collectd gathers Apached stats, which are also reported at http://localhost:8080/server-status

Graphite

The Graphite UI is at http://localhost:8080/ or http://192.168.33.10. The username/password is admin/admin.

You can click on metrics in the Graphite navigation tree review the graphing options. See the section "Checking out the Web Interface") in this tutorial for more information.

Grafana

Grafana is at http://192.168.33.10:3000/. The username/password is admin/admin.

You have to configure Grafana to use Graphite as a data source. Click the Grafana icon (top left corner) and click Data Sources, and Add New. Set the name as local_graphite, set as Default, type Graphite. The URL is http://192.168.33.10, access proxy, no HTTP auth.

Adding the Graphite data source

Save this, and click "Test Connection" to verify.

Once this is verified, you can start building your first dashboard.

Shutting down

Since provisioning the box from scratch takes time, you may prefer to vagrant suspend the box when you're done using it. You can then vagrant resume the box.

To destroy the box completely, use vagrant destroy. Note that if you destroy the box, any manual configuration you've done, such as creating Grafana or Graphite graphs, is lost.

References

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%