terraform/website/source/docs/providers/datadog/index.html.markdown

44 lines
1.1 KiB
Markdown
Raw Normal View History

2016-02-08 10:00:00 +01:00
---
layout: "datadog"
page_title: "Provider: Datadog"
sidebar_current: "docs-datadog-index"
description: |-
The Datadog provider is used to interact with the resources supported by Datadog. The provider needs to be configured with the proper credentials before it can be used.
---
# Datadog Provider
The [Datadog](https://www.datadoghq.com) provider is used to interact with the
resources supported by Datadog. The provider needs to be configured
with the proper credentials before it can be used.
Use the navigation to the left to read about the available resources.
## Example Usage
```
# Configure the Datadog provider
provider "datadog" {
api_key = "${var.datadog_api_key}"
app_key = "${var.datadog_app_key}"
2016-02-08 10:00:00 +01:00
}
# Create a new monitor
2016-02-08 10:00:00 +01:00
resource "datadog_monitor" "default" {
# ...
2016-02-08 10:00:00 +01:00
}
# Create a new timeboard
resource "datadog_timeboard" "default" {
# ...
}
2016-02-08 10:00:00 +01:00
```
## Argument Reference
The following arguments are supported:
* `api_key` - (Required) Datadog API key. This can also be set via the `DATADOG_API_KEY` environment variable.
* `app_key` - (Required) Datadog APP key. This can also be set via the `DATADOG_APP_KEY` environment variable.
2016-02-08 10:00:00 +01:00