steampipe plugin install pipes

Table: pipes_tenant - Query Pipes Tenants using SQL

Pipes Tenants are entities within the Pipes service representing groups or organizations that utilize the service. They contain comprehensive information about the tenant, including creation and update times, state, and various usage thresholds. Managing these tenants is crucial for ensuring proper allocation and monitoring of resources.

Table Usage Guide

The pipes_tenant table provides detailed insights into the tenants within the Pipes service. As a System Administrator or a DevOps Engineer, use this table to explore tenant-specific details such as their state, creation and update times, and usage thresholds. This information is vital for tenant lifecycle management, resource allocation, and ensuring compliance with usage policies.

Examples

Basic info

Retrieve basic information about tenants, including their display name, handle, and current state. This can help in understanding the overall tenant landscape and monitoring their statuses.

select
id,
display_name,
handle,
state
from
pipes_tenant;
select
id,
display_name,
handle,
state
from
pipes_tenant;

List active tenants

Identify active tenants to manage and allocate resources efficiently. Active tenants are those that are currently utilizing the Pipes service.

select
id,
display_name,
handle,
state
from
pipes_tenant
where
state = 'active';
select
id,
display_name,
handle,
state
from
pipes_tenant
where
state = 'active';

List tenants created in the last 30 days

Find tenants that were created in the last 30 days to monitor new additions and ensure they are onboarded properly.

select
id,
display_name,
handle,
created_at
from
pipes_tenant
where
created_at >= (current_date - interval '30' day);
select
id,
display_name,
handle,
created_at
from
pipes_tenant
where
created_at >= date('now', '-30 day');

Tenants exceeding compute usage threshold

Identify tenants whose compute usage exceeds the set threshold, which is essential for managing and preventing resource overuse.

select
id,
display_name,
handle,
usage_compute_threshold,
usage_compute_action
from
pipes_tenant
where
usage_compute_threshold < (current_compute_usage);
select
id,
display_name,
handle,
usage_compute_threshold,
usage_compute_action
from
pipes_tenant
where
usage_compute_threshold < (current_compute_usage);

Schema for pipes_tenant

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
avatar_urltextThe avatar URL of the tenant.
created_attimestamp with time zoneThe time of creation in ISO 8601 UTC.
created_by_idtextThe ID of the user that created this.
deleted_attimestamp with time zoneThe time the item was deleted in ISO 8601 UTC.
deleted_by_idtextThe ID of the user that performed the deletion.
display_nametextThe display name of the tenant.
handletext=The handle name of the tenant.
idtextThe unique identifier of the tenant.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
statetextThe state of the tenant.
updated_attimestamp with time zoneThe time of the last update in ISO 8601 UTC.
updated_by_idtextThe ID of the user that performed the last update.
usage_compute_actiontextThe action to take when compute usage exceeds the threshold.
usage_compute_thresholdbigintThe threshold for compute usage.
usage_storage_actiontextThe action to take when storage usage exceeds the threshold.
usage_storage_thresholdbigintThe threshold for storage usage.
usage_user_actiontextThe action to take when user usage exceeds the threshold.
usage_user_thresholdbigintThe threshold for user usage.
user_idtext=, !=, ~~, ~~*, !~~, !~~*The unique identifier for the user.
version_idbigintThe version ID of this item.

Export

This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- pipes

You can pass the configuration to the command with the --config argument:

steampipe_export_pipes --config '<your_config>' pipes_tenant