Commit Graph
100 Commits
Author SHA1 Message Date
Gábor Farkas 3a545007ca elastic: devenv: add nested objects to data generator (#55482) 2022-09-21 11:34:49 +02:00
Gábor Farkas 323ca6825a devenv: removed obsolete elastic docker configs (#55402) 2022-09-20 10:16:28 +02:00
Gábor Farkas 5efeff4890 GrafanaUI: Deprecate logs components (#55364)
* grafana-ui: mark logs-components deprecated

* improved deprecation-message
2022-09-19 13:21:14 +02:00
Gábor Farkas 1ee6a1f7c2 Logs: move logs-components from grafana-ui to grafana-main (#55041)
* logs: added a copy of the grafana-ui logs-files

* fix: added the ansicolor package to the main grafana package

* logs-components: import things from grafana-ui

* import from local files

* logs-components: other fixes

* add betterer-exceptions

* apply updates from grafana-ui package
2022-09-19 10:51:46 +02:00
Gábor Farkas 6dcc8534f7 elastic: simplify unit test (#55168) 2022-09-14 08:59:35 -04:00
Gábor Farkas 5388dc6a2f devenv: elastic: new version (#54841) 2022-09-12 11:48:39 +02:00
Gábor Farkas 7c4c2fb341 codeowners: assign logs-devenvs to logs-squad (#54842) 2022-09-12 09:41:08 +02:00
Gábor Farkas 687b0b1726 elastic: explain why moving_avg is 7.x only (#54840) 2022-09-07 14:31:11 +02:00
Gábor Farkas a58edc9f5e elastic: always use millisecond-intervals for alerting (#54157) 2022-08-26 14:40:28 +02:00
Gábor Farkas 448a67ab43 elastic: use millisecond-intervals (#54202) 2022-08-26 08:56:39 +02:00
Gábor Farkas 89d264fecc logs: better names and comments (#53770)
* logs: better names and comments

* comment: updated capitalization
2022-08-25 12:49:35 +02:00
Gábor Farkas 60d1668d74 Elasticsearch: Respect time range in ad hoc filters (#53874)
* elastic: respect time range in ad hoc filters

* added unit test
2022-08-25 09:29:15 +02:00
Gábor Farkas 35253a909d Elasticsearch: remove already-disabled code (#52932)
* elastic: removed unused code from go-part

* elastic: removed unused code from js-part
2022-08-22 16:25:20 +02:00
Gábor Farkas 395e443932 loki: Fix adding refId to rowId (#53932) 2022-08-22 13:09:33 +02:00
Gábor Farkas 6fe2d4724a devenv: elastic: update to new version (#53825) 2022-08-17 15:02:00 +02:00
Gábor Farkas 549f963366 codeowners: adjust logs ownership (#53771) 2022-08-16 07:29:30 -04:00
Gábor Farkas ba76f9b580 elastic: eliminate react warning (#52934) 2022-07-29 12:24:33 +00:00
Gábor Farkas 52989c2144 loki: remove unused code (#52435) 2022-07-27 06:11:09 +00:00
Gábor Farkas 7d78d3f8b2 CODEOWNERS: update for the observability-logs squad (#52792) 2022-07-26 15:51:15 +00:00
Gábor Farkas c74f9daba0 logs: better volume-color (#52711) 2022-07-26 10:50:48 +02:00
Gábor Farkas b42ac8a211 github: add issues to logs-squad based on labels (#52533) 2022-07-20 10:01:02 -04:00
Gábor Farkas 46eec85b1a loki: better handle an empty-response (#52397) 2022-07-19 08:13:38 +02:00
Gábor Farkas 1d3cd0103e logs: send more info to getLogRowContext (#52130) 2022-07-15 14:02:43 +00:00
Gábor Farkas df9f86190f devenv: influxdb: fix config (#51781) 2022-07-06 11:58:17 +02:00
Gábor Farkas bf824221d2 renovate: add more default-labels (#51373) 2022-06-24 10:59:06 +00:00
Gábor Farkas 48a258f515 loki: no histogram for instant queries (#50711) 2022-06-20 11:31:36 +02:00
Gábor Farkas fd63ed540f loki: fix bug in labels framing (#51015) 2022-06-17 12:50:10 +02:00
Gábor Farkas a22e9a0e0a logs: merge log-lines-based and full-range histogram (#50507)
* logs: merge old-histogram and new-histogram

* better variable names

* better names

* refactor

* refactor

* refactor

* logs: remove log-volume-loading indicator
2022-06-17 11:42:46 +02:00
Gábor Farkas 109bc7e940 loki: add type=instant tests (#51007) 2022-06-17 09:47:49 +02:00
Gábor Farkas ccc587dc0f Loki: Handle data source configs with path in the url (#50971)
* loki: fixed param-name

* loki: handle datasource configs with path in the url

* lint fix
2022-06-17 07:47:31 +02:00
Gábor FarkasandIvana Huckova a97f022612 Loki: Handle invalid query type values (#50755)
* loki: more robust query-type handling

* better comment

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

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2022-06-14 11:48:49 +02:00
Gábor Farkas b6a590e535 do not update react-redux (#50700) 2022-06-14 08:39:21 +02:00
Gábor Farkas d872aa993d logs: better hasLogsVolumeSupport check (#50676) 2022-06-13 17:20:57 +02:00
Gábor Farkas a2eb4e85e5 elasticsearch: always use fixed_interval (#50297) 2022-06-13 10:28:29 +02:00
Gábor Farkas 8fd9cb4854 loki: add feature-toggle check to live-mode (#49012) 2022-06-13 08:33:46 +02:00
Gábor Farkas a0e5a4eba2 logs: histogram: handle backend-mode queries (#50535) 2022-06-13 08:33:28 +02:00
Gábor FarkasandIvana Huckova c412a3b052 logs: track the usage of certain features (#50325)
* logs: track the usage of certain features

* Add report interaction for logs interactions

* mock reportInteraction in test

* mock reportInteraction

Co-authored-by: Ivana Huckova <ivana.huckova@gmail.com>
2022-06-09 15:53:23 +02:00
Gábor Farkas 3b745b597f loki: rename result_transformer* to live_streams_result_transformer* (#50376) 2022-06-08 13:28:48 +00:00
Gábor Farkas 130bd26edd loki: better error message when escaping is involved (#50352) 2022-06-08 15:27:58 +02:00
Gábor Farkas 50145e1617 Loki: remove frontend mode code (#50185)
* feature-flag removed

* loki: remove frontend-mode
2022-06-08 08:14:34 +02:00
Gábor Farkas cbfac157fb Logs: handle clicks on legend labels in histogram (#49931)
* logs: move new-histogram next to old-histogram

* logs: handle legend-click in new-histogram

* minor visual change
2022-06-07 14:27:32 +02:00
Gábor Farkas 19df6d52b7 docs: describe cookie handling in backend data source plugins (#49986)
* docs: describe cookie handling in backend data source plugins

* adjusted text
2022-06-07 12:58:46 +02:00
Gábor FarkasandJoey Tawadrous cb96f51c73 Loki: remove angular (#49471)
* loki: remove angular

Co-Authored-By: Joey Tawadrous <joey.tawadrous@grafana.com>

* better backward-compatibility

* slightly better typescript check

Co-authored-by: Joey Tawadrous <joey.tawadrous@grafana.com>
2022-06-07 12:41:16 +02:00
Gábor Farkas 113e601dcf devenv: elastic: fixed docker-compose syntax (#49517) 2022-06-07 11:04:27 +02:00
Gábor Farkas f8eb3c8720 Revert "Loki: do not produce histogram for instant queries (#50019)" (#50182)
This reverts commit b0925ed4ee.
2022-06-06 08:57:36 +02:00
Gábor Farkas 6011c373ae loki: handle ad hoc filters in backend mode (#50135)
* loki: handle ad hoc filters in backend mode

* devenv: better loki fake data

* added test
2022-06-03 10:53:03 +02:00
Gábor Farkas 46d6573968 loki: add cookie-handling functionality (#49978) 2022-06-02 11:52:27 +02:00
Gábor Farkas b0925ed4ee Loki: do not produce histogram for instant queries (#50019)
* loki: no histogram for instant queries

* added test
2022-06-02 09:13:57 +00:00
Gábor Farkas 52c775368b devenv: loki: better fake logs (#50024)
* devenv: loki: more log-levels

* devenv: loki: logfmt mode
2022-06-02 10:23:26 +02:00
Gábor FarkasandIvana Huckova 386181cf45 Loki code editor: do not run query on blur in explore mode (#49241)
* loki code editor: do not run query on blur in explore mode

* loki: code editor: better change tracking

* fixed comment

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

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2022-05-26 15:03:36 +02:00
Gábor Farkas b54817033a loki: better unpack handling (#49074) 2022-05-26 11:26:20 +02:00
Gábor Farkas 514d1bbbdd loki: added two new functions (#49617) 2022-05-26 10:23:28 +02:00
Gábor Farkas ebc20849bd devenv: better loki environment (#49383)
* devenv: rename loki to loki-promtail

* devenv: new loki devenv entry with fake data generation
2022-05-25 11:01:17 +02:00
Gábor Farkas 313d203a87 loki: enable by default backend mode (#49326) 2022-05-21 17:01:57 +02:00
Gábor Farkas 0caeaaafe3 loki: add back frontend-mode metadata queries (#49297) 2022-05-21 16:46:39 +02:00
Gábor Farkas 93e299305c loki: backend-mode: apply default max-lines if not set in the UI (#48859) 2022-05-21 16:39:21 +02:00
Gábor Farkas c980655f08 elastic: config: hide access-mode selector when not needed (#49246) 2022-05-20 17:42:12 +02:00
Gábor Farkas 061055fac9 loki: dataframes: do not set field.config.DisplayName (#49317) 2022-05-20 17:27:49 +02:00
Gábor Farkas 0355772e36 loki: do not use backend-mode when keepCookies is used (#49222) 2022-05-19 14:26:54 +02:00
Gábor Farkas 78e22aac59 loki: backend: better error-handling-tests (#49213) 2022-05-19 14:26:40 +02:00
Gábor Farkas a3c5834594 Elastic: devenv: improved devenv-image (#49002)
* devenv: elastic: improved config

* better ascii-codes
2022-05-19 08:29:23 +02:00
Gábor Farkasandbrendamuir 45d6d38183 Elasticsearch: Remove browser access mode (#49014)
* elastic: remove browser-access-mode

* improved text

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* improved text

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* better text

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* better text

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* better text

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* prettier fixes

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2022-05-18 11:04:47 +02:00
Gábor Farkas 683c1c0f40 logs: use explicit frame-type-check (#48940) 2022-05-16 13:38:05 +02:00
Gábor Farkas d73bd617f0 devenv: elastic: removed unsupported versions, first step (#48960) 2022-05-16 06:34:38 +00:00
Gábor Farkas f866165445 loki: backend: add error-prop if loki parse error happened (#48860) 2022-05-16 08:29:46 +02:00
Gábor Farkas 8b9419222a loki: backend-mode: fix experimental stream-mode (#48936) 2022-05-16 08:28:41 +02:00
Gábor Farkas 44e7602ad2 loki: backend-mode: add "limit" dataframe meta attribute (#48894) 2022-05-12 06:56:09 +00:00
Gábor Farkas 270e38cfcf loki: backend-mode: handle derived fields (#48873) 2022-05-11 09:29:04 +02:00
Gábor Farkas 7b9929fffe loki: framing_test: more infinity/nan test cases (#48855) 2022-05-09 11:47:50 +00:00
Gábor Farkas 66a0916d00 Transformers: mark extract-fields transform as stable (#48810) 2022-05-06 07:21:59 -07:00
Gábor Farkas c4edab884e logs: simpler nanoscecond timestamp handling (#48773) 2022-05-06 10:55:12 +02:00
Gábor FarkasandTodd Treece da74dba7c8 Loki: backend: use streaming JSON parser, try2 (#48752)
* converter: remove __name__ customization because Loki does not do that

Loki does not handle __name__ in a special way.
for Prometheus, the caller can implement the formatting
by themselves

* converter: change labels-formatting

the labels.String() method does not handle strange values well

* loki: backend: use streaming-json parser

* more idiomatic code

Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>

* simpler row-length check

* simpler code

* fixed converter/prom tests

Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>
2022-05-05 13:09:01 +02:00
Gábor Farkas 02aa1cd1c5 loki backend mode forward-oauth (#48401)
* loki: backend: add forward oauth credentials functionality

* removed obsolete comment
2022-05-05 12:42:50 +02:00
Gábor Farkas 3cade2f669 Revert "Loki: backend: use streaming JSON parser (#47656)" (#48747)
This reverts commit 46b40b6e82.
2022-05-05 12:02:53 +02:00
Gábor Farkas 60cabaea0a loki: use metadataRequest in testDatasource (#48431) 2022-05-05 09:43:36 +02:00
Gábor FarkasandTodd Treece 46b40b6e82 Loki: backend: use streaming JSON parser (#47656)
* converter: remove __name__ customization because Loki does not do that

Loki does not handle __name__ in a special way.
for Prometheus, the caller can implement the formatting
by themselves

* converter: change labels-formatting

the labels.String() method does not handle strange values well

* loki: backend: use streaming-json parser

* more idiomatic code

Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>

* simpler row-length check

* simpler code

Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>
2022-05-05 08:47:40 +02:00
Gábor Farkas b0f41b9772 update latest.json to 8.5.2 (#48690) 2022-05-04 12:10:54 +02:00
Gábor Farkas 7d369a1dea Loki: backend: use json-field (#48486)
* fixed strings

* loki: backend: use json-field
2022-05-03 08:03:25 +02:00
Gábor Farkas 62cd722726 Loki: minor backend-dataframe-format changes (#48320)
* loki: backend: better dataframe field names

* loki: backend: add dataframe-type to metric dataframes

* loki: backend: only add stats to the first metric dataframe
2022-04-29 09:04:37 +02:00
Gábor Farkas ae926c2144 loki: better resource-call urls (#48250) 2022-04-28 14:28:57 +02:00
Gábor Farkas c73b9d1818 Loki: do not use the old labels-api (#48185)
* loki: do not use old labels-api

* adjust allowed-url-list

* fixed tests
2022-04-26 11:51:26 +02:00
Gábor Farkas d8a754c4a0 loki: send metadata requests through backend (#48063) 2022-04-25 13:16:14 +02:00
Gábor Farkas f2814046d1 loki: logrowcontext: explicitly name fields (#48043) 2022-04-22 08:43:33 +02:00
Gábor FarkasandIvana Huckova 79c06fdddc Loki: add backend-forward mode to queries, update log-row-context (#47726)
* loki: add helper function to sort dataframe by time

* loki: add direction-attribute to queries

* loki: make log-row-context code backward-compatible

* better comment

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

* fixed test

* simplified code

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2022-04-20 13:52:15 +02:00
Gábor Farkas a15c2021fe Loki: improve backend-compatibility (#47579)
* loki: annotation queries: make them ready for the backend-mode

* removed unused code
2022-04-12 18:23:19 +02:00
Gábor FarkasandIvana Huckova d95468a4bb Loki: use millisecond-steps (#47572)
* loki: use millisecond-steps

* better comment

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

* better comment

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2022-04-12 12:30:39 +02:00
Gábor Farkas 8db35b9b0b loki: backend-mode: allow for dashboards too (#47578) 2022-04-12 12:16:05 +02:00
Gábor Farkas eca61e6dd7 loki: removed unused fields, params, attributes (#47571)
* loki: refactor: removed unused param

* loki: removed unused attribute

* loki: removed unused fields

* loki: remove unused query.format

* loki: removed unused prop
2022-04-12 12:09:47 +02:00
Gábor Farkas 68511e7712 loki: use single-dataframe format on the backend (#47069) 2022-04-12 11:58:48 +02:00
Gábor Farkas beed3fd5de loki: remove unused reverse-attribute (#47494) 2022-04-08 12:24:09 +03:00
Gábor Farkas 9574f447bb grafana-data: removed DataQueryRequest.reverse (#47487) 2022-04-08 12:00:16 +03:00
Gábor Farkas e1438990ae Loki: use the same dataframe-format for both live and normal queries (#47153)
* loki: use single dataframe-format for both live and normal queries

* better comment

* better function-name

* simplified code

* logs_model: added test
2022-04-08 09:57:06 +02:00
Gábor Farkas 6e0826a986 loki: do not convert NaN to null (#45389) 2022-04-07 09:44:04 +02:00
Gábor Farkas 96987ac182 loki: add test to handle __name__ (#47298) 2022-04-05 11:56:54 +02:00
Gábor FarkasandIvana Huckova fdb7bab41a Loki: do not special-case __name__ label (#47251)
* loki: do not mutate the caller's data

* Update public/app/plugins/datasource/loki/result_transformer.ts

better comment

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

* Update public/app/plugins/datasource/loki/result_transformer.ts

no need to handle __name__

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

* simplify code

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2022-04-04 13:52:55 +02:00
Gábor Farkas a246381879 loki: backend-mode: add stats support (#46526)
* loki: backend-mode: add stats support

* refactor: rename variable
2022-03-31 17:50:27 +02:00
Gábor Farkas 2d61022d93 logs: better handle missing fields (#46963) 2022-03-31 10:48:03 +02:00
Gábor Farkas 890a7cdd7c loki: add id-field (#46519)
* loki: add id-field

* fixed test
2022-03-21 09:15:52 +01:00
Gábor Farkas c4404982dc loki: backend-mode: add nanosecond-timestamps (#45963) 2022-03-04 09:42:18 +01:00
Gábor Farkas 525ecab3ee renovate: stop updating "@mdx-js/react" (#45909)
it is a peer-dependency of "@storybook/addon-docs" with version 1.x, the new version is 2.x. we should update them together.
2022-02-25 15:30:23 +01:00