From b36318f1840a0b91ff83a66f2d9cbd8cbeaa51af Mon Sep 17 00:00:00 2001 From: Colin Saliceti Date: Tue, 4 Oct 2016 11:17:23 +0100 Subject: [PATCH] Document datadog style and palette options --- .../docs/providers/datadog/r/timeboard.html.markdown | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/website/source/docs/providers/datadog/r/timeboard.html.markdown b/website/source/docs/providers/datadog/r/timeboard.html.markdown index 054f78fc5..d4b4b90a6 100644 --- a/website/source/docs/providers/datadog/r/timeboard.html.markdown +++ b/website/source/docs/providers/datadog/r/timeboard.html.markdown @@ -25,6 +25,7 @@ resource "datadog_timeboard" "redis" { viz = "timeseries" request { q = "avg:redis.info.latency_ms{$host}" + type = "bars" } } @@ -37,6 +38,9 @@ resource "datadog_timeboard" "redis" { } request { q = "avg:redis.mem.rss{$host}" + style { + palette = "warm" + } } } @@ -79,6 +83,14 @@ Nested `graph` `request` blocks have the following structure: * `q` - (Required) The query of the request. Pro tip: Use the JSON tab inside the Datadog UI to help build you query strings. * `stacked` - (Optional) Boolean value to determin if this is this a stacked area graph. Default: false (line chart). +* `type` - (Optional) Choose how to draw the graph. For example: "lines", "bars" or "areas". Default: "lines". +* `style` - (Optional) Nested block to customize the graph style. + +### Nested `style` block + +The nested `style` blocks has the following structure (only `palette` is supported right now): + +* `palette` - (Optional) Color of the line drawn. For example: "classic", "cool", "warm", "purple", "orange" or "gray". Default: "classic". ### Nested `template_variable` blocks