29 Commits

Author SHA1 Message Date
3c6e0e8ef8 Chore: ESlint import order (#44959)
* Add and configure eslint-plugin-import

* Fix the lint:ts npm command

* Autofix + prettier all the files

* Manually fix remaining files

* Move jquery code in jest-setup to external file to safely reorder imports

* Resolve issue caused by circular dependencies within Prometheus

* Update .betterer.results

* Fix missing // @ts-ignore

* ignore iconBundle.ts

* Fix missing // @ts-ignore
2022-04-22 14:33:13 +01:00
b4204628e4 Live: optionally send queries over websocket connection (#41653)
Co-authored-by: ArturWierzbicki <artur.wierzbicki@grafana.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-01-05 08:02:12 -08:00
84ae13fe5d Live: keep stream history on 'refresh' (#41492)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2021-12-15 11:01:55 -08:00
c780854a18 Live: remove hardcoded frontend channel support (#41584) 2021-11-15 07:54:14 -08:00
e8a30f651e Live: Extract scopes from CentrifugeSrv (#41051)
* Refactor: remove `scopes` from CentrifugeSrv, remove dependencies on window/config/user context

* Refactor: add GrafanaLiveChannelConfigService to wrap direct access to *Scope classes

* Refactor: added GrafanaLiveService acting like a proxy to GrafanaLiveSrv + LiveChannelConfigSrv

* Refactor: live module instantiation

* Refactor: import fixes

* Fix: URL construction in centrifugeSrv
2021-10-28 21:48:57 +04:00
1d1da09568 Live: disable centrifuge-js debug mode (#39625) 2021-09-25 15:17:39 -07:00
8c4c05493b Dashboard: keep live timeseries moving left (v2) (#37769) 2021-08-20 14:48:55 -07:00
78d53c5e3d Live: only connect when user has a role (#35339) 2021-06-08 14:00:24 -07:00
f7893ca5cf Live: fix field filtering and survive reconnect (#35122) 2021-06-02 12:12:48 -07:00
6d750c000e Live: max_connections option with strict default (#34634)
this should help Live to be enabled by default but still
do not affect setups with lots of simultenious users. To
properly handle many WS connections Grafana administrators
should tune infrastructure a bit - for example increase a
number of open files for a process. Will be in more details
in documentation.
2021-05-27 22:03:18 +03:00
2f58cc860c Live: logging cleanup (#34455) 2021-05-19 22:57:49 -07:00
18954aaa7b Live: broadcast first event immediately (#34310) 2021-05-18 11:19:19 -07:00
7c9ac0f990 Annotations panel: Remove subpath from dashboard links (#34134)
* fix(annolistpanel): strip base from url to prevent subpath duplication

* fix(centrifuge): allow connections when served from subpath
2021-05-17 09:31:48 +02:00
5ef46a9428 Live: use the browser url to build websocket url, not appUrl (#33968) 2021-05-12 09:13:37 +02:00
95a356a840 Live: using organisation IDs throughout stack (#33714) 2021-05-11 22:03:04 +03:00
c610eff5cd live: move connection endpoint to api scope, fixes #33861 (#33863) 2021-05-10 19:56:02 +03:00
33e4f8d7ac Live: remove feature toggle and enable by default (#33654) 2021-05-04 08:44:55 -07:00
528edcaec6 Live: expose publish on live interfaces (#33596) 2021-04-30 17:35:03 -07:00
693915de35 Live: Simplify live interface (#33196) 2021-04-23 23:21:38 +02:00
b96e45299d Live: support streaming results out-of-the-box (#32821) 2021-04-09 21:17:22 +02:00
54ad791c7e Live: expose HTTP push endpoint that will read influx line protocol and publish to websocket (#32311)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2021-04-05 19:04:46 +03:00
f67489a1f6 Chore: update centrifuge import (avoid protobuf) (#32616) 2021-04-01 21:47:04 +02:00
8016b3c5ca Live: Use pure WebSocket transport (#31630) 2021-03-04 09:06:42 +03:00
1d689888b0 Prettier: Upgrade to 2 (#30387)
* Updated package json but not updated source files

* Update eslint plugin

* updated files
2021-01-20 07:59:48 +01:00
726bb4477b Live: cleanup and simple changes (#28028) 2020-10-04 23:53:52 -07:00
8a5fc00330 Live: broadcast events when dashboard is saved (#27583)
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
2020-10-01 10:46:14 -07:00
93a01eb1d9 Live: improved channel state (#27672) 2020-09-23 08:02:01 -07:00
aa40320b45 Live: check logged-in-user for grafana live (#27436) 2020-09-15 00:01:14 -07:00
339138d61a Live: include a streaming event manager (#26537) 2020-07-27 00:26:16 -07:00