StatsD in Standalone AppSignal Agent
The standalone AppSignal Agent runs a StatsD server over UDP on localhost
port 8125 by default. You can use this to ingest metrics from other components of your infrastructure. Any metrics added can be used as custom metrics within AppSignal.
Supported metrics
The following StatsD metrics are currently supported:
- gauge
- counter
- timers
Other, unsupported metric types, will be ignored.
Tagging
The StatsD server supports the DogStatsD extension, which means tags for metrics are supported.
Example
The following example in Ruby demonstrates how this works using the statsd-instrument
gem.
This is just to demonstrate, it is far more useful to use this from other languages that are not directly supported by AppSignal. You could use this to collect metrics from a PHP or .NET app for example.
There are numerous tools available that can extract StatsD metrics from the JVM or various databases and web servers. We're curious to see what use cases you find, do let us know!