zmon-controller icon indicating copy to clipboard operation
zmon-controller copied to clipboard

Enable "Start Relative" on Check Charts widget of ZMON dashboards

Open elauria opened this issue 9 years ago • 5 comments

A user has requested the possibility to use "start_relative" config on check charts for the dashboard widgets, as it is only available on kairos charts. This configuration allows users to set the time span of the chart (X axis span, i.e. 10min, 30min, etc).

Currently Chart widgets display any data that comes back on the response. Kairos charts allow the user to specify a start_relative config which is passed to the backend. Check charts on the other hand do not support this config and will respond with any data available for a given check.

"start_relative": { "value": "30", "unit": "minutes" },

elauria avatar Jan 02 '17 14:01 elauria

@elauria Can you confirm, does the user mean..?

  1. They want to specify the start date for a Check Chart (with 'now' as a given end time) or
  2. They want to specify specific start and end times when viewing Check Charts or
  3. They want to see the Check Chart for X minutes ago.

laceyallyn avatar Jul 13 '18 12:07 laceyallyn

@laceyallyn so the idea is to have the same option that kairosdb offers. From kairosdb docs, its describe like this:

start_relative The relative start time is the current date and time minus the specified value and unit. Possible unit values are “milliseconds”, “seconds”, “minutes”, “hours”, “days”, “weeks”, “months”, and “years”. For example, if the start time is 5 minutes, the query will return all matching data points for the last 5 minutes.

So the answer would be 1 🥇

elauria avatar Jul 16 '18 14:07 elauria

This should be a UI and a backend change

rajatparida86 avatar Jul 17 '18 13:07 rajatparida86

Needs redesign of the Check-->Alert workflow

rajatparida86 avatar Aug 01 '18 13:08 rajatparida86

screen shot 2018-11-13 at 14 33 54

laceyallyn avatar Nov 13 '18 13:11 laceyallyn