# PromQL rate

**URL:** <https://community.dynatrace.com/t/promql-rate/45395>\
**Category:** DQL\
**Tags:** promql, dql, dynatrace-managed\
**Created:** [May 1, 2024, 10:55pm UTC](https://community.dynatrace.com/t/promql-rate/45395 "2024-05-01T22:55:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghfsa](https://avatars.discourse-cdn.com/v4/letter/g/f17d59/32.png) [@ghfsa](https://community.dynatrace.com/u/ghfsa)\
**Post date:** [May 1, 2024, 10:55pm UTC](https://community.dynatrace.com/t/promql-rate/45395/1 "2024-05-01T22:55:45Z")

</div>

Does DQL support the equivalent of `rate` in PromQL? How would I achieve this with DQL?

```auto
rate(http_requests_total[5m])[30m:1m]

```

In fact, it would be extremely helpful to have a 1-to-1 mapping for the “getting started example” queries listed here: `[https://prometheus.io/docs/prometheus/latest/querying/examples/`](https://prometheus.io/docs/prometheus/latest/querying/examples/)

---

<div class="post-metadata">

**Author:** ![krzysztof\_hoja](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/krzysztof_hoja/32/34625_2.png) [@krzysztof\_hoja](https://community.dynatrace.com/u/krzysztof_hoja)\
**Post date:** [November 20, 2024, 8:31pm UTC](https://community.dynatrace.com/t/promql-rate/45395/2 "2024-11-20T20:31:25Z")

</div>

Yes, we can calculate rate for out metrics/timeseries. Example is present in our docuemntation:

> **[Example 12: Failure rate - DQL timeseries examples for Metrics](https://docs.dynatrace.com/docs/analyze-explore-automate/metrics/dql-examples#example-12-failure-rate)**
>
> Metrics on Grail enable you to pinpoint and retrieve any metric data with the help of Dynatrace Query Language. After reviewing the fundamentals of DQL queries and the timeseries command, use the examples on this page to start getting answers from...
