19 Jun 2023 01:55 PM
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:
Expected (with a timeframe of 7 hours or less):
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.
19 Jun 2023 04:31 PM
In Data Explorer, set resolution for the graph to 5 minutes, and it should be OK.
20 Jun 2023 08:43 AM
Yes, this works in data explorer but how can we achieve the same thing in "unified analysis pages"?
20 Jun 2023 12:54 PM
"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.
19 Jun 2023 09:35 PM
"connect gaps" - it should work as well
20 Jun 2023 08:44 AM
Unfortunately, it doesn't work the "gaps" are connected, but it still looks like the first screenshot in my initial post.
20 Jun 2023 09:16 AM
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
15 Dec 2023 04:17 PM
Hi @stijn_bienkens, were you able to find a solution for your use case?
18 Jun 2024 11:37 AM
Hi @stijn_bienkens , were you able to find a solution for your use case? I have the same problem