Skip to content

Add support for unit override on dashboard timeseries_defintion #2142

Open
@Marcus-James-Adams

Description

@Marcus-James-Adams

What resources or data sources are affected?

datadog_dashboard

Feature Request

via the browser, I can set the unit overrides on a time-series graph eg so that a number is actually seconds and then the graph displays it and scales the unit accordingly eg seconds/mins/hours etc

image

looking at the resource page it makes no mention of unit overrides for this widget type ( or many of them)

if I manually set it in the browser on previously applied code and then run another terraform plan instead of showing me it's changed i get no changes.

the details are there in the dashboard json, they are just not being parsed by the resource

eg: - snipped for clarity

              "type": "timeseries",
              "requests": [
                {
                  "formulas": [
                    {
                      "alias": "Seconds",
                      "formula": "query1",
                      "number_format": {
                        "unit": {
                          "type": "canonical_unit",
                          "unit_name": "second",
                          "per_unit_name": "second"
                        }
                      }
                    }
                  ],
                  "queries": [
                    {
                      "data_source": "metrics",
                      "name": "query1

References

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions