tailpipe-plugin-chaos

command module
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

README

Chaos Plugin for Tailpipe

Tailpipe is an open-source CLI tool that allows you to collect logs and query them with SQL.

The Chaos Plugin for Tailpipe allows you to collect and query all column types table, all numeric column type table and more to test your plugins.

Collect and query logs: image

Getting Started

Install Tailpipe from the downloads page:

# MacOS
brew install turbot/tap/tailpipe
# Linux or Windows (WSL)
sudo /bin/sh -c "$(curl -fsSL https://tailpipe.io/install/tailpipe.sh)"

Install the plugin:

tailpipe plugin install chaos

Configure table partition, and data source (examples):

vi ~/.tailpipe/config/chaos.tpc
partition "chaos_all_columns" "chaos_all_column_types" {
  source "chaos_all_columns" {
    row_count = 1
  }
}

partition "chaos_date_time" "date_time_inc" {
  source "chaos_date_time" {
    row_count = 100
  }
}

partition "chaos_struct_columns" "struct_columns" {
  source "chaos_struct_columns" {
    row_count = 100
  }
}

Download, enrich, and save logs from your source (examples):

tailpipe collect chaos_all_columns
tailpipe collect chaos_date_time
tailpipe collect chaos_date_time

Enter interactive query mode:

tailpipe query

Run a query:

select
  smallint_column,
  float_column,
  boolean_column
from
  chaos_all_columns
limit 5;
+----------------------+-----------------------+------------------+
| smallint_column        | float_column          | boolean_column |
+----------------------+-----------------------+------------------+
| 5                      | 5.0                   | true           |
| 6                      | 6.0                   | false          |
| 7                      | 7.0                   | false          |
| 8                      | 8.0                   | true           |
| 9                      | 9.0                   | false          |
+----------------------+-----------------------+------------------+

Developing

Prerequisites:

Clone:

git clone https://github.com/turbot/tailpipe-plugin-chaos.git
cd tailpipe-plugin-chaos

After making your local changes, build the plugin, which automatically installs the new version to your ~/.tailpipe/plugins directory:

make

Re-collect your data:

tailpipe collect chaos_all_columns

Try it!

tailpipe query
> .inspect chaos_all_columns

Open Source & Contributing

This repository is published under the Apache 2.0 (source code) and CC BY-NC-ND (docs) licenses. Please see our code of conduct. We look forward to collaborating with you!

Tailpipe is a product produced from this open source software, exclusively by Turbot HQ, Inc. It is distributed under our commercial terms. Others are allowed to make their own distribution of the software, but cannot use any of the Turbot trademarks, cloud services, etc. You can learn more in our Open Source FAQ.

Get Involved

Join #tailpipe on Slack →

Want to help but don't know where to start? Pick up one of the help wanted issues:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
tables

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL