ismail simsek
8edeb1aa22
Prometheus: Handle errors in buffered client ( #58504 )
...
* Handle prometheus errors in buffered client
* Handle prometheus warnings
* Fix tests
* Add unit test for warnings
2022-11-11 15:49:46 +01:00
ismail simsek
0367f61bb3
Share azureauth between prometheus clients ( #58122 )
...
* Move azureauth to upper package
* Refactor http transport options
2022-11-03 19:44:37 +01:00
Yuriy Tseretyan
fa043efb2c
Fix: correctly close trace span in Prometheus and Loki data sources ( #57774 )
...
* rename span for loki
2022-10-28 10:17:56 -04:00
Kyle Brandt
2cd9cbd359
Prometheus: Chore - Remove incorrect FrameType from exemplar frame ( #57695 )
2022-10-28 09:15:01 -04:00
Yuriy Tseretyan
facf2b1ee8
Chore: Update prometheus, loki, graphite and influx plugins to support contextual logs. ( #57708 )
2022-10-27 12:05:06 -04:00
Todd Treece
152c7f149a
Prometheus: Add Exemplar sampling for streaming parser ( #56049 )
2022-10-04 08:40:01 -04:00
Todd Treece
1c61c81dde
Prometheus: Various buffered and streaming parsing fixes ( #55941 )
2022-10-03 10:26:54 -04:00
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
Emil Tullstedt
b287047052
Chore: Upgrade Go to 1.19.1 ( #54902 )
...
* WIP
* Set public_suffix to a pre Ruby 2.6 version
* we don't need to install python
* Stretch->Buster
* Bump versions in lib.star
* Manually update linter
Sort of messy, but the .mod-file need to contain all dependencies that
use 1.16+ features, otherwise they're assumed to be compiled with
-lang=go1.16 and cannot access generics et al.
Bingo doesn't seem to understand that, but it's possible to manually
update things to get Bingo happy.
* undo reformatting
* Various lint improvements
* More from the linter
* goimports -w ./pkg/
* Disable gocritic
* Add/modify linter exceptions
* lint + flatten nested list
Go 1.19 doesn't support nested lists, and there wasn't an obvious workaround.
https://go.dev/doc/comment#lists
2022-09-12 12:03:49 +02: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
Andreas Gerstmayr
040cc5021c
Prometheus: Fix integer overflow in rate interval calculation on 32-bit architectures ( #51508 )
2022-06-30 11:06:47 +02:00
Andrej Ocenas
2372501368
Prometheus: Remove middleware for custom headers ( #51518 )
2022-06-29 11:04:57 +02:00
Dan Keder
9595fd6b66
Prometheus: Support 1ms resolution intervals ( #44707 )
...
* Prometheus: Support 1ms resolution in time ranges
* UI: Support 1ms resolution in time ranges
2022-06-29 07:39:50 +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
Kyle Brandt
01ef899753
SSE/Alerting: Support prom instant vector responses ( #44865 )
...
* SSE/Alerting: (Draft) Support prom instant vector responses
fixes #35663
* reduce\classic expressions to handle mathexp.Number
* use Notice for warning
Co-authored-by: Yuriy Tseretyan <yuriy.tseretyan@grafana.com>
2022-05-23 10:08:14 -04: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
87e8521591
Prometheus: Implement Streaming JSON Parser ( #48477 )
...
use `prometheusStreamingJSONParser` feature toggle to enable
2022-05-13 20:28:54 +02:00
Todd Treece
e1a9ce4cc4
Prometheus: Move existing query logic to new buffered package ( #48668 )
2022-05-12 05:34:09 -04:00