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-PhpCollectors

Collected metrics

Configuration

First of all you will need to enable status page in php-fpm.conf.

PHP-FPM

The following line should be in the config file.

Reload php-fpm service.

Nginx

In the Nginx config most likely you have to create an explicit location for this. It’s good practice to allow connection from only localhost.

After reload nginx you can test the setup from commandline.

If this returned the list of metrics that means it’s working.

Diamond

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

Restart Diamond and you’re all set.

You might like these too

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-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-Ph...
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...

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.
  • zhouhanrong

    [MainThread] Failed to initialize Collector: PhpFpmCollector. Traceback (most recent call last)

    help me ! ! !

    • admin

      Hi!

      You’re probably using newer version of Diamond and this collector was implemented for the older version. I was planning to update this as well. I will take a look on the weekend and let you know if you can upgrade the collector.