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
Andres Martinez Gotor
a31d96d20a
Prometheus: Promote Azure auth flag to configuration ( #53447 )
2022-08-11 16:12:57 +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
Andrej Ocenas
3df34fe064
Prometheus: Remove cache, pass headers in request, simplify client creation for resource calls and custom client ( #51436 )
...
* Remove cache, pass headers in request, simplify client creation
* Add test for http options creation
2022-07-04 11:18:45 +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
Serge Zaitsev
ae9491c3a7
Chore: Make test tracer noop and return no errors ( #50797 )
2022-06-15 12:40:41 +02:00
Sergey Kostrukov
2d3cc26aa8
Prometheus: Remove Azure code from datasource service ( #50737 )
...
Ref #35857
2022-06-14 10:47:06 +02:00
Todd Treece
64d93498de
Chore: Update grafana-plugin-sdk-go to v0.136.0 ( #50127 )
2022-06-03 08:25:52 -04: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
Sergey Kostrukov
2b83cf4618
Prometheus: Predefined scopes for Azure authentication ( #49557 )
...
* Predefined scopes for Azure Prometheus
* Allow override of audience
2022-05-30 17:43:32 +02:00
Todd Treece
33d4850c90
Prometheus: Fix sort issue in wide frames ( #49660 )
2022-05-25 23:32:55 -04: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
6cbaa18cf6
Prometheus: Add golden JSON tests ( #48941 )
2022-05-12 17:09:58 +02:00
Todd Treece
e1a9ce4cc4
Prometheus: Move existing query logic to new buffered package ( #48668 )
2022-05-12 05:34:09 -04:00