Ivana Huckova and Piotr Jamróz
1c838f5872
Explore: Add more meta information when line limit is hit ( #33069 )
...
* WIP: Add more info ro log line limit, remove redundant info
* Refactor
* Clean up
* Adjust tests
* Adjust spacing
* Add test for new functionality
* Update snapshot
* Change solution, simplify
* Remove redundant variables, makees it more clear
* Update public/app/core/logs_model.ts
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
2021-04-21 12:02:34 +02:00
Ivana Huckova
4f7728738e
WIP ( #33025 )
2021-04-15 15:06:26 +02:00
Ivana Huckova
501d5fbcc2
Explore: Scroll split panes in Explore independently ( #32978 )
...
* Change default prometheus to latest and prometheus v1 to prometheus1
* Update README
* Remove prometheus1 block as not used
* Explore: Separatae scrolling in split view
* Update snapshot
2021-04-15 10:44:25 +02:00
Ivana Huckova
727a24c1bb
Clean up of not used datasources ( #32937 )
2021-04-14 13:23:59 +02:00
Ivana Huckova
a0c38e243c
Prometheus: Update devenv block without a version to the latest version ( #32847 )
...
* Change default prometheus to latest and prometheus v1 to prometheus1
* Update README
* Remove prometheus1 block as not used
2021-04-13 15:12:48 +02:00
Ivana Huckova
0a56527ed9
Inspector: Download logs for manual processing ( #32764 )
...
* Add download logs functionality
* Refactor InspectDataTab to be smaller
* Add test
* Remove console log
* Add metedata info
* Add metedata info
2021-04-12 18:21:05 +02:00
Ivana Huckova
61d3900b54
Prometheus: Show only graph for range queries in Explore ( #32489 )
...
* Remove showing of table for range query
* Improve comment
2021-04-07 13:38:47 +02:00
Ivana Huckova and Piotr Jamróz
003a85949e
InfluxDB: Fix Cannot read property 'length' of undefined in when parsing response ( #32504 )
...
* Fix Cannot read property 'length' of undefined in Influx
* Update public/app/plugins/datasource/influxdb/response_parser.ts
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
* Update public/app/plugins/datasource/influxdb/response_parser.ts
* Revert to original solution
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
2021-03-31 16:45:30 +02:00
Ivana Huckova
b9800a2cf9
Docs: In Flux documentation replace incorrect v.timeRangeEnd for v.timeRangeStop ( #32505 )
...
* Fix bug in the Flux documentation
* Update docs/sources/datasources/influxdb.md
2021-03-30 17:20:01 +02:00
Ivana Huckova
cfc7537632
Set spanNulls to default ( #32471 )
2021-03-30 12:26:39 +02:00
Ivana Huckova and Dimitris Sotirakis
5ce9fa360d
Loki: Convert Loki query response to dataframes ( #32316 )
...
* Return dataFrames instead of series
* Add test for parseResponse
* Update pkg/tsdb/loki/loki.go
Co-authored-by: Dimitris Sotirakis <sotirakis.dim@gmail.com >
* Fix linting, add test
Co-authored-by: Dimitris Sotirakis <sotirakis.dim@gmail.com >
2021-03-26 16:47:46 +01:00
Ivana Huckova
a127e09503
Loki: Fix text search in Label browser ( #32293 )
...
* Switch to simple search before implementing proper fuzzy search
* Just do simple search
* Finalize simple search
* Pass string to highlights
2021-03-25 09:57:08 +01:00
Ivana Huckova
8d9de3f626
Docs: Adjust sizes of images in Loki documentation ( #32301 )
...
* Adjust size of log browser image
* Adjust size of log browser image
2021-03-25 09:38:09 +01:00
Ivana Huckova
bd7285a9e3
Explore: Show all dataFrames in data tab in Inspector ( #32161 )
...
* Add option to show/download all data
* Add test
* Address feedback
2021-03-24 19:01:23 +01:00
94ac097f47
Docs: Update Loki documentation ( #31867 )
...
* Update Loki documentation
* Update
* Update docs/sources/datasources/loki.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Update docs/sources/datasources/loki.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Update docs/sources/datasources/loki.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Update docs/sources/datasources/loki.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Update docs/sources/datasources/loki.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Update docs/sources/datasources/loki.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Update docs/sources/datasources/loki.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Update docs/sources/datasources/loki.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/datasources/loki.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/datasources/loki.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/datasources/loki.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/datasources/loki.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/datasources/loki.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/datasources/loki.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update, add images and log browser info
* Add documentation for label browser
* Update docs/sources/datasources/loki.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2021-03-23 17:00:18 +01:00
Ivana Huckova
cfdb9db775
Logs: If log message missing, use empty string ( #32080 )
...
* Fix error when message in undefined and add test
* Fix typo
2021-03-23 09:17:55 +01:00
Ivana Huckova
664b13d83e
Explore: Support full inspect drawer ( #32005 )
...
* Move InspectSubtitle to grafana/ui
* Move inspect elements to features/inspector
* Move InspectJSON and use it also in Explore
* Move and use QueryInspector
* Move all to features/inspector
* WIP Data tab implementation
* Process dataframes for explores inspector
* Clean up
* Update test
* Clean up
* Fix Explore Inspector button name
2021-03-18 17:38:09 +01:00
Ivana Huckova
dfd4eccc7c
Loki: Label browser UI updates ( #31737 )
...
* UI updates for Label Browser
* Revert "UI updates for Label Browser"
This reverts commit 3d34112762 .
* UI updates for Label Browser
* Remove unused style
2021-03-18 16:28:02 +01:00
Ivana Huckova
240e65f693
Loki: Fix autocomplete when re-editing Loki label values ( #31828 )
...
* Allow re-editing of labels in Loki queries
* Update public/app/plugins/datasource/loki/language_provider.ts
2021-03-15 14:11:43 +01:00
Ivana Huckova
91dde5c980
Loki: Fix type errors in language_provider ( #31902 )
...
* Add initial stat for logLabelOptions
* Refactor, update, remove
* Simplify
2021-03-12 15:21:30 +01:00
Ivana Huckova
53ba6456d4
Loki, Prometheus: Change the placement for query type explanation ( #31784 )
...
* Fix tooltip in the way
* Add more info for instant query
* Update public/app/plugins/datasource/loki/components/LokiOptionFields.tsx
* Update public/app/plugins/datasource/prometheus/components/PromExploreExtraField.tsx
2021-03-09 14:17:04 +01:00
Ivana Huckova
445132a904
Fix escaping in ANSI and dynamic button removal ( #31731 )
2021-03-08 12:24:44 +01:00
Ivana Huckova
2a2a6a3bfa
Add Loki to list of alerting data sources ( #31650 )
2021-03-05 11:30:56 +01:00
Ivana Huckova and achatterjee-grafana
7055c40cfc
Docs: Add info about Prometheus http method ( #31651 )
...
* Add infor about http method
* Update docs/sources/datasources/prometheus.md
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-03-05 11:30:26 +01:00
Ivana Huckova
4c2e5fcbd0
Explore/Logs: Escaping of incorrectly escaped log lines ( #31352 )
...
* POC: Escaping of incorrectly escaped log lines
* Remove unused import
* Fix test, change copy
* Make escapedNewlines optional
* Fix typechecks
* Remove loading state from the escaping button
* Update namings
2021-03-03 18:32:27 +01:00
Ivana Huckova
d5fee5a3f5
Loki: Add support for alerting ( #31424 )
...
* Create Loki backend template
* Update endpoint
* Adjust step
* Add test
* Change to use Loki client
* Address feedback, improve errors and comments
* Linting
* Update pkg/tsdb/loki/loki.go
* Update pkg/tsdb/loki/loki.go
* Update pkg/tsdb/loki/loki.go
2021-03-02 14:55:16 +01:00
Ivana Huckova
bb6488338b
Loki: Refactor line limit to use grafana/ui component ( #31509 )
...
* Refactor line limit to use grafana/ui component
* preprocess lines reefactor
* Revert "preprocess lines reefactor"
This reverts commit 9e9c034269 .
2021-03-01 16:08:53 +01:00
Ivana Huckova
aeabaee2da
Explore: Show ANSI colored logs in logs context ( #31510 )
...
* If ANSI in log context, show it
* Update
* Update
* Add test
2021-02-26 16:27:51 +01:00
Ivana Huckova
2d9f460e19
LogsPanel: Show all received logs ( #31505 )
...
* Show all received logs in LogsPanel
* Remove rowLimit
2021-02-26 15:33:34 +01:00
Ivana Huckova and achatterjee-grafana
7d8eff1e7b
Docs: Derived fields links in logs detail view ( #31482 )
...
* Add documentatioon for Derived fields links in Explore
* Update Toggle detected fields heading
* Update docs/sources/explore/logs-integration.md
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-02-25 20:18:19 +01:00
Ivana Huckova
dce67db6ba
Prometheus: Use configured HTTP method for /series and /labels endpoints ( #31401 )
...
* Run post-friendly request with set method first
* Improve messaging, retry only when post and specific status code
* Add comments
* Fix backend
* Update public/app/plugins/datasource/prometheus/datasource.ts
2021-02-23 16:31:03 +01:00
Ivana Huckova
6d1076fca7
Devenv: Add gdev-influxdb2 data source ( #31250 )
...
* Add gdev-influxdb2 data source
* Change influxdb2 docker block to use 8087 port
* Update telegraf url
2021-02-23 16:30:35 +01:00
Ivana Huckova
4ca3dccb6d
Prometheus: Change default httpMethod for new instances to POST ( #31292 )
...
* Implement POST to specific endpoints and change POST as default
* Add tests for PromSettings
* Add tests to dataosurce.ts for new functionality
* Remove /label /series implementation
* Update public/app/plugins/datasource/prometheus/configuration/PromSettings.tsx
2021-02-22 17:35:15 +01:00
Ivana Huckova and Zoltán Bedi
58968e1ceb
Devenv: Remove old-versioned loki blocks and update prometheus2 block ( #31282 )
...
* Remove very old-versioned loki blocks
* Update prometheus block from 2.7.2 to latest
* Remove data sources in Grafana
* Fix e2e test not to intercept the whole url
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
2021-02-19 18:06:09 +01:00
Ivana Huckova and Zoltán Bedi
4f61edd28d
Prometheus: Fix enabling of disabled queries when editing in dashboard ( #31055 )
...
* Fix disable bug by passing hide prop
* Make more universal fix
* Revert to original fix
* Update public/app/plugins/datasource/prometheus/components/PromQueryEditor.tsx
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
2021-02-16 16:23:26 +01:00
Ivana Huckova
350dcb999a
Loki: Add line limit for annotations ( #31183 )
...
* Add line limit to Annotation query editor
* Refactor to keep type consistent
2021-02-16 13:27:17 +01:00
Ivana Huckova
c269f18500
Remove deprecated and breaking loki config field ( #31227 )
2021-02-16 13:11:18 +01:00
Ivana Huckova and achatterjee-grafana
c01fb7efd7
Prometheus: Add documentation for ad-hoc filters ( #31122 )
...
* Prometheus: Add documentation for ad-hoc filters
* 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 >
* Add link to ad hoc filters doumentation
* Change direct url for relative
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2021-02-11 15:42:19 +01:00
Ivana Huckova
b2ca9cbda6
Prometheus: Fix issues with ad-hoc filters ( #30931 )
...
* Don't add {} to non-metrics starting with quotes
* Fix for using template variables
* Fix adding of filter to timerange
* Fix adding of filter to labels provided with group modifier
* Fix adding of filters to Grafana's variables
* Shorten tests
* Refactor and split
2021-02-10 14:02:42 +01:00
Ivana Huckova and Giordano Ricci
16c25102bc
LogsPanel: Add deduplication option for logs ( #31019 )
...
* WIP: Add dedup functionality to logs panel
* Simplify, clean up
* Change ordering of customizations based on how it is in Explore
* Update public/app/plugins/panel/logs/LogsPanel.tsx
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com >
* Update public/app/plugins/panel/logs/LogsPanel.tsx
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com >
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com >
2021-02-10 14:01:59 +01:00
Ivana Huckova
c69c8bd47c
Explore: Remove emotion error when displaying logs ( #31026 )
...
* Remove emotion error
* Remove redundant context variable
2021-02-09 14:57:06 +01:00
Ivana Huckova and achatterjee-grafana
25ef563a53
Prometheus: Add tooltip to explain possibility to use patterns in text and title fields in annotations ( #30825 )
...
* Add tip for using pattern
* Update public/app/plugins/datasource/prometheus/partials/annotations.editor.html
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-02-02 20:59:02 +01:00
Ivana Huckova
0427df8f60
Prometheus: Set type of labels to string ( #30831 )
2021-02-02 16:48:31 +01:00
Ivana Huckova
76f77f86c5
Add width for Variable Editors ( #30791 )
2021-02-01 16:47:41 +01:00
Ivana Huckova
78433032ab
Use connected GraphNG in Explore ( #30707 )
2021-01-28 13:58:02 +01:00
Ivana Huckova
e34d9e1c32
Explore: Fix jumpy live tailing ( #30650 )
...
* Fix jumpy live tailing
* Fix test
2021-01-27 15:28:32 +01:00
Ivana Huckova
347343f583
Loki: Improve live tailing errors and fix Explore's logs container type errors ( #30517 )
...
* If error - catch and show, if no logs - return null
* Refactor LogsContainer to use ConnectedProps
* Fix typescript error
* Remove no logs check
* Include review feedback
* Add SplitOpen type to createSpanLink and TraceView
2021-01-25 17:05:27 +01:00
Ivana Huckova
5d52e50f6f
Explore: Fix loading visualisation on the top of the new time series panel ( #30553 )
...
* Fix loading for time series graph panel
* Fix test by adding loading prop to dummyProps
2021-01-22 18:15:06 +01:00
Ivana Huckova
6692e1c332
Loki: Append refId to logs uid ( #30418 )
...
* Append refId to Loki uid, add tests
* Fix linting
* Fix linting
* Hopefully finally fix linting errors
2021-01-22 11:09:09 +01:00
Ivana Huckova
56fb04e94c
Explore: Update styling of buttons ( #30493 )
...
* Switch deprecared toggle group for radio buttons
* Create transparent version of field, label and witch
* Replace divs wiith components
* Move styling from scss to js
* Update buttons
* Remove log generating file
* Update level button
2021-01-21 15:49:38 +01:00
Ivana Huckova
086c77f5e3
Loki: Remove showing of unique labels with the empty string value ( #30363 )
...
* Remove empty unique label values
* Add test
* Simplify
2021-01-19 11:06:51 +01:00
Ivana Huckova
1cecc7f9b5
Clears errors after running new query ( #30367 )
2021-01-19 10:47:40 +01:00
Ivana Huckova
60828316c0
Fix spinner and broken buttons ( #30286 )
2021-01-14 20:05:38 +01:00
Ivana Huckova
f9ba87f1c8
Loki: Fix hiding of series in table if labels have number values ( #30185 )
...
* Fix summing of label names for Loki
* Add test
2021-01-14 15:47:18 +01:00
Ivana Huckova
0d9dbcf7fa
Loki: Lower min step to 1ms ( #30135 )
...
* Set min step to 0.1 sec instead of 1 sec
* Remove duplicated test
* Update
* Change minInterval to 1ms
* Remove unused import
2021-01-14 15:46:51 +01:00
Ivana Huckova
a05596848d
Prometheus: Improve autocomplete performance and remove disabling of dynamic label lookup ( #30199 )
...
* processLabels: Use Sets instead of Array
* Add and update comment
* Limit autocomplete items to 10000
* Remove lookup treshold, limit display of items
* Update tests
* Add test
* Update public/app/plugins/datasource/prometheus/language_provider.ts
2021-01-14 15:45:45 +01:00
Ivana Huckova
e99cb309d3
Add info about access mode ( #30137 )
2021-01-08 19:19:28 +01:00
Ivana Huckova and Zoltán Bedi
8ad79a2635
Prometheus: Remove running of duplicated metrics query ( #30108 )
...
* Remove metrics rerenders
* Refactor
* Update public/app/plugins/datasource/prometheus/components/PromQueryField.tsx
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
* Update public/app/plugins/datasource/prometheus/language_utils.ts
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
* Add test
* Update public/app/plugins/datasource/prometheus/components/PromQueryField.test.tsx
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
2021-01-08 19:19:00 +01:00
Ivana Huckova
ae1d2fb505
Prometheus: Fix autocomplete does not work on incomplete input ( #29854 )
...
* WIP, works but need to do more testing
* Update solution
* Fix autocomplete with metrics
* Update public/app/plugins/datasource/prometheus/language_provider.ts
* Update public/app/plugins/datasource/prometheus/language_provider.ts
* Change test for new functionality
2021-01-08 18:31:21 +01:00
Ivana Huckova
6cdf0ab5d9
Keep query keys consistent ( #29855 )
2020-12-16 18:24:47 +01:00
Ivana Huckova
2a76195aed
Loki: Remove unnecessary deduplication ( #29421 )
...
* Remove unnecessary deduplication
* Remove dedup test as we are not doing dedup on all logs anymore
* Create unique ids in Loki
* Fix comment
* Fix comment
* Store prev response uids in usedUids
* Revert "Store prev response uids in usedUids"
This reverts commit 05c496e2a8 .
* Add comment
2020-12-15 15:18:12 +01:00
Ivana Huckova
356fa0dce6
Explore/Logs: Correctly display newlines in detected fields ( #29541 )
...
* Fix using of newlines in detected fields
* Wrapping depends on main selection
* Update props to be optional
* Add missing wrapLogMessage prop to test
2020-12-15 14:43:12 +01:00
Ivana Huckova
dbf0470994
Chore: Remove unused Loki and Cloudwatch syntax providers ( #29686 )
...
* Remove syntax provider in Cloudwatch
* Remove syntax provider and refactor useLokiLabels
2020-12-15 12:17:29 +01:00
Ivana Huckova
854f6229f7
Pass row ( #29839 )
2020-12-15 12:16:52 +01:00
Ivana Huckova
3ee2e49d9a
Explore: Improve Explore performance but removing unnecessary re-renders ( #29752 )
...
* Fix Explore and Logs rerenders
* Create ReturnToDashboardButton
* Add test for new component
* Remove queryKeys change on keystroke
* Move rendering conditions to Button
* Remove redundant logic
2020-12-15 10:12:53 +01:00
Ivana Huckova
e313c0cea0
@grafana/ui: Fix UI issues for cascader button dropdown and query input ( #29727 )
...
* Fix broken cascader width
* Remove text cursor in area where it does not affect slate
2020-12-09 19:01:28 +01:00
Ivana Huckova
d85829ffd1
Remove unnecessary escaping ( #29677 )
2020-12-08 15:40:35 +01:00
Ivana Huckova
589b5e110c
Loki: Retry web socket connection when connection is closed abnormally ( #29438 )
...
* Add retryWhen to Loki socket
* Refactor,
* Add info message after 10 reconnections, remove console log
* Add test
* Specify response in tests
* Check specific lines for content
* Remove unused imports
* Replace AppEvents with console.warn
* Add limit of re-connections
2020-12-07 10:13:57 +01:00
Ivana Huckova
3018c6a1b1
Prometheus: Fix link to Prometheus graph in dashboard ( #29543 )
...
* Fix Promlink to have href after componentDidMount
* Refactor to hooks and react testing library
* Update
* Update snapshot test
2020-12-04 17:01:43 +01:00
Ivana Huckova and kay delaney
2a61d7ff9f
IntelliSense: Fix autocomplete and highlighting for Loki, Prometheus, Cloudwatch ( #29381 )
...
* Pass languages directly to SlatePrism plugin
* Update
* Remove unused variables
* Update packages/grafana-ui/src/components/DataLinks/DataLinkInput.tsx
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com >
* Update public/app/plugins/datasource/prometheus/components/PromQueryField.tsx
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com >
* Update public/app/plugins/datasource/prometheus/components/PromQueryField.tsx
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com >
* Update public/app/plugins/datasource/loki/components/LokiQueryFieldForm.tsx
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com >
* Update public/app/plugins/datasource/cloudwatch/components/LogsQueryField.tsx
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com >
* Try Prism import instead of languages
* Update webpack
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com >
2020-12-02 14:09:55 +01:00
Ivana Huckova and Diana Payton
eb16eb5d72
Docs/Transformations: Add documentation about Binary operations in Add field from calculation ( #29511 )
...
* Add also infor about binary operations
* Update docs/sources/panels/transformations/types-options.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Update docs/sources/panels/transformations/types-options.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Update docs/sources/panels/transformations/types-options.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
2020-12-02 09:44:35 +01:00
Ivana Huckova
a54e0ff79d
Loki: Add query type and line limit to query editor in dashboard ( #29356 )
...
* WIP Add line limit and query type switch toLoki dashboard editor
* Refactor, reuse code for both - Explore and Dashboard
* Üpdate snapshot tests
* Refactor and unify
* Rename test file
* Update test
2020-12-01 20:43:35 +01:00
Ivana Huckova and Diana Payton
83329ae7e4
Explore/Logs: Update Parsed fields to Detected fields ( #28881 )
...
* Change all parsed fields and functions to detected fields
* Update
* Sneak in UI improvement, add tooltip
* Update docs/sources/whatsnew/whats-new-in-v6-5.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Update docs/sources/whatsnew/whats-new-in-v6-5.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Remove changes from old Whats new
* Rename LogMessageParsed
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
2020-11-23 20:10:09 +01:00
Ivana Huckova and Diana Payton
6838af5ce1
Explore/Prometheus: Update default query type option to "Both" ( #28935 )
...
* Update default option to 'both'
* Update public/app/plugins/datasource/prometheus/components/PromExploreExtraField.tsx
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Fix running of queries for both
* Update wording
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
2020-11-20 12:08:10 +01:00
4c103663fb
Loki/Explore: Add query type selector ( #28817 )
...
* Create query type switcher
* Add and update tests
* Add handling in datasource
* Refactor
* Update tests, when checking higlighting, suppy logs
* Remove both option as redundant
* Add tooltip, remove old comments
* Remove unused importts
* Remove console.log, update width
* Update public/app/plugins/datasource/loki/components/LokiExploreExtraField.tsx
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Update tests
* Prettier fixes
* Fix test
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
2020-11-20 11:12:34 +01:00
Ivana Huckova
71df15738f
sort alphabetically unique labels, labels and parsed fields ( #29030 )
2020-11-13 14:17:00 +01:00
Ivana Huckova
5940250480
Fix prometheus docs related to query variable ( #29027 )
2020-11-11 15:47:18 +01:00
Ivana Huckova and achatterjee-grafana
e834ad0093
Docs: Add documentation about log levels ( #28975 )
...
* Add documentation about log level
* Update
* Update
* Update
* Add unknow to table
* Update docs/sources/explore/index.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/panels/visualizations/logs-panel.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2020-11-11 14:56:24 +01:00
Ivana Huckova
7378af0a77
Fix documentation ( #28998 )
2020-11-11 11:14:44 +01:00
Ivana Huckova
812f588a75
Logs Panel: Fix inconsistent higlighting ( #28971 )
...
* Highlight filter expression in panel
* Remove coonsole.log
2020-11-11 09:58:21 +01:00
Ivana Huckova
0f7a470138
Icon: Replace font awesome icons where possible ( #28757 )
...
* Replace font awesome icons where possible
* Implement small updates
2020-11-04 13:34:40 +01:00
Ivana Huckova
f71f03bf94
Explore: Remove redundant decodeURI and fix urls ( #28697 )
...
* Remove redundant path URIdecoding
* Remove redundant comments
2020-11-02 18:14:57 +01:00
Ivana Huckova and Zoltán Bedi
05644e7042
Loki: Fix error when some queries return zero results ( #28645 )
...
* Fix logSeriesToLogsModel when some data frames have empty fields
* Update test
* Update public/app/core/logs_model.ts
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
2020-10-30 09:12:57 +01:00
Ivana Huckova
e94b37c656
Explore/Loki: Update docs and cheatsheet ( #28541 )
...
* Add updated histogram docs
* Add to cheatsheet
* Update
* Update docs/sources/explore/index.md
* Update docs/sources/explore/index.md
2020-10-28 09:16:10 +01:00
Ivana Huckova
cd8c9223b7
Switch default version to Graphite 1.1 ( #28471 )
2020-10-22 16:20:07 +02:00
Ivana Huckova
a0932f4d2a
Shorten url: Unification across Explore and Dashboards ( #28434 )
...
* WIP: Unify short url for dashboards and explore
* Add tests
* Update
* Address feedback, move createShortUrl to buildUrl
2020-10-22 10:31:58 +02:00
Ivana Huckova
d9d34ceedf
Fix cut off icon ( #28442 )
2020-10-21 21:39:24 +02:00
Ivana Huckova and Giordano Ricci
3f39b4b601
Loki: Visually distinguish error logs for LogQL2 ( #28359 )
...
* Loki: Add errored logs and update UI
* Update messaging
* Add icon and tooltip for errored logs
* Update name of variable for more semantic meaning
* Add tests
* Update test
* Refactor, remove unnecessary state
* Update packages/grafana-data/src/types/logs.ts
* Update packages/grafana-ui/src/components/Logs/LogDetails.tsx
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com >
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com >
2020-10-21 19:11:32 +02:00
Ivana Huckova
db071e4939
Explore: Allow shortlink generation ( #28222 )
...
* Add short link functionality to Explore and Rich history
* Update documentation
* Implement short url for explore
* Implement short link in Rich history
* Update docs
* Add error alert
2020-10-14 17:08:27 +02:00
Ivana Huckova
e269445d79
Loki: LogQL v2 support ( #27884 )
...
* Add new logql v2 functions
* Fix autocompletion if missing ending }
* Refactor operators regex, add pipe operator and tests
* Add parsers
* Update tests
* Add parsers to suggestions, add test
* Add operators to syntax
* Create pipe operator autocomplete + highlighting + add tests
* Add to documentation that pipe operations are available in in Loki 2.0+
* Update snapshot test
* Update operators list, add regex quotes and move cursor
* Fix spelling
* Update documentation
* Update
2020-10-14 10:22:39 +02:00
Ivana Huckova
a3ef101618
Explore: Fix showing of Prometheus data in Query inspector ( #28128 )
...
* Fix showing of data in explore's query inspector
* Add test
* Add test
* Updat etest
* Implement react-testing-library and remove props export
* Update tests for consistency
2020-10-09 14:49:14 +02:00
Ivana Huckova
0ffd9a9a3c
Loki: Run instant query only in Explore ( #27974 )
...
* Run instant query only in Explore
* Replace forEach with for loop
2020-10-04 21:41:12 +02:00
Ivana Huckova
43c389d119
Revert "Update refId for instant queries ( #27954 )" ( #27960 )
...
This reverts commit 9546da3189 .
2020-10-01 14:39:32 +02:00
Ivana Huckova
9546da3189
Update refId for instant queries ( #27954 )
2020-10-01 12:19:24 +02:00
Ivana Huckova
2f5a60f561
Explore: Remove ui params from url ( #27753 )
...
* Remove ui from url
* Update tests
* Update changeDedupStrategy
* Add test coverage
2020-10-01 12:18:21 +02:00
Ivana Huckova and Zoltán Bedi
d7e192a8fe
Prometheus/Explore: Update position of fields in editor ( #27816 )
...
* Update position of buttons
* Refactor, add tests
* Pass onKeydown func
* Update public/app/plugins/datasource/prometheus/components/PromQueryField.tsx
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
2020-09-28 21:25:16 +02:00
Ivana Huckova
336699c575
Fix formating of results from instant queries in Explore ( #27767 )
2020-09-25 14:34:33 +02:00
Ivana Huckova and Zoltán Bedi
f6c91d1318
Explore: Remove not running query for collapsed elements ( #27026 )
...
* Make graph and table collapsing just a UI thing
* Remove showingGraph and showingTable, set them defaultly to true
* Remove collaapsing for panels in Explore
* UI toggle WiP
* WIP, add query type
* Refactor, clean up
* Update tests
* Clean uo
* Update rangeAll to range and instant
* Remove console logs
* Update packages/grafana-data/src/types/datasource.ts
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
* Update public/app/core/utils/explore.ts
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
* Fix prettier error
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
2020-09-22 17:31:42 +02:00
Ivana Huckova and Diana Payton
32deddbf0b
Docs: Promehteus Explore query editor ( #27683 )
...
* Add docs for explore query editor
* Update text
* Reverse changed linting
* Update docs/sources/features/datasources/prometheus.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Update docs/sources/features/datasources/prometheus.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
2020-09-22 17:30:21 +02:00
Ivana Huckova
58627a0c38
Loki: Re-introduce running of instant queries ( #27213 )
...
* Run instant queries for loki
* Add catch for instant query errors, update test
2020-08-27 10:32:36 +02:00