Commit Graph
100 Commits
Author SHA1 Message Date
Gábor Farkas 06e474dfd5 Explore: query history: fix error when removing last item (#42179)
* explore: rich-history: fix data inconsistency

* also handle starred-queries tab
2021-11-24 13:52:44 +01:00
Gábor Farkas fe84454bb0 loki: alerting: simplified config (#42147)
* loki: alerting: simplified config

* adjusted config handling
2021-11-24 11:52:33 +01:00
Gábor Farkas 037fd9cc8c Loki: alerting: adjust step-calculation to be the same as in frontend (#42033)
* loki: alerting: adjust step-calculation to be the same as in frontend

* loki: simplified test

* lint fix
2021-11-22 14:28:51 +01:00
Gábor Farkas 2fbc6b1d2f loki: simplify interval calculation (#41857) 2021-11-19 17:20:32 +01:00
Gábor Farkas 91f9284e9d docs: improved deprecation-info for elasticsearch and influxdb (#41981) 2021-11-19 15:58:21 +01:00
Gábor FarkasandGiordano Ricci f5641c0293 Docs: add easier to find deprecation notices to certain data sources and to the changelog (#41938)
* docs: add easier to find deprecation-info

* better indentation in the docs

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* better indentation in the docs

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* prettier fixes

Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2021-11-19 15:23:07 +01:00
Gábor Farkas 5c40865547 prometheus: query field: better handle label-values with unusual characters (#41457) 2021-11-15 09:51:28 +01:00
Gábor Farkas cd01384d3a renovate: ignore packages/grafana-toolkit (#41602) 2021-11-11 14:52:33 +01:00
Gábor Farkas 4f4620188c influxdb: alias: fix corner case (#41562) 2021-11-11 14:38:54 +01:00
Gábor Farkas f6ad3e420a devenv: influxdb: better config (#41456) 2021-11-11 14:20:57 +01:00
Gábor Farkas eb47a58029 InfluxDB: fix numeric aliases in queries (#41531)
* influxdb: alerting: handle out-of-range numeric aliases

* influxdb: updated documentation
2021-11-11 09:18:06 +01:00
Gábor Farkas 486fbac23b renovate: do not update "less" for now (#41463)
* renovate: block updating less & less-loader for now

* more specific rules
2021-11-10 13:29:20 +01:00
Gábor Farkas 9d82111a1a prometheus: enable new monaco-based query field (#41357)
* prometheus: enable new monaco-based query field

* updated test

* updated tests

* fix e2e tests

* updated comment
2021-11-08 14:20:48 +01:00
Gábor Farkas f3f57d3d6e influxdb: improved explanation texts (#41351)
* influxdb: improved explanation texts

* fixed tests
2021-11-05 15:42:54 +01:00
Gábor Farkas c64997332d prometheus: monaco: fix a corner-case with quotes (#41345) 2021-11-05 15:11:19 +01:00
Gábor Farkas eec7b9d325 prometheus: monaco: better suggestions inside quotes (#41262)
* prometheus: monaco: better suggestions inside quotes

* add double-quote as trigger character

* moved comment to correct place
2021-11-05 10:13:55 +01:00
Gábor Farkas ec63b28621 prometheus: monaco: do not show automatic suggestions (#41253)
* prometheus: monaco: do not show automatic suggestions

* updated comments
2021-11-05 10:09:11 +01:00
Gábor Farkas 91da1bbb79 prometheus: monaco: allow listing label names + values without a metric (#41233)
* prometheus: monaco: allow listing label names + values without a metric

* removed comment
2021-11-03 11:20:04 +01:00
Gábor Farkas 72ae3235fa prometheus: monaco: autocomplete: offer function-names in functions (#41212) 2021-11-03 10:56:43 +01:00
244e149c34 prometheus: query-field: monaco: implement open-help-by-default (#41112)
* prometheus: query-field: monaco: implement open-help-by-default

* better comment

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* fixed typo in comment

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* better log-message

* fixed comment spelling

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>

* better setting

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
2021-11-03 10:55:07 +01:00
Gábor Farkas 28ae9f1bdd prometheus: query-editor: refactor: rename intent to situation (#41079)
* prometheus: query-editor: refactor: rename intent to situation

* fixed forgotten rename
2021-11-02 15:09:35 +01:00
Gábor Farkas 0b61d83739 renovate: block updating eslint for now (#41199) 2021-11-02 15:06:07 +01:00
Gábor FarkasandPiotr Jamróz c788e2f8e8 prometheus: monaco editor: visual fixes (#41184)
* prometheus: monaco editor: visual fixes

* fixed typo in comment

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>

* more comments added

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
2021-11-02 12:44:51 +01:00
Gábor Farkas 24db1efa9d influxdb: influxql: fix table-format data processing with renamed time field (#41052) 2021-10-29 15:49:45 +02:00
Gábor Farkas fcaf9e68ee prometheus: monaco: stricter autocomplete and handle space (#41028)
* prometheus: monaco: stricter autocomplete

* autocomplete on space
2021-10-29 08:22:40 +02:00
Gábor Farkas 25fe5bc027 prometheus: autocomplete: handle label-ops better (#41004) 2021-10-28 10:39:26 +02:00
Gábor Farkas 844d2c8621 prometheus: monaco: handle in-dashboard and in-explore use cases (#40922)
* prometheus: monaco: handle in-dashboard and in-explore use cases

* refactor is-explore handling

* improved comment

* removed unnecessary comment

* reordered props

* simplify code

* refactor: better prop-name

* fixed test snapshot
2021-10-27 11:45:32 +02:00
Gábor Farkas 2c3b35df64 Explore: allow changing the graph type (#40522)
* explore: allow switching graph-styles

* refactor: simplify code

* adjust test to test a case that can really happen

* better generate-options approach

* explore: graph styles: remove url functionality

* not-stacked-bars should be filled
2021-10-26 15:51:59 +02:00
Gábor Farkas cc271b0a42 Explore: rich history: add more tests (#40769)
* explore: rich history: add unit test

* explore: rich-history: added info comment

* improved comment

* better test names
2021-10-25 15:23:47 +02:00
Gábor Farkas b5ae62d6ae grafana-ui: simplify and centralize monaco-theme-handling (#40643)
* grafana-ui: simplify and centralize monaco-theme-handling

* simplify code

* monaco: better theme-setup code

* eslint fix

* fix useEffect dependency
2021-10-25 14:55:39 +02:00
Gábor Farkas 9e030970aa prometheus: remove handling of control+enter (#40869)
we are standardizing on shift+enter
2021-10-25 12:20:13 +02:00
Gábor Farkas 4bf5fa2ad2 explore: rich-history: add test for old-mode conversion code (#40714) 2021-10-21 09:49:38 +02:00
Gábor Farkas 58360923fd prometheus: monaco query editor: use new api from grafana-ui (#40466) 2021-10-19 12:32:54 +02:00
Gábor Farkas 1f44023ebe Loki: fix typescript-strict-mode error (#40566)
* loki: fix typescript-strict error

* loki: fix typescript-strict-mode error
2021-10-18 12:35:56 +02:00
Gábor Farkas bd8e07d6ed prometheus: more correct jsonData typescript type (#40559)
* prometheus: fix strict-mode typescript error

* it does not make the limit lower

but the change is still correct
2021-10-18 11:21:30 +02:00
Gábor Farkas 8e070d6858 influxdb: config page: typescript-fix for strict-mode (#40465) 2021-10-15 11:29:41 +02:00
Gábor FarkasandDominik Prokop 19972600d7 grafana-ui: export lazy-loaded version of react-monaco-editor (#39570)
* grafana-ui: refactor: move laziness to a lower level in code-editor

* grafana-ui: re-export react-monaco-editor

* rename export

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>

* improved comment

* reverted name change

we already have an export with that name

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2021-10-14 14:33:45 +02:00
Gábor Farkas 51c5afe840 yarn2: commit the pa11y-ci package from the cache (#40372) 2021-10-14 08:28:24 +02:00
Gábor Farkas d363c36853 Prometheus: metrics browser: handle label values with special characters (#39713)
* prometheus: handle label-values with special characters

* added comment
2021-09-30 15:50:02 +02:00
Gábor Farkas 97367acc0a Update latest.json (#39852) 2021-09-30 15:25:21 +02:00
Gábor Farkas e74ae99f48 dependabot: ignore ts-loader (#39702) 2021-09-28 15:27:35 +02:00
Gábor Farkas 9f027e32b7 InfluxDB: Flux: make $__interval and $__interval_ms work in alerting (#38889)
* influxdb: flux: handle $__interval and $__interval_ms in alert-queries

* influxdb: flux: do not handle interval-variable in the frontend

* $__interval should be rounded

* added comment
2021-09-27 12:03:04 +02:00
Gábor Farkas bf0dc3ef62 influxdb: flux: use more precise start and end timestamps (#39415)
* influxdb: flux: use more precise start and end timestamps

* added unit test
2021-09-22 15:26:36 +02:00
Gábor Farkas 346a53145c prometheus: metadata: simplify the metrics-metadata format (#39411)
* prometheus: metadata: simplify the metrics-metadata format

* fixed unit test

* fixed tests
2021-09-21 15:19:52 +02:00
Gábor Farkas dc61edc8ac prometheus: monaco: do not recalculate not-changing function-list (#39406) 2021-09-20 13:24:55 +02:00
Gábor Farkas 73873f99cd prometheus: monaco-query-field: fix metrics-list (#39347) 2021-09-17 15:01:39 +02:00
Gábor Farkas d116b2d71b influxdb: influxql: more robust resultformat-handling (#39330) 2021-09-17 12:33:09 +02:00
Gábor Farkas 8489575c84 prometheus: monaco: handle multiple query fields at the same time (#39286) 2021-09-17 09:50:19 +02:00
Gábor Farkas f8de33da8d prometheus: query-editor: better duration-completions (#39284) 2021-09-17 09:05:37 +02:00
Gábor Farkas bff3d91b0d prometheus: monaco: better popup-font-size (#39181) 2021-09-14 16:40:44 +02:00
Gábor Farkas 27e3fda7ce influxdb: influxql query editor: fix escaping problematic characters (#39170) 2021-09-14 12:55:43 +02:00
Gábor Farkas e055ba3525 prometheus: monaco: improved suggestion-displaying (icons, help-text) (#38977)
* prometheus: monaco: better icons in popup

* prometheus: monaco: add help-text to functions

* prometheus: monaco: add help-text to metrics

* better help-text
2021-09-13 12:36:18 +02:00
Gábor Farkas 580b03c952 grafana-ui: monaco dependencies updated (#39027) 2021-09-10 10:36:43 +02:00
Gábor Farkas cbdba57924 Prometheus: fix popup positioning in monaco-based query-field (#38964)
* prometheus: monaco: fix popup positioning

* added explanation comment
2021-09-08 10:23:59 +02:00
Gábor Farkas 3f0f448201 influxdb: influxql: explicit min-interval check (#38873)
* influxdb: influxql: explicit min-interval check

* added test
2021-09-07 09:49:34 +02:00
Gábor Farkas 6cab44d73a InfluxDB: InfluxQL: handle new-alerting better (#37588)
* influxdb: influxql: alert: use already-computed interval-value when available

* reverted by-mistake changed import

* simplify code

now we can rely on DataQuery.Interval always being good

* removed unnecessary test

* fix lint-error
2021-09-06 09:33:07 +02:00
Gábor Farkas 01f1c550bf old-alert: interval calculation: apply default-min-interval of 1ms (#38835) 2021-09-06 09:24:32 +02:00
Gábor Farkas aa7a6633b8 old-alert: set interval and max-data-points (#38434)
* alerting: old-alerting: handle interval + maxdatapoints better

* fixed failing test

* refactor: use interval instead of tsdb

* fix typo

* added unit-test

* added comment

* refactor
2021-08-31 14:49:30 +02:00
Gábor FarkasandPiotr Jamróz a5d11a3bef Prometheus: monaco-based query-editor-field, first step (#37251)
* prometheus: add monaco-based query-field

for now it is behind a feature-flag

* added new trigger character

* better separate grafana-specifc and prom-specific code

* better styling

* more styling

* more styling

* simpler monaco-import

* better imports

* simplified code

* simplified type imports

* refactor: group completion-provider files together

* renamed type

* simplify type-import

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>

* handle no-metric-name autocompletes

* updated comment

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
2021-08-31 13:46:13 +02:00
Gábor FarkasandUrsula Kallio 8e88600c04 style-guide: frontend: describe directory naming style (#38607)
* style-guide: frontend: describe directory naming style

* apply recommended changes

Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com>

Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com>
2021-08-27 08:27:56 +02:00
Gábor Farkas 9e8035ef30 devenv: influxdb: update telegraf config (#37835) 2021-08-23 09:38:47 +02:00
Gábor Farkas 668f397a8e Prometheus/Alerting: handle datasource.timeRange is nil case (#37888) 2021-08-16 09:20:58 +02:00
Gábor Farkas 28229fc344 devenv: influxdb: simplified versioning for old-version influxdb (#37726) 2021-08-12 08:36:50 +02:00
Gábor Farkas 4afa74232f prometheus: alerting: respect datasource.scrapeInterval (#37799) 2021-08-11 20:34:51 +02:00
Gábor Farkas 476a227505 influxdb: check for invalid program-flow (#37474) 2021-08-10 14:18:29 +02:00
Gábor Farkas 488930dbe3 influxdb: influxql: update provisioning example (#37701) 2021-08-10 09:07:23 +02:00
Gábor Farkas 9417e86316 Updated "react-use" package to newest version (#37579)
* package.json: updated react-use to newest version

* fixes (typescript and other)
2021-08-05 14:32:51 +02:00
Gábor Farkas 4da398014f influxdb: more robust query-has-variables check (#37493)
* influxdb: moved queryUtils file to better place

* influxdb: more robust query-has-variables check
2021-08-04 10:45:37 +02:00
Gábor Farkas bc0ab3cc7a influxdb: better query-has-variable check (#37453) 2021-08-03 14:32:48 +02:00
Gábor Farkas b254e4eb31 influxdb: influxql: fix dataframe column-names (#37195) 2021-07-26 12:08:02 +02:00
Gábor Farkas 14274a960e influxdb: influxql: handle null-cases in timeseries data (#37047) 2021-07-21 10:44:41 +02:00
Gábor Farkas ea375db8b2 influxdb: influxql: for timeseries-queries, return dataframes (#36850) 2021-07-20 10:52:36 +02:00
Gábor Farkas 367f3ea0ae devenv: influxdb: updated telegraf to new version (#36795) 2021-07-16 08:44:54 +02:00
Gábor Farkas 815f9a7557 InfluxDB: InfluxQL: adds tags to timeseries data (#36702)
* influxdb: influxql: return tags in timeseries

* influxdb: influxql: added tests
2021-07-14 16:06:53 +02:00
Gábor Farkas cc460110b1 influxdb: influxql: better tag-value filtering (#36570) 2021-07-12 07:55:10 +02:00
Gábor Farkas e4ece0530a InfluxDB: Flux: fix backward compatibility for some queries (#36603)
* influxdb: flux: better backward-compatibility

* added comment-explanation
2021-07-09 17:37:14 +02:00
Gábor Farkas ec9dbdd93c influxdb: influxql: fix retention-policy handling (#36022) 2021-06-23 09:53:53 +02:00
Gábor Farkas 31aaf94e91 devenv: updated influxdb1 version (#36031) 2021-06-23 08:35:13 +02:00
Gábor Farkas b558d32502 influxdb: docs: add new screenshot (#35156) 2021-06-03 17:05:13 +02:00
Gábor Farkasandachatterjee-grafana 89fc92947c InfluxDB: deprecate direct browser access in data source (#35105)
* influxdb: deperacate direct browser-access

* better docs-formatting

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

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2021-06-02 16:37:16 +02:00
Gábor Farkas 38b030e2a4 InfluxDB: Flux: timestamp-column has to go first (#35036) 2021-06-01 16:03:02 +02:00
Gábor Farkas 618dc6a2f6 InfluxDB: InfluxQL: apply on enter not on blur (#34963) 2021-05-31 10:09:29 +02:00
Gábor Farkas 49126bebaa devenv: unify slow_proxy_mac and slow_proxy (#34630)
* devenv: update slow_proxy block to work on mac

* devenv: removed unnecessary block slow_proxy_mac
2021-05-27 08:44:35 +02:00
Gábor Farkas ab26c4dfa4 InfluxDB: Flux: handle boolean data-columns (#34479)
* InfluxDB: Flux: handle boolean data-columns

* normalize data-type strings based on documentation

* reference missing data type
2021-05-25 17:22:04 +02:00
Gábor Farkas a9b88bc72c fix modified yarn.lock (#34640) 2021-05-25 12:59:37 +02:00
Gábor FarkasandPiotr Jamróz 0afc4c0361 InfluxDB: InfluxQL query editor: better handling of slow queries (#34507)
* InfluxDB: InfluxQL query editor: better handling of slow queries

* adjusted message to be similar to other messages

* simplify code

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
2021-05-24 15:58:59 +02:00
Gábor Farkas e21b90681f influxdb: influxql: make measurement-autocomplete case insensitive (#34563) 2021-05-24 12:24:42 +02:00
Gábor Farkas 0c2bb9562a devenv: slow_proxy_mac: make configurable and smaller (#34560) 2021-05-24 10:25:30 +02:00
Gábor Farkas d95cc4a08f InfluxDB: InfluxQL query editor: generate better HTML (#34467) 2021-05-20 16:46:08 +02:00
Gábor Farkas fc04a1ae00 InfluxDB: InfluxQL: handle empty tag values when generating query (#34463) 2021-05-20 10:13:15 +02:00
Gábor Farkas f48708bb9e InfluxDB: InfluxQL: always apply time interval end (#34308) 2021-05-19 16:24:14 +02:00
Gábor Farkas a9255db370 InfluxDB: InfluxQL: make nicer custom-select-value UI (#34289)
* influxdb: influxql: make niceer custom-select-value

* add code for missing case

* moved to the right place
2021-05-19 12:31:52 +02:00
Gábor Farkas bd4afe41ba Tempo: fix handling of trace-not-found cases (#34219) 2021-05-18 08:33:53 +02:00
Gábor Farkas a33a5fc079 InfluxDB: InfluxQL query editor simpler "close selectboxes when clicked outside" handling (#33908) 2021-05-11 15:13:35 +02:00
Gábor Farkas 2633f245ba InfluxDB: Flux: Improve handling of complex response-structures (#33823) 2021-05-11 12:36:04 +02:00
Gábor FarkasandGiordano Ricci 3e59ae7e56 InfluxDB: Convert the InfluxQL query editor from Angular to React (#32168)
Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2021-05-11 08:15:44 +02:00
Gábor Farkas 8f210db17a InfluxDB: Fix the ordering of results for variable queries (#33314) 2021-05-05 15:35:48 +02:00
Gábor Farkas 4506af3be7 InfluxDB: Improve measurement-autocomplete behavior in query editor (#33494)
* InfluxDB: Improve measurement-autocomplete behavior

* reverted changes of the previous commit

* add debounce to measurement-autocomplete
2021-05-03 11:08:12 +02:00
Gábor Farkas f176b4818a devenv: InfluxDB: fix version mismatch (#33484) 2021-04-28 16:39:31 +02:00
Gábor Farkasanddsotirakis 7ff6665ac2 Alerting: InfluxDB: InfluxQL: convert backend-code to use dataframes (#32950)
* alerting: influxdb: refactor unit-tests

* alerting: influxdb: converted code from timeseries-mode to dataframe-mode

* influxdb: simplify code

* influxdb: better function name

* influxdb: alerting: more tests

* influxdb: alerting: more tests

* influxdb: refactor

* influxdb: improved unit-test

* influxdb: simplified code

* influxdb: refactor reponse-parser code

* influxdb: refactor unit tests

* influxdb: alerting: use nicer names

Co-authored-by: dsotirakis <sotirakis.dim@gmail.com>
2021-04-22 08:43:17 +02:00