Skip to main content

timeshift Metrics Operator

The timeshift operator shifts the time series from your metrics query by a specified period of time.

timeshift syntax

timeshift TIME_INTERVAL

Where:

  • TIME_INTERVAL is a time interval in millisecond(ms), seconds (s), minutes (m), hours (h), or days (d).

Example

Query #A returns the cpu_idle metric for the currently selected query time range, the last 15 minutes.

#A _sourceCategory=prod/host _sourceHost=my-mac= metric=cpu_idle

Query #B returns the cpu_idle metric for the 15 minute period that ended two hours ago.

#B _sourceCategory=prod/host _sourceHost=my-mac= metric=cpu_idle | timeshift 2h

your description
Legal
Privacy Statement
Terms of Use

Copyright © 2023 by Sumo Logic, Inc.