Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do we need telegraf when using statsd

I see the combination statsd + telegraf + influxdb used all the time.

  • Statsd collects, aggregates and forwards metrics
  • Telegraf aggregates and forwards metrics

Why not use just the statsd (without telegraf) to aggregate and forward metrics? What is the added benefit of including telegraf?

like image 227
andree Avatar asked Feb 21 '17 10:02

andree


People also ask

Why should I use Telegraf?

Why use Telegraf? Telegraf is a server-based agent for collecting and sending all metrics and events from databases, systems, and IoT sensors. Written in Go, it compiles into a single binary with no external dependencies, and requires a minimal memory footprint.

Why do we need StatsD?

StatsD allows you to capture different types of metrics depending on your needs: today those are Gauges, Counters, Timing Summary Statistics, and Sets. This can be as simple as adding a decorator to methods you want to time, or a one-liner to track a gauge value.

What is StatsD protocol?

StatsD is a standard and, by extension, a set of tools that can be used to send, collect, and aggregate custom metrics from any application. Originally, StatsD referred to a daemon written by Etsy in Node.

What is metrics in Telegraf?

Telegraf metrics are the internal representation used to model data during processing. These metrics are closely based on InfluxDB's data model and contain four main components: Measurement name: Description and namespace for the metric. Tags: Key/Value string pairs and usually used to identify the metric.


1 Answers

The last update to Etsy's statsd project was in 2016. One advantage of using telegraf is that it is an active project. Since telegraf has a Statsd plugin, it's possible that you don't need both.

like image 123
righdforsa Avatar answered Oct 13 '22 10:10

righdforsa