Commit Graph

20 Commits

Author SHA1 Message Date
Alexander Zobnin
504c9af226 Migrate query editor to react (#1520)
* Initial react query editor

* CI: run checks on all branches

* Update react packages

* Initial metric picker

* Load metrics

* Tweak styles

* Add variables to metric options

* Tweak styles

* Filtering and keyboard navigation

* Open menu with keyboard

* Update function editor

* Move functions in editor

* Add function component

* Edit func params

* Push alias functions to the end

* Tweak labels size

* Fix menu position

* Metric options editor

* Fix css styles building

* More work on query options

* Fix tests

* Refactor: extract metrics query editor and functions editor

* Refactor: move things around

* Text metrics editor

* Problems query editor

* Problems mode options

* Item id query editor

* IT services query editor

* Triggers query editor

* Refactor: remove unused

* remove derprecated theme usage

* Load proxy options

* Fetch metric options on variable change

* Remove angular query editor

* Migrate annotations editor to react

* Fix tests
2022-11-09 17:50:13 +03:00
Alexander Zobnin
13d89a0806 Fix parsing tags without value, fixes #1420 2022-04-27 14:13:50 +03:00
Alexander Zobnin
915973829d Support item tags, fixes #1258 2021-08-09 14:57:49 +03:00
Alexander Zobnin
736f05d398 Fix data alignment for db connection queries 2021-08-06 12:31:05 +03:00
Alexander Zobnin
12c4089a50 Fix building after update to Grafana 8 components 2021-08-02 18:37:48 +03:00
Alexander Zobnin
884f4d02c6 Fix handling value mappings for ItemID mode, fix #1148 2021-01-28 11:25:03 +03:00
Alexander Zobnin
926631da96 Use secondsToHms()
from grafana/data
2021-01-20 12:20:46 +03:00
Alexander Zobnin
8bd85269b1 Fix parsing item update intervals 2020-12-28 13:13:16 +03:00
Alexander Zobnin
83618178f0 Use Data frames response format (#1099)
* Use data frames for numeric data

* Use data frames for text data

* Use data frames for IT services

* fix multiple series

* Convert to the wide format if possible

* Fix table format for text data

* Add refId to the data frames

* Align time series from Zabbix API

* Fill gaps with nulls

* Fix moving average functions

* Option for disabling data alignment

* remove unused logging

* Add labels to data frames

* Detect units

* Set min and max for if percent unit used

* Use value mapping from Zabbix

* Rename unitConverter -> convertZabbixUnit

* More units

* Add missing points in front of each series

* Fix handling table data

* fix db connector data frames handling

* fix it services data frames handling

* Detect all known grafana units

* Chore: remove unused logging

* Fix problems format

* Debug logging: show original units

* Add global option for disabling data alignment

* Add tooltip for the disableDataAlignment feature

* Add note about query options

* Functions for aligning timeseries on the backend
2020-12-22 15:33:14 +03:00
Alexander Zobnin
47bbf55e54 Fix reconnecting on request error 2020-08-06 15:15:38 +03:00
Alexander Zobnin
d2a1a7797b always return array from problems requests 2020-05-27 09:55:57 +03:00
Alexander Zobnin
3aaf58b05a Explore button: fix item name building 2020-05-20 11:21:59 +03:00
Alexander Zobnin
11214d0d17 Chore: convert Zabbix connector to TS 2020-05-15 14:38:29 +03:00
Alexander Zobnin
5fac5909a7 Fix merge conflicts 2020-05-15 13:58:35 +03:00
Alexander Zobnin
93b1468000 Auto-detect zabbix version, closes #727 2020-05-14 18:26:29 +03:00
Alexander Zobnin
29d902326a Move problems query to the data source 2020-05-07 13:38:55 +03:00
Alexander Zobnin
ffb1862094 convert timeseries.js to TS 2020-05-07 11:56:41 +03:00
Alexander Zobnin
e7cd31c75c convert metricFunctions to TS 2020-05-07 11:49:51 +03:00
Alexander Zobnin
44660476ca datasource: convert to TS 2020-05-07 11:33:15 +03:00
Alexander Zobnin
82cfda6524 Variable query editor (#856)
* refactor: convert module to typescript

* refactor: covert utils to typescript

* variable query editor WIP

* variable editor: fix type error after grafana/ui update

* variable editor: use FormLabel from grafana/ui

* variable editor: refactor

* variable editor: input validation and highlights

* variable editor: fix tests

* variable query: fix backward compatibility with empty queries

* fix linter errors

* variable editor: fix variable replacement in queries
2020-01-13 11:31:40 +03:00