grafana/public/app/plugins/datasource/prometheus/components
Ivana Huckova 1083bef030
Prometheus: Implement stepMode for alerting queries (#36796)
* Add select component for choosing step option

* Add onStepChange

* Add functionality for max step

* Rename minInterval to stepInterval to describe min, max and exact step interval

* Change select option from standard to exact

* Add new type StepType for better type safety

* Add tests for adjustInterval

* Add functionality and tests for exact step option

* Prometheus: Spell out min and max in select component

* Prometheus: Change width of step select component and add placeholder

* Prometheus: Adjust for the factor in exact step

* Prometheus: Update tooltip of step lable to include max and exact options and add padding to select component to give it some breathing room from other components

* Update snapshot for step tooltip

* Prometheus: make tooltip more informative

* Prometheus: add tooltip to interval input element

* Prometheus: extract default step option

* Prometheus: update snapshot for PromQueryEditor

* Prometheus: change step labels to uppercase

* Prometheus: define a default step option

* Prometheus: use default step option in both ui component and logic

* Prometheus: update snapshot for PromQueryEditor

* Prometheus: refactor datasource.ts for better readability

* Prometheus: change tool tip for step

* Prometheus: update snapshots

* Prometheus: add correct styling

* Prometheus: update snapshots

* Prometheus change variable name to something less superfluous

* Prometheus: refactor

* Prometheus: add new test for adjustInterval

* Docs: Update docummentation on the step parameter for prometheus

* Prometheus: make step input field smaller and change placeholder text to 15s

* Prometheus: update snapshots

* Prometheus: Make stepMode uniform in all places in the code

* Adjust step based on stepMode

* Adjust comment

* Check if we have queryInterval

* Refactor, add safe interval

* Fix merge resolutions

* Fix tests and add tests

* Update snapshot

* Update docs/sources/datasources/prometheus.md

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

* Update docs/sources/datasources/prometheus.md

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

* Update docs/sources/datasources/prometheus.md

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

* Update docs/sources/datasources/prometheus.md

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

* Update docs/sources/datasources/prometheus.md

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

* Update docs/sources/datasources/prometheus.md

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

* Update docs/sources/datasources/prometheus.md

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

* Implement calculation with intervalMode in calculator.go

* Update tests, add calculate safe interval method

* Replace panic with error

* Update pkg/tsdb/interval/interval_test.go

Co-authored-by: idafurjes <36131195+idafurjes@users.noreply.github.com>

* Update pkg/tsdb/calculator_test.go

Co-authored-by: idafurjes <36131195+idafurjes@users.noreply.github.com>

* Impotrt require

* Remove lint errors

Co-authored-by: Olof Bourghardt <ob655088@gmail.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
Co-authored-by: idafurjes <36131195+idafurjes@users.noreply.github.com>
2021-08-05 09:09:49 +02:00
..
__snapshots__ Prometheus: Implement stepMode for alerting queries (#36796) 2021-08-05 09:09:49 +02:00
PromCheatSheet.tsx Chore: Fix more strict typescript errors (#35514) 2021-06-14 15:13:48 +01:00
PrometheusMetricsBrowser.test.tsx Loki/Prometheus: Improve label browser performance (#34244) 2021-05-18 18:57:38 +02:00
PrometheusMetricsBrowser.tsx Loki: Add fuzzy search to label browser (#36864) 2021-07-26 08:04:03 -06:00
PromExemplarField.tsx Exemplars: Disable exemplars only on query it failed (#37296) 2021-07-28 16:34:46 +02:00
PromExploreExtraField.test.tsx Exemplars: always query exemplars (#31673) 2021-03-16 13:58:51 +01:00
PromExploreExtraField.tsx Exemplars: Disable exemplars only on query it failed (#37296) 2021-07-28 16:34:46 +02:00
PromExploreQueryEditor.test.tsx Prometheus: Metrics browser (#33847) 2021-05-12 11:49:20 +02:00
PromExploreQueryEditor.tsx Chore: eslint react hook fix for public folder (#31174) 2021-03-25 12:42:14 +01:00
PromLink.test.tsx Sanitize PromLink button (#33874) 2021-05-10 21:07:51 +02:00
PromLink.tsx Sanitize PromLink button (#33874) 2021-05-10 21:07:51 +02:00
PromQueryEditor.test.tsx Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
PromQueryEditor.tsx Prometheus: Implement stepMode for alerting queries (#36796) 2021-08-05 09:09:49 +02:00
PromQueryEditorByApp.test.tsx Prometheus: Add info that using Loki as Prometheus data source is no longer supported and might stop working (#34650) 2021-05-28 17:10:10 +02:00
PromQueryEditorByApp.tsx Alerting: app specific query editors for Loki and Prometheus (#34365) 2021-05-19 16:24:27 +02:00
PromQueryEditorForAlerting.tsx Alerting: app specific query editors for Loki and Prometheus (#34365) 2021-05-19 16:24:27 +02:00
PromQueryField.test.tsx Prometheus: Add info that using Loki as Prometheus data source is no longer supported and might stop working (#34650) 2021-05-28 17:10:10 +02:00
PromQueryField.tsx Chore: Fix more TypeScript strict errors (#37066) 2021-07-22 08:09:55 +01:00
types.ts Alerting: app specific query editors for Loki and Prometheus (#34365) 2021-05-19 16:24:27 +02:00