Owen Williams
7b347fd12a
Prometheus: Add $__rate_interval_ms to go along with $__interval_ms ( #69582 )
...
* Add $__rate_interval_ms to go along with $__interval_ms
Fixes https://github.com/grafana/grafana/issues/69581
* update doc
* PoC add rate_interval_ms as rate range in prometheus
* Revert "PoC add rate_interval_ms as rate range in prometheus"
This reverts commit 7d4ec700d7
.
* Update docs/sources/dashboards/variables/add-template-variables/index.md
grammar nit
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
* Update docs/sources/dashboards/variables/add-template-variables/index.md
---------
Co-authored-by: Galen <galen.kistler@grafana.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2023-08-27 16:44:58 +02:00
Brendan O'Handley
d4a22cff0a
Prometheus: Fix regression for $__rate_interval comparison ( #67460 )
...
* fix , comparison regression
* intervalMs was not pressent before the regression and this value changes the adjusted interval calculating giving a false positive in favor of the regression
2023-04-28 08:40:17 -04:00
Arve Knudsen
f7ee42d871
Prometheus: Reduce memory allocations in QueryData.processExemplars ( #63373 )
...
* tsdb/prometheus/querydata: Reduce memory allocations in QueryData.processExemplars
---------
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2023-03-22 10:59:39 +01:00
ismail simsek
68b588b912
Prometheus schematization ( #63878 )
...
* Schematize prometheus
* revert changes
* close response body
* Update report.json
* Update pkg/tsdb/prometheus/models/query.go
Co-authored-by: sam boyer <sdboyer@grafana.com>
* Use without pointers
* remove unused
* Specify query format
* Rename
* Clean up schema
* Update public/app/plugins/datasource/prometheus/dataquery.cue
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
* Update pkg/tsdb/prometheus/models/query.go
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
* Clean up tests
* Update public/app/plugins/datasource/prometheus/dataquery.cue
Co-authored-by: sam boyer <sdboyer@grafana.com>
* make gen-cue
* Add comments
* Make linter happy
* Remove editormode override
* Update
---------
Co-authored-by: sam boyer <sdboyer@grafana.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-03-09 11:26:15 +01:00
Serge Zaitsev
f8ec35e643
Chore: Fix goimports grouping ( #62427 )
...
* fix goimports order
* fix goimports order
2023-01-30 09:38:51 +01:00
Todd Treece
73d5aa4878
Prometheus: Refactor exemplar sampler ( #60278 )
2022-12-30 13:04:35 -05:00
Todd Treece
152c7f149a
Prometheus: Add Exemplar sampling for streaming parser ( #56049 )
2022-10-04 08:40:01 -04:00
Andreas Gerstmayr
2c622b912a
Prometheus: Fix integer overflow in rate interval calculation ( #52051 )
...
Affecting only 32-bit architectures.
2022-09-13 12:51:26 +02: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
Todd Treece
87e8521591
Prometheus: Implement Streaming JSON Parser ( #48477 )
...
use `prometheusStreamingJSONParser` feature toggle to enable
2022-05-13 20:28:54 +02:00