Kyle Brandt
27288276a2
Prometheus: Restore FromAlert header ( #55255 )
...
This restores the FromAlert header to prometheus for Grafana managed alert Queries.
It does this by reverting "Prometheus: Remove middleware for custom headers (#51518 )" , but also changing it so it is only the FromAlert header.
This reverts commit 2372501368 .
2022-09-22 11:03:13 -04:00
Andrej Ocenas
d0e548c3e5
Prometheus: Add flag to compare streaming and buffered responses ( #51711 )
...
* Add flag to compare streaming and buffered
* Move log
* Fix lint
* Fix tests
* Remove debug logs
2022-07-28 14:26:51 +02:00
Andrej Ocenas
2372501368
Prometheus: Remove middleware for custom headers ( #51518 )
2022-06-29 11:04:57 +02:00
Andrej Ocenas
d20afa2a39
Prometheus: Use contextual middleware for req headers and simplify client creation ( #51061 )
...
* Use contextual middleware and simplify client creation
* Fix tests
* Add test for the header propagation
* Fix tests and lint
* Update pkg/tsdb/prometheus/prometheus.go
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com >
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com >
2022-06-23 14:48:16 +02:00
Andrej Ocenas
d2fefec306
Prometheus: Fix aligning of labels of exemplars after backend migration ( #49924 )
...
* Fix normalization of labels
* Move sorting so it actually has an effect
* fix lint error
Co-authored-by: Todd Treece <todd.treece@grafana.com >
2022-06-01 11:13:57 +02:00
Jimmie Han
0a509b97ef
Prometheus: Fix inconsistent labels in exemplars resulting in marshal json error. ( #46135 )
...
like "frame has different field lengths, field 0 is len 5 but field 14 is len 2"
Signed-off-by: Jimmie Han <hanjinming@outlook.com >
2022-05-23 15:05:57 +02:00
Todd Treece
e1a9ce4cc4
Prometheus: Move existing query logic to new buffered package ( #48668 )
2022-05-12 05:34:09 -04:00