Skip to main content

timeshift Metrics Operator

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

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
Status
Legal
Privacy Statement
Terms of Use

Copyright © 2024 by Sumo Logic, Inc.