grafana/public/app/plugins/datasource/loki
Piotr Jamróz 124e9daf26
Loki: Full range logs volume (#39327)
* Basic implementation of getLogsVolumeQuery method

* Add todos

* Add a switcher to automatically load logs volume

* De-scope dismissing logs volume panel

* De-scope logs volume query cancellation

* Remove todo

* Aggregate logs volume components in single panel

* Show logs volume only when it's available

* Aggregate logs volume by level

* Simplify aggregation

* Handle no logs volume data

* Add error handling

* Do not show auto-load logs volume switcher when loading logs volume is not available

* Remove old logs volume graph

* Clean up

* Make getting data provider more generic

* Provide complete logs volume data (error, isLoading)

* Display more specific error message

* Add missing props to mocks

* Remove setRequest method

* Mark getQueryRelatedDataProviders as internal

* Add missing dataQueryRequest and add a todo

* Remove redundant loading state

* Do not mutate existing queries

* Apply fix for zooming-in from main

* Post-merge fixes

* Create collection for data provider results

* Use more generic names

* Move aggregation logic to Loki logs volume provider

* Move LogsVolume to common types

* Update tests

* Post-merge fixes

* Fix mapping related data values

* Simplify prop mappings

* Add docs

* Fix property name

* Clean-up

* Mark new types as internal

* Reduce number of providers to logs volume only

* Simplify data structure to DataQueryResponse

* Move Logs Volume panel to a separate component

* Test logsVolumeProvider.ts

* Add observable version of datasource mock

* Test getLogsVolumeDataProvider method

* Test LogsVolumePanel

* Test logs volume reducer

* Clean up

* Clean up

* Fix test

* Use sum by to use level field directly

* Fix strict type errors

* Fix strict type errors

* Use "logs" instead of "unknown" if only one level was detected

* Add docs about logs volume

* Rename histogramRequest to logsVolumeRequest

* Use LogsVolumeContentWrapper all content types

* Move `autoLoadLogsVolume` local storage handling

* Fix strict error

* Move getting autoLoadLogsVolume to initial state

* Cancel current logs volume subscription

* Test cancelling subscriptions

* Update docs/sources/datasources/loki.md

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

* Update packages/grafana-data/src/types/explore.ts

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

* Inline container styles

* Ensure logs volume is aggregated per each subscription separately

* Simplify logs volume provider

* Type-guard support for logs volume provider

* Simplify event handlers to avoid casting

* Clean up and docs

* Move auto-load switcher to logs volume panel

* Fix test

* Move DataSourceWithLogsVolumeSupport to avoid cross referencing

* Simplify interface

* Bring back old histogram and hide the new one behind a feature flag

* Add missing props to logs histogram panel

* Clean up the provider when it's not supported

* Simplify storing autoLoadLogsVolume

* Remove docs

* Update packages/grafana-data/src/types/logsVolume.ts

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>

* Skip dataframes without fields (instant queries)

* Revert styles changes

* Revert styles changes

* Add release tag

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2021-09-30 15:46:11 +02:00
..
components Explore: Reuse Dashboard's QueryRows component (#38942) 2021-09-15 16:26:23 +01:00
configuration Explore: Support custom display label for derived fields buttons for Loki datasource (#37273) 2021-07-29 12:42:20 -06:00
dataProviders Loki: Full range logs volume (#39327) 2021-09-30 15:46:11 +02:00
img loki: updates the logo 2018-12-12 20:34:33 +01:00
importing Explore: Convert nodes with "*" to regular expressions when a Graphite query is mapped to Loki (#34014) 2021-05-14 14:59:16 +02:00
partials Loki: Add formatting for annotations (#34774) 2021-05-28 10:12:03 +02:00
datasource.test.ts Loki: Full range logs volume (#39327) 2021-09-30 15:46:11 +02:00
datasource.ts Loki: Full range logs volume (#39327) 2021-09-30 15:46:11 +02:00
language_provider.test.ts Prometheus: Fix validate selector in metrics browser (#38921) 2021-09-07 15:44:45 +02:00
language_provider.ts Prometheus: Fix validate selector in metrics browser (#38921) 2021-09-07 15:44:45 +02:00
language_utils.ts Loki: Update labels in log browser when time range changes (#37520) 2021-08-04 14:37:19 +02:00
live_streams.test.ts Chore: Remove md5 dependency and use uuid/v5 instead (#34192) 2021-05-18 13:42:57 +01:00
live_streams.ts Loki: Improve live tailing errors and fix Explore's logs container type errors (#30517) 2021-01-25 17:05:27 +01:00
LokiAnnotationsQueryCtrl.tsx Fix showing of Loki query editor in Annotations (#33279) 2021-04-23 09:48:35 +02:00
mocks.ts Prometheus: Fix validate selector in metrics browser (#38921) 2021-09-07 15:44:45 +02:00
module.ts Alerting: app specific query editors for Loki and Prometheus (#34365) 2021-05-19 16:24:27 +02:00
plugin.json Loki: Add support for alerting (#31424) 2021-03-02 14:55:16 +01:00
query_utils.test.ts Loki: Fix highlight of logs when using filter expressions with backticks (#36024) 2021-06-24 12:55:25 +02:00
query_utils.ts Loki: Fix highlight of logs when using filter expressions with backticks (#36024) 2021-06-24 12:55:25 +02:00
README.md Prettier: Fix all markdown files and add markdown files to CI verify step (#39776) 2021-09-29 14:34:40 +02:00
result_transformer.test.ts Explore: Support custom display label for derived fields buttons for Loki datasource (#37273) 2021-07-29 12:42:20 -06:00
result_transformer.ts Explore: Support custom display label for derived fields buttons for Loki datasource (#37273) 2021-07-29 12:42:20 -06:00
syntax.test.ts Loki: LogQL v2 support (#27884) 2020-10-14 10:22:39 +02:00
syntax.ts Add pattern parser to syntax (#37824) 2021-08-15 21:20:37 +02:00
types.ts Loki: add support for resolution (#36710) 2021-08-16 14:02:13 +02:00

Loki Data Source - Native Plugin

This is a built in data source that allows you to connect to the Loki logging service.