datadog and hashicorp debugging in the cloud with · 2020. 11. 20. · datadog @phrawzty - what is...

44
Debugging in the Cloud with Datadog and HashiCorp

Upload: others

Post on 09-Aug-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

Debugging in the Cloud with Datadog and HashiCorp

Page 2: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

TaylorDolezal

Developer AdvocateHashiCorp@onlydole

DanielMaher

Developer AdvocateDatadog

@phrawzty

Page 3: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

- What is infrastructure as code?

- Understanding observability

- Live demo

Agenda

Page 4: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

Infrastructure as Code

Page 5: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

Infrastructure

as Code

Page 6: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

Infrastructure

as Code

Page 7: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

Infrastructure

as Code

▪ executable documentation

Page 8: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

Infrastructure

as Code

▪ executable documentation

▪ enables collaboration

Page 9: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

Infrastructure

as Code

▪ executable documentation

▪ enables collaboration

▪ safe and predictable

Page 10: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

Infrastructure

as Code

▪ executable documentation

▪ enables collaboration

▪ safe and predictable

Page 11: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

HashiCorp

Configuration Language

Page 12: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

HashiCorpConfigurationLanguage

Page 13: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure
Page 14: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure
Page 15: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

Page 16: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service { key = "value"}

Page 17: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service { key = "value"}

Page 18: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

Page 19: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service "http" "web_proxy" {

}

Page 20: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service "http" "web_proxy" {

}

Page 21: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service "http" "web_proxy" { listen_addr = "127.0.0.1:8080"

}

Page 22: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service "http" "web_proxy" { listen_addr = "127.0.0.1:8080"

process "server" { command = ["proxy-app", "server"] }}

Page 23: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service "http" "web_proxy" { listen_addr = "127.0.0.1:8080"

process "server" { command = ["proxy-app", "server"] }}

Page 24: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service "http" "web_proxy" { listen_addr = "127.0.0.1:8080"

process "server" { command = ["proxy-app", "server"] }}

Page 25: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service "http" "web_proxy" { listen_addr = "127.0.0.1:8080"

process "server" { command = ["proxy-app", "server"] }}

Page 26: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service "http" "web_proxy" { listen_addr = "127.0.0.1:8080"

process "server" { command = ["proxy-app", "server"] }}

Page 27: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service "http" "web_proxy" { listen_addr = "127.0.0.1:8080"

process "server" { command = ["proxy-app", "server"] }}

variable "port" {

}

Page 28: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service "http" "web_proxy" { listen_addr = "127.0.0.1:8080"

process "server" { command = ["proxy-app", "server"] }}

variable "port" { description = "Port for web_proxy" default = 8080}

Page 29: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service "http" "web_proxy" { listen_addr = "127.0.0.1:8080"

process "server" { command = ["proxy-app", "server"] }}

variable "port" { description = "Port for web_proxy" default = 8080}

Page 30: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service "http" "web_proxy" { listen_addr = "127.0.0.1:8080"

process "server" { command = ["proxy-app", "server"] }}

variable "port" { description = "Port for web_proxy" default = 8080}

Page 31: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service "http" "web_proxy" { listen_addr = "127.0.0.1:8080"

process "server" { command = ["proxy-app", "server"] }}

variable "port" { description = "Port for web_proxy" default = 8080}

Page 32: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service "http" "web_proxy" { listen_addr = "127.0.0.1:8080"

process "server" { command = ["proxy-app", "server"] }}

variable "port" { description = "Port for web_proxy" default = 8080}

Page 33: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service "http" "web_proxy" { listen_addr = "127.0.0.1:${var.port}"

process "server" { command = ["proxy-app", "server"] }}

variable "port" { description = "Port for web_proxy" default = 8080}

Page 34: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

CODE EDITOR

HashiCorpConfigurationLanguage

CODE EDITOR

service "http" "web_proxy" { listen_addr = "127.0.0.1:${var.port}"

process "server" { command = ["proxy-app", "server"] }}

variable "port" { description = "Port for web_proxy" default = 8080}

Page 35: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

Understanding

observability

Page 36: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure
Page 37: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure
Page 38: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

One platform with seamlessly

integrated, smart tooling

Try a free trial atdatadoghq.com

Page 39: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

How do Datadog & Terraform integrate?

Page 40: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

Datadog Provider for Terraform

Page 41: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

Demo

Page 42: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

© 2019 HashiCorp

Resources

42

Sign up for Datadogdatadoghq.com/free-datadog-trial/

Sign up for Terraform Cloudapp.terraform.io/signup/account

Datadog Provider for Terraformterraform.io/docs/providers/datadog/

Demo: StoreDog Applicationgithub.com/datadog/ecommerce-workshop

Demo: Debugging the Cloud https://github.com/onlydole/debugging-the-cloud

Page 43: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

Q & A

Page 44: Datadog and HashiCorp Debugging in the Cloud with · 2020. 11. 20. · Datadog @phrawzty - What is infrastructure as code? - Understanding observability - Live demo Agenda. Infrastructure

Thank You

44