grafana/pkg/expr
Kevin Yu 760b9176fc
[release-11.6.1] Prometheus: Add support for cloud partners Prometheus data sources (#103941)
Prometheus: Add support for cloud partners Prometheus data sources (#103482)

* wip

* Add prom flavor support for data source variables and export/import dashboards (#103321)

* add dashboard and data source var selection

* use match plugin id instead

* use updated matchpluginid

* formatting

* cleanup

* regex anchor

* update error msg

* Alerting: Clean up prometheus-flavored types and functions (#103703)

* clean up types and utility functions for dealing with
prometheus-flavored data sources

* Refactor alerting datasource types to use constants as source of truth

* Alerting: Clean up prometheus-flavored types and functions on the bac… (#103716)

Alerting: Clean up prometheus-flavored types and functions on the backend

* add matchPluginId tests

* Update matchPluginId func to bidirectional (#103746)

* update matchpluginid func to bidirectional

* lint

* formatting

* use actual isSupportedExternalRulesSourceType in test

* add tests in datasource_srv

* betterer

* remove type assertion

* remove unnecessary case

* use satisifies to not have to convert tuple to an array of string

* add prometheus_flavor test

---------

Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
Co-authored-by: Alexander Akhmetov <me@alx.cx>
(cherry picked from commit fd6fd91115)
2025-04-14 09:47:16 -07:00
..
classic Hackaton: Add more unit tests, take 3 (#101525) 2025-03-05 08:00:12 +01:00
mathexp SQL Expressions: Re-implement feature using go-mysql-server (#99521) 2025-02-06 07:27:28 -05:00
ml Alerting: Log expression command types during evaluation (#84614) 2024-03-19 10:00:03 -04:00
sql SQL Expressions: Improve response to frame conversion handling (#100625) 2025-02-14 17:21:08 +02:00
commands.go Alerting: Log expression command types during evaluation (#84614) 2024-03-19 10:00:03 -04:00
commands_test.go Expressions: Add model struct for the query types (not map[string]any) (#82745) 2024-02-17 02:59:11 +02:00
convert_to_long.go SQL Expressions: Re-implement feature using go-mysql-server (#99521) 2025-02-06 07:27:28 -05:00
convert_to_long_test.go SQL Expressions: Re-implement feature using go-mysql-server (#99521) 2025-02-06 07:27:28 -05:00
converter.go [release-11.6.1] Prometheus: Add support for cloud partners Prometheus data sources (#103941) 2025-04-14 09:47:16 -07:00
converter_test.go SQL Expressions: Re-implement feature using go-mysql-server (#99521) 2025-02-06 07:27:28 -05:00
dataplane.go Expressions: sort numeric metrics behind feature toggle (#85911) 2024-04-16 10:52:47 -04:00
dataplane_test.go Expressions: sort numeric metrics behind feature toggle (#85911) 2024-04-16 10:52:47 -04:00
errors.go Chore: Move identity and errutil to apimachinery module (#89116) 2024-06-13 07:11:35 +03:00
errors_test.go Chore: Move identity and errutil to apimachinery module (#89116) 2024-06-13 07:11:35 +03:00
graph.go SQL Expressions: Re-implement feature using go-mysql-server (#99521) 2025-02-06 07:27:28 -05:00
graph_test.go Expressions: Add model struct for the query types (not map[string]any) (#82745) 2024-02-17 02:59:11 +02:00
hysteresis.go Chore: Bump Go to 1.23.0 (#92105) 2024-08-21 11:40:42 -04:00
hysteresis_test.go SSE: Threshold expression to use simple functions (#86062) 2024-04-16 13:35:41 -04:00
metrics.go
ml.go SQL Expressions: Re-implement feature using go-mysql-server (#99521) 2025-02-06 07:27:28 -05:00
ml_test.go
nodes.go SQL Expressions: Re-implement feature using go-mysql-server (#99521) 2025-02-06 07:27:28 -05:00
nodes_test.go Dynatrace: Add to list of DS with custom label logic (#90258) 2024-07-15 10:18:54 +02:00
query.go expr: add explicit strict-mode const (#94838) 2024-10-18 10:46:27 +02:00
query.panel.example.json Expressions: Create json schema for query types (#84032) 2024-03-26 06:58:56 +02:00
query.panel.schema.json Alerting: Add multiple threshold operators (#99516) 2025-02-21 19:11:16 +02:00
query.request.example.json Expressions: Create json schema for query types (#84032) 2024-03-26 06:58:56 +02:00
query.request.schema.json Alerting: Add multiple threshold operators (#99516) 2025-02-21 19:11:16 +02:00
query.types.json Alerting: Add multiple threshold operators (#99516) 2025-02-21 19:11:16 +02:00
query_test.go Expressions: Create json schema for query types (#84032) 2024-03-26 06:58:56 +02:00
reader.go ServerSideExpressions: Disable SQL Expressions to prevent RCE and LFI vulnerability (#94942) 2024-10-18 11:28:26 +01:00
reader_test.go expr: improved test (#94837) 2024-10-18 10:31:58 +02:00
service.go SQL Expressions: Re-implement feature using go-mysql-server (#99521) 2025-02-06 07:27:28 -05:00
service_sql_test.go SQL Expressions: Simplify test code (#101718) 2025-03-06 17:02:31 +00:00
service_test.go SQL Expressions: Re-implement feature using go-mysql-server (#99521) 2025-02-06 07:27:28 -05:00
sql_command.go SQL Expressions: Include SQL Parser/Syntax error in the public message (#100725) 2025-02-14 09:09:21 -05:00
sql_command_test.go [sql expressions] fix: use ast to read tables (#87867) 2024-05-14 17:05:29 -04:00
testing.go Requester: Remove duplicated function (#97038) 2024-11-26 15:29:31 +01:00
threshold.go Alerting: Add multiple threshold operators (#99516) 2025-02-21 19:11:16 +02:00
threshold_bench_test.go SSE: Threshold expression to use simple functions (#86062) 2024-04-16 13:35:41 -04:00
threshold_test.go Alerting: Add multiple threshold operators (#99516) 2025-02-21 19:11:16 +02:00
transform.go Chore: Move identity and errutil to apimachinery module (#89116) 2024-06-13 07:11:35 +03:00