InfluxDB stacks

    Discover how to use InfluxDB stacks to save time.

    InfluxDB automatically creates a new stack each time you apply an InfluxDB template without providing a stack ID. To manually create or initialize a new stack, use the .

    Use the influx apply command to update a stack with a modified template. When applying a template to an existing stack, InfluxDB checks to see if the resources in the template match existing resources. InfluxDB updates, adds, and removes resources to resolve differences between the current state of the stack and the newly applied template.

    Read more

    Use the to remove an InfluxDB stack and all its associated resources.

    Key differences between stacks and templates:

    • A template defines a set of resources in a text file outside of InfluxDB. When you apply a template, a stack is automatically created to manage the applied template.
    • Stacks add, modify or delete resources in an instance.
    • Templates do not recognize resources in an instance. All resources in the template are added, creating duplicate resources if a resource already exists.