Grot (@grafanabot) and Gábor Farkas
198f690667
loki: better handle an empty-response ( #52397 ) ( #52431 )
...
(cherry picked from commit 46eec85b1a )
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com >
2022-07-19 02:30:37 -04:00
Gábor Farkas
f12b86f7ec
Loki: Handle data source configs with path in the url ( #50971 ) ( #51006 )
...
* loki: fixed param-name
* loki: handle datasource configs with path in the url
* lint fix
(cherry picked from commit ccc587dc0f )
2022-06-17 08:22:42 +02:00
Grot (@grafanabot) and Todd Treece
1e2708cbcf
Prometheus: Streaming JSON parser performance improvements ( #48792 ) ( #49542 )
...
(cherry picked from commit 94b9c524a8 )
Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com >
2022-05-24 22:35:19 +02:00
Gábor Farkas and Todd 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 and Todd 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
d8a754c4a0
loki: send metadata requests through backend ( #48063 )
2022-04-25 13:16:14 +02:00
Gábor Farkas and Ivana 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 and Ivana 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 and Ivana Huckova
1cad35ea67
loki: backend mode: support all query types ( #45619 )
...
* loki: backend mode: support all query types
* loki: backend: adjust vector-parsing field-names
* loki: backend: no interval for streams-dataframes
* loki: backend: enable more query types
* better variable name
* removed unnecessary code
* improve frame-processing
* more unit tests
* improved code
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
* remove unused code
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
* simplify code
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
* lint fix
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
2022-02-25 09:14:17 +01:00
Gábor Farkas and Ivana Huckova
5d704fd46e
Loki: backend: use custom http code ( #44643 )
...
* Loki: backend: use custom http code
* simplfied comment
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
2022-02-18 14:35:39 +01:00