# Set the default telemetry interval

## Overview

The telemetry interval specifies the time window for which events, metrics and traces are available in the StackState perspectives. It runs from left to right on the timeline at the bottom of the StackState UI. By default, the telemetry interval active when opening a [view](/5.1/use/stackstate-ui/views/about_views.md) or [explore mode](/5.1/use/stackstate-ui/explore_mode.md) is set to a relative time period, showing telemetry data from the last hour. If required, you can configure StackState to use a different default telemetry interval.

![Telemetry interval](/files/IXyAUeTVGEznBSWEZi9Z)

## Customise the default telemetry interval

You can configure the default telemetry interval used in StackState with the parameter `defaultTimeRange`. The configured value will then be applied automatically when a view or explore mode is opened.

{% hint style="info" %}
A telemetry interval specified by a user in the StackState UI will override the default telemetry interval and will be applied to each subsequent view opened.
{% endhint %}

The default telemetry interval can be set to any of the following values:

* `LAST_5_MINUTES`
* `LAST_15_MINUTES`
* `LAST_30_MINUTES`
* `LAST_1_HOUR` (default value)
* `LAST_3_HOURS`
* `LAST_6_HOURS`
* `LAST_12_HOURS`
* `LAST_24_HOURS`
* `LAST_2_DAYS`
* `LAST_7_DAYS`
* `LAST_30_DAYS`

Any other value will be ignored and converted to the default value (`LAST_1_HOUR`).

{% tabs %}
{% tab title="Kubernetes" %}
To set a custom default telemetry interval, add the following to the `values.yaml` file used to deploy StackState:

```yaml
stackstate:
  components:
    api:
      config: |
         stackstate.webUIConfig.defaultTimeRange = "LAST_15_MINUTES"

```

{% endtab %}

{% tab title="Linux" %}
To set a custom default telemetry interval, update the parameter `stackstate.webUIConfig.defaultTimeRange` in the file `/etc/application_stackstate.conf`.

```yaml
stackstate {
  webUIConfig {
    defaultTimeRange = "LAST_15_MINUTES"
  }
}
```

{% endtab %}
{% endtabs %}

## See also

* [Timeline - telemetry interval](/5.1/use/stackstate-ui/timeline-time-travel.md#telemetry-interval)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://archivedocs.stackstate.com/5.1/configure/telemetry/custom_telemetry_interval.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
