question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot convert new Datadog json fields

See original GitHub issue

Describe the bug The Datadog dashboard json format has been changed, there are new fields, for example: show_title, queries, etc.

To Reproduce Create a new dashboard on Datadog UI and convert it.

{
   "title":"Title",
   "description":"",
   "widgets":[ 
          {
            "definition":{
               "title":"Title",
               "title_size":"16",
               "title_align":"left",
               "show_legend":true,
               "legend_layout":"auto",
               "legend_columns":[
                  "value"
               ],
               "time":{
                  
               },
               "type":"timeseries",
               "requests":[
                  {
                     "queries":[
                        {
                           "data_source":"metrics",
                           "name":"query1",
                           "query":"metric1{$account}"
                        },
                        {
                           "data_source":"metrics",
                           "name":"query2",
                           "query":"metric2{$account}"
                        }
                     ],
                     "response_format":"timeseries",
                     "style":{
                        "palette":"dog_classic",
                        "line_type":"solid",
                        "line_width":"normal"
                     },
                     "display_type":"line"
                  }
               ],
               "yaxis":{
                  "include_zero":false
               },
               "markers":[
                  
               ]
            },
            "layout":{
               "x":4,
               "y":0,
               "width":4,
               "height":2
            }
          }
       ],
   "template_variables":[
      {
         "name":"account",
         "default":"account1",
         "prefix":"account"
      }
   ],
   "layout_type":"ordered",
   "is_read_only":false,
   "notify_list":[
      
   ],
   "reflow_type":"fixed"
}

The error message from Chrome extension: ❗️Can’t convert key ‘queries’

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
brianphamcommented, Jun 18, 2021

Adding onto this since it is related to the dashboard changes.

Can't convert key 'show_title' when having the show_title field.

      "definition": {
        "title": "Kubernetes Nodes Overview",
        "type": "group",
        "background_color": "vivid_green",
        "show_title": true,
        "layout_type": "ordered",
     }

❗️Can't convert key 'formulas' when having formulas.

              "requests": [
                {
                  "formulas": [
                    {
                      "formula": "query1"
                    },
                    {
                      "formula": "100 - query1"
                    }
                  ],
                  "response_format": "timeseries",
                  "on_right_yaxis": false,
                  "queries": [
                    {
                      "query": "avg:system.cpu.idle{$cluster} by {host}",
                      "data_source": "metrics",
                      "name": "query1"
                    }
                  ],
                  "style": {
                    "palette": "warm",
                    "line_type": "solid",
                    "line_width": "normal"
                  },
                  "display_type": "line"
                }
              ],
2reactions
gene-indeedcommented, Sep 30, 2021

For everyone that’s still struggling still with this. Having an app is REALLY nice but I’ve got myself unblocked by using terraformer https://github.com/GoogleCloudPlatform/terraformer

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parsing - Datadog Docs
Datadog automatically parses JSON-formatted logs. For other formats, Datadog allows you to enrich your logs with the help of Grok Parser.
Read more >
Logs Troubleshooting - Datadog Docs
If you are unable to convert the timestamp of JSON logs to a recognized date ... Go to Logs Explorer to see new...
Read more >
Attributes and Aliasing - Datadog Docs
Any updates or additions to standard attributes are only applied to newly ingested logs. Standard attributes cannot be aliased. Attributes can only be...
Read more >
Processors - Datadog Docs
Refine attribute naming from there, and add new rules for other type of logs ... not found in the log attributes, or if...
Read more >
Query Syntax - Datadog Docs
Once this is done, the value of this attribute is stored for all new traces and can be used in the search bar,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found