steampipe plugin install nomad

Table: nomad_namespace - Query Nomad Namespaces using SQL

Nomad Namespaces is a feature of HashiCorp's Nomad, an orchestration system that enables the organization and segmentation of tasks. It allows for the isolation of tasks and resources, providing a way to separate teams or environments within a single Nomad cluster. This feature enhances the efficiency and security of task management in the system.

Table Usage Guide

The nomad_namespace table provides insights into namespaces within HashiCorp's Nomad orchestration system. As a DevOps engineer, explore namespace-specific details through this table, including their configurations and associated metadata. Utilize it to understand the structure and organization of tasks within your Nomad system, and to enhance the efficiency and security of your task management.

Important Notes

  • You need to specify the namespace config argument in the nomad.spc file to be able to query this table.

Examples

Basic info

Explore the basic information of your namespaces in Nomad to gain insights into their creation and modification indices. This can be useful for tracking changes and understanding the lifecycle of your namespaces.

select
name,
description,
create_index,
modify_index
from
nomad_namespace;
select
name,
description,
create_index,
modify_index
from
nomad_namespace;

List the disabled task drivers of namespaces

Uncover the details of task drivers that are inactive within various namespaces. This allows for an assessment of system capabilities and potential areas of improvement.

select
name,
description,
capabilities -> 'DisabledTaskDrivers' as disabled_task_drivers
from
nomad_namespace;
select
name,
description,
json_extract(capabilities, '$.DisabledTaskDrivers') as disabled_task_drivers
from
nomad_namespace;

Schema for nomad_namespace

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
capabilitiesjsonbA pointer to a NamespaceCapabilities struct that defines the capabilities of the namespace.
create_indexbigint=An unsigned 64-bit integer representing the index at which the namespace was created.
descriptiontextA string providing a description or summary of the namespace.
metajsonbA map containing additional metadata associated with the namespace.
modify_indexbigintAn unsigned 64-bit integer representing the index at which the namespace was last modified.
nametext=A string representing the name of the namespace.
quotatextA string specifying the maximum usage limit for the namespace.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
titletextThe title of the namespace.

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

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

steampipe_export_nomad --config '<your_config>' nomad_namespace