grafana/docs/sources
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
..
administration Doc issue 37280 (#37416) 2021-07-30 12:21:51 -04:00
alerting Doc issue 37280 (#37416) 2021-07-30 12:21:51 -04:00
auth Update overview.md (#37260) 2021-07-29 13:03:02 -04:00
basics Docs: Update intro-histograms.md (#35462) 2021-06-10 08:41:38 -07:00
best-practices cleanup shortcodes, asset paths (#34826) 2021-05-28 11:27:40 +02:00
dashboards Docs: Add missing backtick in time range table (#37209) 2021-07-26 11:12:49 -04:00
datasources Prometheus: Implement stepMode for alerting queries (#36796) 2021-08-05 09:09:49 +02:00
developers Pick changes from PR 33811, use UID in dashboard navlinks (#36899) 2021-07-22 09:11:33 +02:00
enterprise Docs: Added missing enterprise plugins (#36786) 2021-08-04 16:08:43 +01:00
explore Add fine-grained access control information to the features which now support it (#37303) 2021-07-29 10:38:46 +02:00
getting-started cleanup shortcodes, asset paths (#34826) 2021-05-28 11:27:40 +02:00
http_api Update Settings Update documentation with the information about fine-grained access control (#37300) 2021-07-30 13:04:13 +02:00
installation live: add to v8 upgrading section (#36661) 2021-07-20 11:58:24 +03:00
linking fix typo in template (#36082) 2021-06-23 18:58:35 +02:00
live live: experimental HA with Redis (#36787) 2021-07-27 10:40:00 +03:00
manage-users cleanup shortcodes, asset paths (#34826) 2021-05-28 11:27:40 +02:00
panels small typo fix (#37527) 2021-08-04 10:48:40 -04:00
permissions cleanup shortcodes, asset paths (#34826) 2021-05-28 11:27:40 +02:00
plugins Plugins: Update plugin catalog docs (#37557) 2021-08-04 18:35:15 +02:00
release-notes ReleaseNotes: Updated changelog and release notes for 8.1.0-beta3 (#37342) 2021-07-29 16:31:10 +02:00
shared Update alert doc structure (#34659) 2021-05-25 10:51:28 -04:00
sharing Added note that anonymous access permission is no longer available. (#36142) 2021-06-25 15:46:26 +02:00
troubleshooting cleanup shortcodes, asset paths (#34826) 2021-05-28 11:27:40 +02:00
variables Docs: fix wrong formula (#37432) 2021-08-03 08:56:38 -04:00
whatsnew Added new section "Support for AES-GCM encryption algorithm". (#37556) 2021-08-04 12:01:39 -04:00
_index.md Docs: Fix Azure Monitor refs (#36458) 2021-07-06 10:27:32 -04:00
menu.yaml Docs: library panel (#35272) 2021-06-04 20:13:56 +02:00