Skip to main content
This information is for Chronosphere Telemetry Pipeline, which is a standalone product separate from Chronosphere Observability Platform.
The SQL DB Input source plugin (name: sqldb, alias: SQL_DB_Input) lets you ingest log data from a relational database into a telemetry pipeline. If you write your logs to a relational database, you can use the SQL DB Input plugin to convert that data into a pipeline-friendly format. This plugin supports the following SQL formats:
  • Postgres
  • MySQL
  • Oracle
  • Microsoft SQL Server
  • SQLite
This is a pull-based source plugin.
This plugin doesn’t support duplicates of itself within the same pipeline.

Supported telemetry types

The for Chronosphere Telemetry Pipeline supports these telemetry types:

Configuration parameters

Use the parameters in this section to configure the . The Telemetry Pipeline web interface uses the items in the Name column to describe these parameters. Pipeline configuration files use the items in the Key column as YAML keys.

General

Advanced

Example queries

The following examples describe how to configure the SQL DB Input plugin in different hypothetical scenarios.

Serial ID

Given the following database structure, which includes an auto-increasing id:
You can use the SQL DB Input plugin to paginate over your data using id. To include such a query in your pipeline, configure the plugin as follows:
The previous query sorts by id, and then uses the id value from the previous query to paginate data.

Time-based pagination

Given the following database structure, which includes a non-sortable id:
You can use a combination of id and created_at to paginate data. To include such a query in your pipeline, configure the plugin as follows:
The previous query sorts by both id and created_at, then uses the id and created_at values from the previous query to paginate data.