All Downloads are FREE. Search and download functionalities are using the official Maven repository.

manual.collectd.rst Maven / Gradle / Ivy

.. _manual-collectd:

#####################
Reporting to Collectd
#####################

The ``metrics-collectd`` module provides ``CollectdReporter``, which allows your application to
constantly stream metric values to a Collectd_ server:

.. _Collectd: https://collectd.org/

.. code-block:: java

    final Sender sender = new Sender("collectd.example.com", 2007);
    final CollectdReporter reporter = CollectdReporter.forRegistry(registry)
                                                      .convertRatesTo(TimeUnit.SECONDS)
                                                      .convertDurationsTo(TimeUnit.MILLISECONDS)
                                                      .filter(MetricFilter.ALL)
                                                      .build(sender);
    reporter.start(1, TimeUnit.MINUTES);





© 2015 - 2025 Weber Informatics LLC | Privacy Policy