Macros
Open source
Grafana Cloud
Use macros to add dashboard context to your queries. Macros are available in HTTP params and JSONPath expressions.
Macro | Description |
---|---|
$__unixEpochFrom() | Start of the dashboard time interval as a Unix timestamp, i.e. 1494410783 |
$__unixEpochTo() | End of the dashboard time interval as a Unix timestamp, i.e. 1494410783 |
$__isoFrom() | Start of the dashboard time interval as a ISO8601 timestamp, i.e. 2021-05-17T20:48:09.000Z |
$__isoTo() | End of the dashboard time interval as a ISO8601 timestamp, i.e. 2021-05-17T20:48:09.000Z |
Was this page helpful?
Related documentation
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
60 min

Unify your data with Grafana plugins: Datadog, Splunk, MongoDB, and more
In this webinar, learn how to leverage Grafana's plugin ecosystem for access to 80+ data sources, including plugins for Datadog, Splunk, MongoDB, and more.
60 min

Grafana plugins demo: GitHub, GitLab, JIRA, ServiceNow, and more
In this webinar, we'll show you how to use Grafana to unlock these insights and have better visibility into the performance of your software development team.
60 min

All about Grafana plugins: Visualizing disparate data sources in one place
Grafana Enterprise plugins are integrations with other commercial monitoring tools (such as Datadog, Splunk, New Relic, ServiceNow, Oracle, and Dynatrace) that are created, maintained, and supported by the Grafana Labs team.