Skip to main content
This command lets you create a Metric Drain to forward your container metrics to an InfluxDB v2 database hosted outside Aptible.
📘 This command is for InfluxDB v2 destinations, which use organizations, buckets, and tokens for authentication. For InfluxDB v1 (which uses databases, usernames, and passwords), use metric_drain:create:influxdb:custom.

Synopsis

Usage:
  aptible metric_drain:create:influxdb:customv2 HANDLE --org ORGANIZATION --token INFLUX_TOKEN --url URL_INCLUDING_PORT --bucket INFLUX_BUCKET_NAME --environment ENVIRONMENT

Options:
  [--bucket=BUCKET]
  [--org=ORG]
  [--token=TOKEN]
  [--url=URL]
  --env, [--environment=ENVIRONMENT]

Examples

aptible metric_drain:create:influxdb:customv2 my-influxdb-v2-drain \
  --org my-org \
  --token my-influxdb-auth-token \
  --url https://influxdb.example.com:8086 \
  --bucket production-metrics \
  --environment production

Related Commands