steampipe plugin install gcp

Table: gcp_dataproc_metastore_service - Query GCP Dataproc Metastore Services using SQL

Google Cloud Dataproc Metastore is a fully managed Apache Hive metastore service that helps manage metadata for various data lakes and other data processing tools. The gcp_dataproc_metastore_service table in Steampipe allows you to query detailed information about Dataproc Metastore services in your GCP environment, including network settings, database configurations, state, and scaling options.

Table Usage Guide

The gcp_dataproc_metastore_service table enables cloud administrators, data engineers, and DevOps teams to gather insights into their Dataproc Metastore services. You can query various aspects of the service, such as its network configurations, encryption settings, scaling policies, and metadata management activities. This table is particularly useful for managing Metastore services, monitoring their health, and ensuring that the service is configured correctly for specific use cases.

Examples

Basic info

Retrieve basic information about Dataproc Metastore services, including their name, location, and state.

select
name,
location,
state,
create_time,
release_channel
from
gcp_dataproc_metastore_service;
select
name,
location,
state,
create_time,
release_channel
from
gcp_dataproc_metastore_service;

List services with specific database types

Identify Dataproc Metastore services based on the type of database they store, such as "MYSQL".

select
name,
database_type,
location,
project
from
gcp_dataproc_metastore_service
where
database_type = 'MYSQL';
select
name,
database_type,
location,
project
from
gcp_dataproc_metastore_service
where
database_type = 'MYSQL';

List services with scaling configurations

Retrieve services with defined scaling configurations, which can be useful for monitoring resource scaling and ensuring proper performance.

select
name,
scaling_config,
project,
location
from
gcp_dataproc_metastore_service
where
scaling_config is not null;
select
name,
scaling_config,
project,
location
from
gcp_dataproc_metastore_service
where
scaling_config is not null;

List services with network configurations

Fetch Dataproc Metastore services based on their network settings, such as VPC networks.

select
name,
network,
network_config,
location
from
gcp_dataproc_metastore_service
where
network is not null;
select
name,
network,
network_config,
location
from
gcp_dataproc_metastore_service
where
network is not null;

List services by state

Identify Metastore services based on their current state, such as "ACTIVE" or "FAILED."

select
name,
state,
state_message,
location
from
gcp_dataproc_metastore_service
where
state = 'ACTIVE';
select
name,
state,
state_message,
location
from
gcp_dataproc_metastore_service
where
state = 'ACTIVE';

Services with their network configurations

Retrieve Metastore services along with their associated network configurations.

select
m.name as service_name,
m.location,
m.network,
m.network_config,
n.name as network_name,
n.auto_create_subnetworks,
n.peerings
from
gcp_dataproc_metastore_service m
join gcp_compute_network n on n.name = split_part(m.network, '/', 5);
select
m.name as service_name,
m.location,
m.network,
m.network_config,
n.name as network_name,
n.auto_create_subnetworks,
n.peerings
from
gcp_dataproc_metastore_service m
join gcp_compute_network n on n.name = json_extract(m.network, '$[5]');

Schema for gcp_dataproc_metastore_service

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
akasjsonbArray of globally unique identifier strings (also known as) for the resource.
artifact_gcs_uritextA Cloud Storage URI (starting with gs://) that specifies where artifacts related to the metastore service are stored.
create_timetimestamp with time zoneThe time when the metastore service was created.
database_typetext=The database type that the Metastore service stores its data.
encryption_configjsonbInformation used to configure the Dataproc Metastore service to encrypt customer data at rest.
endpoint_uritextThe URI of the endpoint used to access the metastore service.
hive_metastore_configjsonbConfiguration information specific to running Hive metastore software as the metastore service.
locationtextThe GCP multi-region, region, or zone in which the resource is located.
maintenance_windowjsonbThe one-hour maintenance window of the metastore service.
metadata_integrationjsonbThe setting that defines how metastore metadata should be integrated with external services and systems.
metadata_management_activityjsonbThe metadata management activities of the metastore service.
nametext=The relative resource name of the metastore service.
networktextThe relative resource name of the VPC network on which the instance can be accessed.
network_configjsonbThe configuration specifying the network settings for the Dataproc Metastore service.
portbigintThe TCP port at which the metastore service is reached. Default: 9083.
projecttext=, !=, ~~, ~~*, !~~, !~~*The GCP Project in which the resource is located.
release_channeltext=The release channel of the service. If unspecified, defaults to STABLE.
scaling_configjsonbScaling configuration of the metastore service.
self_linktextServer-defined URL for the resource.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
statetext=The current state of the metastore service.
state_messagetextAdditional information about the current state of the metastore service, if available.
tagsjsonbA map of tags for the resource.
telemetry_configjsonbThe configuration specifying telemetry settings for the Dataproc Metastore service.
tiertextThe tier of the service.
titletextTitle of the resource.
uidtext=The globally unique resource identifier of the metastore service.
update_timetimestamp with time zoneThe time when the metastore service was last updated.

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)" -- gcp

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

steampipe_export_gcp --config '<your_config>' gcp_dataproc_metastore_service