cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Combining timeseries, can this be done

henk_stobbe
DynaMight Leader
DynaMight Leader

Hello,

What if you have to time series and you want to add/subtract them to create a new one......

 

Can this be done, or a I over asking?

 

KR Henk

5 REPLIES 5

Theodore_x86
Helper

Hello.

Are you looking for something like the following?

https://docs.dynatrace.com/managed/discover-dynatrace/references/dynatrace-api/environment-api/metri...

 

BR

Houston, we have a problem.

Hello Theodore,

Thanks for you answer, yes this is wat I like to see... But here comes then but (sorry) I want to see this in DQL so I can use the result in a Dashboard GenV3,

KR Henk

Then you have to go with this I think:

https://docs.dynatrace.com/docs/shortlink/metrics-selector-conversion#arithmetic

 

Houston, we have a problem.

krzysztof_hoja
Dynatrace Champion
Dynatrace Champion

The concept is called "iterative expressions"

There are few examples on DQL for Metrics page like this one: https://docs.dynatrace.com/docs/analyze-explore-automate/metrics/dql-examples#example-9-connection-f...

e.g.

timeseries {
      new = sum(dt.process.network.sessions.new),
      {reset = sum(dt.process.network.sessions.reset), default:0},
      {timeout = sum(dt.process.network.sessions.timeout), default:0}
    },
    by:{dt.entity.host}
| fieldsAdd result = 100 * (reset[] + timeout[]) / new[]

 

more details in dedicated section:

https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-query-language/operators#ite...

 

Hi Krysztof,

You are absolutely right, thanks,

KR Henk

Featured Posts