> ## Documentation Index
> Fetch the complete documentation index at: https://www.aptible.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# aptible metric_drain:create:influxdb

This command lets you create a [Metric Drain](/docs/core-concepts/observability/metrics/metrics-drains/overview) to forward your container metrics to an [InfluxDB Database](/docs/core-concepts/managed-databases/supported-databases/influxdb) hosted on Aptible.

> 📘 You must choose a destination InfluxDB Database that is within the same Environment as the Metric Drain you are creating.

# Synopsis

```
Usage:
  aptible metric_drain:create:influxdb HANDLE [flags]

Flags:
      --db string            Database handle (required)
  -e, --env string           Environment handle (alias)
      --environment string   Environment handle (required)
```
