esl / exometer_report_graphite

Mozilla Public License 2.0
2 stars 2 forks source link

exometer_report_graphite

Copyright (c) 2014 Basho Technologies, Inc. All Rights Reserved.

Version: Feb 1 2015 23:02:37

Authors: Ulf Wiger (ulf.wiger@feuerlabs.com), Magnus Feuer (magnus.feuer@feuerlabs.com).

The graphite reporter uses the TCP/IP protocol to forward subscribed-to metrics and data points to a graphite server, such as the one provided by http://hostedgraphite.com. When the graphite reporter receives a metric-datapoint value (subscribed to through exometer_report:subscriber()), the reporter will immediately forward the key-value pair to the graphite server.

Configuring graphite reporter

Below is an example of a graphite reporter application environment, with its correct location in the hierarchy:


{exometer_core, [
    {report, [
        {reporters, [
            {exometer_report_graphite, [
                {connect_timeout, 5000},
                {prefix, "web_stats"},
                {env_prefix, "HOSTNAME"},
                {host, "carbon.hostedgraphite.com"},
                {port, 2003},
                {api_key, "267d121c-8387-459a-9326-000000000000"}
            ]}
        ]}
    ]}
]}

The following attributes are available for configuration:

Full metric naming depending on the configuration is as following:

api_key env_prefix prefix Full metric name
Metric
Prefix.Metric
EnvPrefix.Metric
EnvPrefix.Prefix.Metric
ApiKey.Metric
ApiKey.Prefix.Metric
ApiKey.EnvPrefix.Metric
ApiKey.EnvPrefix.Prefix.Metric