TelegrafΒΆ

Telegraf logo

About

Telegraf is a leading open source server agent to help you collect metrics from your stacks, sensors, and systems. More than 200 adapters to connect to other systems leaves nothing to be desired.

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

Overview

  • IoT sensors: Collect critical stateful data (pressure levels, temperature levels, etc.) with popular protocols like MQTT, ModBus, OPC-UA, and Kafka.

  • DevOps Tools and frameworks: Gather metrics from cloud platforms, containers, and orchestrators like GitHub, Kubernetes, CloudWatch, Prometheus, and more.

  • System telemetry: Metrics from system telemetry like iptables, Netstat, NGINX, and HAProxy help provide a full stack view of your apps.

Telegraf architecture overview

Synopsis

Telegraf output plugin configuration snippet for CrateDB.

# Configuration for CrateDB to send metrics to.
[[outputs.cratedb]]

  # A github.com/jackc/pgx/v4 connection string.
  # See https://pkg.go.dev/github.com/jackc/pgx/v4#ParseConfig
  url = "postgres://crate:crate@localhost/?sslmode=disable"

  # Timeout for all CrateDB queries.
  timeout = "5s"

  # Name of the table to store metrics in.
  table = "metrics"

  # If true, and the metrics table does not exist, create it automatically.
  table_create = true

  # The character(s) to replace any '.' in an object key with
  key_separator = "_"

Learn

Use Telegraf with CrateDB

How to configure Telegraf to submit metrics to CrateDB.

Load data into CrateDB using Telegraf
Blog: Use CrateDB With Telegraf, an Agent for Collecting & Reporting Metrics

Learn how to set up Telegraf, have Telegraf send metrics data to CrateDB, and visualize the collected data with Grafana.

https://cratedb.com/blog/use-cratedb-with-telegraf-an-agent-for-collecting-reporting-metrics