timescale-cli

command module
v0.0.0-...-678e9c6 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

TimescaleDB CLI

TimescaleDB CLI is a command-line tool designed to simplify some operations within TimescaleDB instances. This unofficial tool is built to make the developers life easier. It does that by providing a terminal-based interface for common operations and automation tasks.

Usage

It is pretty simple to use it.

Configuring

Add the configuration to the config file pointing to your DB instances

timescale config add staging --host db.timescale.staging --database tsdb --port 5433 --password pass --user postgres

List configurated environments

timescale config ls

Check if the configuration is valid and connect the database

timescale config check

Remove configured environment

timescale config rm staging
Aggregation

List aggregations from specified timescale instance

timescale aggregation ls

timescale aggregation ls --hypertable metrics

timescale aggregation ls --view-name %hourly

timescale aggregation ls --hypertable metrics --view-name %hourly

Refreshes hypertables from start to end using filters for view or hypertable.

timescale aggregation refresh --env staging --start 2023-01-01 --end 2023-02-01

# Refreshes all continuous aggregations from hypertable metrics from 2023-01-01 to 2023-02-01
timescale aggregation refresh --start 2023-01-01 --end 2023-02-01 --hypertable metrics

# Refreshes all continuous aggregations ending with hourly from 2023-01-01 to 2023-02-01
timescale aggregation refresh --start 2023-01-01 --end 2023-02-01 --view-name %hourly

# Refreshes all continuous aggregations ending with hourly from 2023-01-01 to 2023-02-01
# incrementing 7 days each call
timescale aggregation refresh --start 2023-01-01 --end 2023-02-01 --view-name %hourly --pace 7
Hypertable

List the hypertables, giving the main information about it.

timescale hypertable ls

timescale hypertable ls --name %hourly

Compress chunks manually from a start to end. (TODO)

timescale hypertable compress --from 2023-01-01 --to 2024-01-01

timescale hypertable compress --name %_metrics --from 2023-01-01 --to 2024-01-01

Give detailed information about the hypertable, like how many chunks it has. (TODO)

timescale hypertable inspect metrics

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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