Adding Graphs

This document shows you how to add graphs to an existing template. Much of the technical background is covered in the documentation on creating graphs, so you can treat this page as a quick-reference.

Here’s what to do:

  1. Make sure there is a blueprint, so the work is identified and tracked.
  2. Do whatever’s necessary to return the data items from the script (usually as integers, not floats, unless you’re using GAUGE).
  3. Add the data items to the magic array.
  4. Write tests as appropriate.
  5. Ensure all existing tests still pass.
  6. Add a new graph definition in the definitions/ Perl file.
  7. Add the new data items to the end of the definitions/ Perl file, in the input.
  8. Make the hashes unique.
  9. Test the graphs. Don’t forget to upgrade the PHP script!
  10. Update the documentation. Add new samples and explanatory text.
Percona Monitoring Plugins
Call Us
+1-888-316-9775 (USA - Sales)
+1-208-473-2904 (USA - Sales)
+44-208-133-0309 (UK - Sales)
0-800-051-8984 (UK - Sales)
0-800-181-0665 (GER - Sales)
+1-877-862-4316 (Emergency)
+1-855-55TRAIN (Training)
+1-925-271-5054 (Training)

Previous topic

Cacti Templates Developer Documentation

Next topic

Cacti Hash Identifiers



© Copyright 2012, Percona Inc.
Except where otherwise noted, this documentation is licensed under the following license:
CC Attribution-ShareAlike 2.0 Generic
{@ footer_documentation_bugs @}
This documentation is developed in Launchpad as part of the Percona Monitoring Plugins source code.
If you spotted innacuracies, errors, don't understood it or you think something is missing or should be improved, please file a bug.
{@ /footer_documentation_bugs @} ]]>