dashboard

borgified/dashboard/datadog

Terraform Module HCL DATADOG

autogenerate dashboards based on metric prefix

Install
module "dashboard" {
source = "borgified/dashboard/datadog"
version = "0.1.17"
}
plain text: /constructs/tfmod-borgified-dashboard-datadog/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform module for autogenerating dashboards based on prefixed metrics The Terraform Datadog provider does not offer a way to autodiscover metrics, however, Datadog API can do this via GET /v1/metrics This terraform module uses an external data source list_metrics.sh to fetch a list of all available metrics filtered by a prefix so that this subset of metrics can be used as input to the datadog_dashboard resource. For example, if you have these metrics in Datadog: `` app.dev.memstats.alloc app.dev.memstats.frees app.dev.memstats.heap_released ... `` then specify prefix = "app.dev.memstats" as your input to get a dashboard of all metrics starting with that prefix.

Inputs (11)
NameTypeDescriptionDefault
prefixstringmetric prefix to pattern match against available metrics in datadog also used fo required
space_aggregationstringchoices: avg, max, min, sum required
api_keystringdatadog api key required
app_keystringdatadog app key required
scopestringthe set of tags used to choose time series for the query. eg. "environment:produ required
template_variable_prefixstringprefix of template variable""
metrics_liststringlist of metrics to provide if you dont want to use var.prefix to query them from""
template_variable_namestringname of template variable"variable1"
descriptionstringdatadog dashboard description"generated by Terraform"
template_variable_defaultstringdefault value for template variable"*"
titlestringtitle of datadog dashboard"my dashboard"
Outputs (2)
url — visit this url to go to your new dashboard
external_metrics — queryable metrics from datadog discovered
Resources (1)
datadog_dashboard
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.17
Cloud DATADOG
★ Stars4
Forks2
Total downloads1.4k
Inputs11
Outputs2
Resources1
LicenseApache-2.0
Namespaceborgified
Updated