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

Add a timestamp/day filter on an existing DQL tile

sandytheSeeker
Newcomer

Hello All,

 

I want to restrict my output to last 7 days everytime the dashboard refreshes. I have a tile which bring me all the failed job list. I want to restrict it programatically to get only last 7 days. My tile code looks like this.

cloud.aws.amazonmwaa.dagDurationFailedByAccountIdDAGEnvironmentRegion:filter(eq("environment","sandbox-test"))

 

I tried adding filter at the end of it, but it doesn't accept. Also the fetch command doesn't seem to work on this as well.

 

I'm pretty new to this, so this could be a very basic question.

5 REPLIES 5

Hi @p_devulapalli ,

I tried all these possible options, but the issue seems to be that I can't combine fetch command with my command. I thought it would have easier to implement. "cloud.aws.amazonmwaa.dagDurationFailedByAccountIdDAGEnvironmentRegion:filter(eq("environment","sandbox-test"))"

 

sandytheSeeker_0-1727643669937.png

 

 

Hi @sandytheSeeker , from the screenshot you seem to be running the query in Data explorer , if you are after DQL queries you need to use something like Notebooks 

https://docs.dynatrace.com/docs/observe-and-explore/dashboards-and-notebooks/notebooks

https://www.youtube.com/watch?v=RAtId3P8C6I

Phani Devulapalli
In this exciting new series called DynaLabs, Technical Product Specialists from Dynatrace ONE will get hands-on with the #Dynatrace platform, tackling one capability at a time! "DQL" stands for Dynatrace Query Language. It is a powerful tool to explore your data and discover patterns, identify ...

Fin_Ubels
Dynatrace Champion
Dynatrace Champion

Hey Sandy,

As p_devulapalli mentioned it looks like you're trying to use our new query language on classic dashboards which unfortunately is not supported. If you are using Dynatrace SaaS you could try the new dashboards app. Within the new dashboards app you will be able to query logs, metrics, events and other data using DQL allowing for things such as the fetch command.

Fin_Ubels_0-1727671250582.png

On new dashboards to set a timeframe on a specific tile edit the tile and custom timeframes can be found under the query or you can set it in the query as well:

Fin_Ubels_5-1727671992486.png

For dashboard wide defaults you can set it in the dashboard settings by selecting the settings cog to the right of the timeframe selector:

Fin_Ubels_4-1727671814546.png

Alternatively on old dashboards you can set the default timeframe for a dashboard or a specific tile. For the whole dashboard edit the dashboard and then instead of the tiles tab, select the settings tab on the right as seen below:

Fin_Ubels_1-1727671392916.png

For a specific tile select the tile and edit it and then you can find it on the right as seen below:

Fin_Ubels_2-1727671433694.png

 

Hope the above helps!

Thanks @Fin_Ubels & @p_devulapalli for your prompt responses.

I have found above useful and didn't know if we have that timeframe configure option at edit tile level. I was trying to implement it at metric logic level.

 

Thanks again.

 

Featured Posts