ybm metrics-exporter

Manage metrics export configuration

Use the metrics-exporter resource to create metrics export configurations for third-party tools, and assign them to clusters.

Syntax

Usage: ybm metrics-exporter [command] [flags]

Example

Create a configuration:

ybm metrics-exporter create \
    --config-name datadog1 \
    --type DATADOG \
    --datadog-spec api-key=efXXXXXXXXXXXXXXXXXXXXXXXXXXXXee,site=US1

Assign the configuration to a cluster:

ybm metrics-exporter attach \
    --config-name datadog1 \
    --cluster-name my_cluster

Commands

attach

Assign an export configuration to the specified cluster.

Flag Description
--config-name Required. Name of the export configuration.
--cluster-name Required. Name of the cluster.

create

Create an export configuration.

Flag Description
--config-name Required. Name for the export configuration.
--type Required. The third party tool to exported metrics to. Options: DATADOG.
--datadog-spec Required for type DATADOG. The Datadog export details, provided as key-value pairs.
Arguments:
  • api-key - your Datadog API key.
  • site - your datadog site parameters.

delete

Delete a specified export configuration. You can't delete configurations that are in use by a cluster.

Flag Description
--config-name Required. Name of the export configuration.

list

Display the export configurations.

pause

Pause the export of metrics from the specified cluster.

Flag Description
--cluster-name Required. Name of the cluster.

remove-from-cluster

Remove the export configuration from the specified cluster.

Flag Description
--cluster-name Required. Name of the cluster.

resume

Resume the export of metrics from the specified cluster.

Flag Description
--cluster-name Required. Name of the cluster.

update

Update an export configuration.

Flag Description
--config-name Required. Name for the export configuration.
--type Required. The third party tool to exported metrics to. Options: DATADOG.
--datadog-spec Required for type DATADOG. The Datadog export details, provided as key-value pairs.
Arguments:
  • api-key - your Datadog API key.
  • site - your datadog site parameters.