PHPackages                             basilicom-pimcore-plugin/librato - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. basilicom-pimcore-plugin/librato

ActivePimcore-plugin

basilicom-pimcore-plugin/librato
================================

Configure and use Librato metrics with Pimcore

1.0.0(10y ago)02.7kBSD-3-ClausePHPPHP &gt;=5.4.0

Since Jun 24Pushed 10y ago3 watchersCompare

[ Source](https://github.com/basilicom/pimcore-plugin-librato)[ Packagist](https://packagist.org/packages/basilicom-pimcore-plugin/librato)[ Docs](http://basilicom.de/en/pimcore)[ RSS](/packages/basilicom-pimcore-plugin-librato/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Librato Pimcore Plugin
======================

[](#librato-pimcore-plugin)

[![Codacy Badge](https://camo.githubusercontent.com/5d8c86a17dbf3d617ca64218714eb8e128b084de9af19c11dc09a630ba4381c9/68747470733a2f2f7777772e636f646163792e636f6d2f70726f6a6563742f62616467652f3430393531666633653239653438313338316239623438323663616663663839)](https://www.codacy.com/app/basilicom/pimcore-plugin-librato)[![Dependency Status](https://camo.githubusercontent.com/8eeaacf65803acad57fcc620fc3d05478a93f3be3a57b608abfd24b9bc832a54/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f626173696c69636f6d2d70696d636f72652d706c7567696e3a6c69627261746f2f312e302e302f62616467652e737667)](https://www.versioneye.com/php/basilicom-pimcore-plugin:librato/1.0.0)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2a786e42cd50256ea1157d3c2a78c31e0f2356c8dad785fb28d1fc5f4a94a0a8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626173696c69636f6d2f70696d636f72652d706c7567696e2d6c69627261746f2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/basilicom/pimcore-plugin-librato/?branch=master)[![Build Status](https://camo.githubusercontent.com/9a0faf21199aab230022a3e4c8fa05d3ef80401464455f69570167eed833bf0e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626173696c69636f6d2f70696d636f72652d706c7567696e2d6c69627261746f2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/basilicom/pimcore-plugin-librato/build-status/master)[![SensioLabsInsight](https://camo.githubusercontent.com/6a6cdff5c199b8111168d873b1e34be174e8eed97a445c29a72e956864099bd4/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35316564333064302d343039612d343965322d393333382d6536613633393031313632652f6d696e692e706e67)](https://insight.sensiolabs.com/projects/51ed30d0-409a-49e2-9338-e6a63901162e)

Developer info: [Pimcore at basilicom](http://basilicom.de/en/pimcore)

Synopsis
--------

[](#synopsis)

This Pimcore  plugin simplifies recording stats and metrics to the Librato service.

Code Example / Method of Operation
----------------------------------

[](#code-example--method-of-operation)

If installed and enabled, the plugin hooks into the maintenance process/script of pimcore (via the "system.maintenance" event) and sends custom metric values every five minutes to the Librato servers.

Metrics can be defined via SQL queries and/or static methods.

Motivation
----------

[](#motivation)

Monitoring business values is a crucial part of every application. Librato is a powerful external service for recording metrics and analyzing stats. This plugin makes Pimcore integration easy by using a simple config file and hooking into the maintenance/cronjob process.

Installation
------------

[](#installation)

Add "basilicom-pimcore-plugin/librato" as a requirement to the composer.json in the toplevel directory of your Pimcore installation.

Example:

```
{
    "require": {
        "basilicom-pimcore-plugin/librato": "~1.0"
    }
}

```

Install the plugin via the Pimcore Extension Manager.

Press the "Configure" button of the Librato plugin from within the Extension Manager and set the "email" and "token" properties to the values from your Librato account ( [https://metrics.librato.com/account/api\_tokens](https://metrics.librato.com/account/api_tokens) ).

The current Pimcore database name is used as default metric source. Use the "source" property to override this.

Define some metrics. These examples cover all the possiblities:

```

    counterobject_cntselect count(*) as cnt from `objects`
    counterversion_cntselect count(*) as cnt from `versions`
    gaugephp_sample_method\Librato\Plugin::getSampleRandomMetric

```

Please note: The SQL queries and php static methods must return exactly one numerical value suitable for Librato API consumption. Types "counter" and "gauge" are supported.

Change the "enabled" property to "1" to enable sending of values.

API Reference
-------------

[](#api-reference)

If you want to send metrics to librato not on the maintenance run, but manually - use the following methods:

- &amp;\\Librato\\Plugin::getClient() returns a \\Librato\\Client configured and ready for sending metrics. Returns a dummy client if plugin is not configured/enabled.
- \\Librato\\Client-&gt;addGauge(string $name, int|float $value) - adds a gauge metric
- \\Librato\\Client-&gt;addCounter(string $name, int|float $value) - adds a counter metric
- \\Librato\\Client-&gt;flush() - sends metrics buffer to Librato

Tests
-----

[](#tests)

- none

Todo
----

[](#todo)

- Implement a simple Pimcore Dashboard Widget for Librato integration

Contributors
------------

[](#contributors)

- Christoph Luehr

License
-------

[](#license)

- BSD-3-Clause

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3982d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c0d06c93d4cfac61be4239ec123ca75a189a5275d4e1782755d85029e67b6bc?d=identicon)[christophluehr](/maintainers/christophluehr)

![](https://www.gravatar.com/avatar/a5082ec20fca835c8a833af5de2647529bad59c9423fbc58cc5625c9fbff230c?d=identicon)[IgorBenko](/maintainers/IgorBenko)

![](https://www.gravatar.com/avatar/5805831276db4e971922dbc0fecdec2b1e1a5e9f1bf166286bd4a2299330d5c1?d=identicon)[Shobba](/maintainers/Shobba)

---

Top Contributors

[![christophluehr](https://avatars.githubusercontent.com/u/1352356?v=4)](https://github.com/christophluehr "christophluehr (7 commits)")

---

Tags

pluginMetricsstatslibratopimcore

### Embed Badge

![Health badge](/badges/basilicom-pimcore-plugin-librato/health.svg)

```
[![Health](https://phpackages.com/badges/basilicom-pimcore-plugin-librato/health.svg)](https://phpackages.com/packages/basilicom-pimcore-plugin-librato)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
