Back to Influxdb

influxd-ctl node-labels set

content/enterprise_influxdb/v1/tools/influxd-ctl/node-labels/set.md

latest729 B
Original Source

The influxd-ctl node-labels set command adds or updates labels on an InfluxDB Enterprise node. Node labels appear in the output of influxd-ctl show.

Usage

sh
influxd-ctl node-labels set [flags]

Flags

FlagDescription
-labelsJSON object of label key-value pairs
-nodeidNode ID

{{% caption %}} See influxd-ctl global flags. {{% /caption %}}

Examples

sh
influxd-ctl node-labels set -nodeid 5 -labels '{"az":"us-west","nickname":"mars"}'