PHP-APC collector for Diamond published

I’ve created the php-apc status collector for Diamond. It’s available on github under Diamond-PhpCollectors: https://github.com/charlesnagy/Diamond-PhpCollectors

This collector is for collecting APC (Alternative PHP Cache) statistics for Graphite.

Configuration

To be able to use the plugin first of all you will need to put the included stats_apc.php to the www directory where Apache or Nginx (or whatever webserver you like) will be able to serve from. The following configurations assume nginx setup but can be easily applied to any webserver.

Nginx

Put the stats_apc.php file in the webserver root for http://localhost/. This way you will be able to crawl the statistics from the url http://localhost/stats_apc.php. You can test your setup from console:

If this returned a JSON object that means it’s working.

Diamond

In /etc/diamond/collectors/PhpApcCollector.conf insert the followings

Restart Diamond and you’re all set.

You might like these too

Lvm status and statistics collector for Diamond/Gr... I need to monitor snapshot usage pv free space and a bunch of other parameters on a lot of servers. As we are using graphite and diamond for monitorin...
Flashcache stats collector for Diamond / Graphite I have upgraded the LVM collector in my StorageCollector repository on github (https://github.com/charlesnagy/Diamond-StorageCollectors) to match the ...
PHP-FPM collector for Diamond published I've created the php-fpm status collector for Diamond. It's available on github under Diamond-PhpCollectors: https://github.com/charlesnagy/Diamond-Ph...

About charlesnagy

I'm out of many things mostly automation expert, database specialist, system engineer and software architect with passion towards data, searching it, analyze it, learn from it. I learn by experimenting and this blog is a result of these experiments and some other random thought I have time to time.
Bookmark the permalink.