Announcing the LogDNA Terraform Provider Beta

4 MIN READ
MIN READ
TABLE OF CONTENTS
    4 MIN READ
    MIN READ

    LogDNA is now Mezmo but the product you know and love is here to stay.

    We’re excited to announce the public beta of the LogDNA Terraform Provider, allowing organizations to manage Views and Alerts programmatically via Terraform.

    Today, more teams than ever are adopting Infrastructure as Code (IaC) to reduce human error and create efficiently scaled workflows for their infrastructure. Additionally, teams are looking to bring the same benefits of scalability and predictability into their SaaS-based observability stack.

    Now, with the LogDNA Terraform provider, teams can manage their Views and Alerts across a stack with Terraform, choose to adopt GitOps workflows, and maintain consistency in the Views and Alerts created for their infrastructure and microservices.

    Using the LogDNA Terraform Provider, your team can:

    • Provide Terraform templates for service teams to set up best-practice Views and Alerts automatically for every new service deployed.
    • Create Terraform configurations to ensure new regions have identical Views and Alerts setups for uniform monitoring across global deployments.
    • Adopt GitOps workflows to reduce the chance of human error and create an audit trail to trace back configuration changes in your LogDNA account.

    To get started, grab your account service key in LogDNA, and try out the following configuration in your main.tf file:

    terraform {
     required_providers {

       logdna = {

         source = "logdna/logdna"

         version = "1.0.0"

       }

     }

    }
    # Configure the LogDNA Provider
    provider "logdna" {
     servicekey = "xxxxxxxxxxxxxxxxxxxxxxxx"

     url = "https://api.logdna.com" # (Optional) specify a LogDNA Region
    }

    resource "logdna_view" "http500" {
    name     = "HTTP 500s"

    query    = "response:500"

    email_channel {

       emails          = ["test@logdna.test"]  # Email address to send alerts to
       operator        = "presence"           # Trigger on the presence of lines

       terminal        = "true"               # Alert at the end of the trigger interval

       triggerinterval = "15m"                # Time window for alert (15 minutes)

       triggerlimit    = 15                   # Lines threshold for alert (15 lines)

    }

    }
    Check out the docs to learn more about how to get started with our Terraform Provider, available to all LogDNA customers. Want to configure your account without Terraform? Check out our Configuration API announcement here.

    We know that Views and Alerts are just the tip of the iceberg for things our users would like to programmatically configure. If you’d like to see more configurable resources, please feel free to open a PR or issue in our LogDNA Terraform Provider Github repository. We’re looking forward to building on these first steps continually to help further automate your workflows within LogDNA.

    false
    false
    Michael Shi

    10.29.20

    Michael was a Product Manager at LogDNA for developer experience. Michael loves engaging with our users, tinkering with dev tools, and delivering delightful products.

    SHARE ARTICLE

    RSS FEED