Skip to content

Telegraf: Documentation feedback on /docs/integrate/telegraf/ #243

@amotl

Description

@amotl

Documentation feedback


Problem

Other than the resources listed above, we don't show much about how to integrate with Telegraf well, and also on the tutorial, the main gist is obfuscated in favor of a full tutorial that also includes Grafana.

Solution

Full-stack / end-to-end examples are nice, but let's have a dedicated page as a another main stage for this purpose, where the focus is on the integration of CrateDB with Telegraf itself, in order to highlight the CrateDB output plugin.

The core gist seems to be this configuration snippet:

# 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@localhost/doc?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 = "_"

Metadata

Metadata

Assignees

No one assigned

    Labels

    guidanceMatters of layout, shape, and structure.reorganizeMoving content around, inside and between other systems.sanding-1200Fine sanding.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions