Skip to content

Integrate with StatsD

Permissions

Only users with ROLE_MANAGER can perform these actions.

Statsd is a network daemon that runs on the Node.js platform and listens for statistics, such as counters and timers, that are sent over UDP or TCP protocols. It then sends aggregates of the statistics to a backend services such as Graphite.

There's a short script that performs online metric scraping from the agent log file (usually /tmp/lightrun_java_agent.INFO).

cd <install-dir>/agent/stats/
./statsd_reporter.py --host <statsd-hostname> --port <statsd-port> --logfile <agent-log-file.txt>

Prerequisites

Install and configure StatsD.

Ensure you've configured piping from the IDE.

Connect to and disconnect from StatsD

  1. Open a browser and log in to your Lightrun account.

  2. Go to the Manager menu and click System Integrations.

    The page loads with all available integrations:

    Integrations Page -third

  3. From the Integrations page, click Connect from the StatsD card.

    The Statsd Integration window pops up:

    StatsD Configuration -third

  4. Complete the Server and UDP Port details, or if correct, leave the default values.

  5. Click Connect and make sure you see the approval toast message.

  6. To disable the configuration, click Disconnect.


Last update: May 5, 2021