I am creating databricks cluster using terraform and would like to setup datadog on it whenever new cluster (master/worker nodes) gets created to push logs into datadog. How do we push logs in datadog?
I was trying below but not sure how to get values of some of variables marked with ? in below code/variables to pass to datadog init script also, script mentioned in datadog portal shows to install in python/notebook but I am using as script/bash in terraform so what content need to keep/pass in init script?
This code sample is to create cluster -
resource "databricks_cluster" "cluster" {
cluster_name = abc
...
}
This code sample is to install datadog agent on driver/worker nodes as per this -
resource "databricks_global_init_script" "init-datadog" {
source = data.template_file.global_init.rendered
name = "install dd script"
}
data "template_file" "global_init" {
template = "${file("${path.module}/script/datadog-install-driver.worker.sh")}"
vars = {
DD_API_KEY = xxx
DD_ENV = dev
DB_IS_DRIVER = true
DB_DRIVER_IP = ?
DB_CLUSTER_ID = ?
SPARK_LOCAL_IP = ?
DB_DRIVER_PORT = ?
hostile = ?
DB_CLUSTER_NAME = ?
}
}