How do I use arithmetic for my time series data?

You can apply simple arithmetic to a Series (+, -, * and /). In this example we graph 5-minute load and its double:

{
  "viz": "timeseries",
  "requests": [
    {
      "q": "system.load.5{intake} * 2"
    },
    {
      "q": "system.load.5{intake}"
    }
  ]
}

You can also add, substract, multiply and divide a Series. Beware that Datadog does not enforce consistency at this point so you can divide apples by oranges.

{
    "viz": "timeseries",
    "requests": [
      {
        "q": "metric{apples} / metric{oranges}"
      }
    ]
}
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk