Grafana Prometheus

namedemodesc
$__interval30sMax data points / time range
$__interval_ms30000
$__range
$__range_s
$__range_ms
$__rate_intervalv7.2+ max($__interval + Scrape interval, 4 * Scrape interval)
# 变量替换
# $<varname>
rate(http_requests_total{job=~”$job”}[5m])
# [[varname]]
rate(http_requests_total{job=~”[[job]]"}[5m])