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

Extensions 2.0 - chart resolution

stijn_bienkens
Participant

Hi

We are currently building an extension and for some metrics we only query Prometheus with an interval of 5 minutes.

This works fine for the most part, except when trying to display these metrics on unified analysis pages as an area chart with a timeframe set to "last 7 hours" or less. In this case, the area chart contains gaps, because the resolution/interval is set to 1 or 3 minutes:

stijn_bienkens_0-1687178640820.png

Expected (with a timeframe of 7 hours or less):

stijn_bienkens_1-1687178880144.png


Chart config:

 

          - displayName: Test
            visualizationType: GRAPH_CHART
            graphChartConfig:
              metrics:
               - metricSelector: <metric key without transformations or expressions>
                 visualization:
                  seriesType: AREA
               - metricSelector: <metric key without transformations or expressions>
                 visualization:
                  seriesType: AREA
               - metricSelector: <metric key without transformations or expressions>
                 visualization:
                  seriesType: AREA
              defaultAggregation: AVG
              visualization:
                seriesType: AREA
                themeColor: DEFAULT
                showLegend: true
              stacked: true
              connectGaps: true

 

 

Using a rollup transformation doesn't work either, as this prevents the chart from being displayed when Dynatrace chooses a resolution that isn't compatible with the rollup interval based on the timeframe selector.

Is there an option to set a fixed resolution that I missed or is this currently not possible?

Thank you.

7 REPLIES 7

AntonioSousa
DynaMight Guru
DynaMight Guru

In Data Explorer, set resolution for the graph  to 5 minutes, and it should be OK.

Antonio Sousa

Yes, this works in data explorer but how can we achieve the same thing in "unified analysis pages"?

"connectGaps" should help unless you send zeros in data as well. If not, then I think you can use bar chart instead. There is no option to set minimal resolution.

Slawa
Advisor

"connect gaps" - it should work as well

Unfortunately, it doesn't work the "gaps" are connected, but it still looks like the first screenshot in my initial post.

Just a quick question, why not pull metrics every 1 or 3 min?

Another option - contribute/fork in PowerUps plugin for UI override:
https://github.com/dynatrace-oss/DynatraceDashboardPowerups

Ana_Kuzmenchuk
Community Team
Community Team

Hi @stijn_bienkens, were you able to find a solution for your use case?

The only constant is change. Finding ways for great things to happen!

Featured Posts