Set the default telemetry interval
StackState Self-hosted v5.1.x
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 or explore mode 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.

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.
The default telemetry interval can be set to any of the following values:
LAST_5_MINUTESLAST_15_MINUTESLAST_30_MINUTESLAST_1_HOUR(default value)LAST_3_HOURSLAST_6_HOURSLAST_12_HOURSLAST_24_HOURSLAST_2_DAYSLAST_7_DAYSLAST_30_DAYS
Any other value will be ignored and converted to the default value (LAST_1_HOUR).
To set a custom default telemetry interval, add the following to the values.yaml file used to deploy StackState:
stackstate:
components:
api:
config: |
stackstate.webUIConfig.defaultTimeRange = "LAST_15_MINUTES"
To set a custom default telemetry interval, update the parameter stackstate.webUIConfig.defaultTimeRange in the file /etc/application_stackstate.conf.
stackstate {
webUIConfig {
defaultTimeRange = "LAST_15_MINUTES"
}
}See also
Last updated