Commit Graph

8679 Commits

Author SHA1 Message Date
Domas
239bda207e
SparklineCell: Display absolute value (#76125) 2023-10-13 11:00:42 +03:00
Adela Almasan
d5945bc26e
Canvas: Button API Editor visual feedback on response (#76499) 2023-10-13 08:11:08 +03:00
Nathan Marrs
18128c2666
chore: geomap cleanup betterer styles object notation edition (#76400) 2023-10-12 18:41:27 -07:00
Alyssa Bull
0a6d78f35e
AzureMonitor: Azure Monitor Cheat sheet (#75931) 2023-10-12 14:42:01 -06:00
ismail simsek
efec1d976a
Chore: Remove redundant code and update types (#76489)
Remove redundant code and update types
2023-10-12 15:04:16 -04:00
ismail simsek
be7fe761a3
Fix Influxdb language order in config page (#76488)
Fix wrong language display
2023-10-12 21:16:31 +03:00
Shabeeb Khalid
2442532f57
chore(76107): Remove legacy form from InfluxConfigEditor (#76382)
Remove legacy form from InfluxConfigEditor

With this commit, legacy form components are remvoed from influxdb
config eidtor page. Form is now using FieldSet instead.
2023-10-12 20:03:21 +02:00
Aldrin
cb1dfbeeb4
Chore: remove legacy components and CSS classes for OpenTsdbDetails Component (#76165)
* chore: remove legacy components and classes

* Update public/app/plugins/datasource/opentsdb/components/OpenTsdbDetails.tsx

Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>

* chore: format and add width

* chore: fix formatting

* Update public/app/plugins/datasource/opentsdb/components/OpenTsdbDetails.tsx

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>

---------

Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2023-10-12 19:36:22 +02:00
Brendan O'Handley
c21e2bee1d
Prometheus: Variable query, allow for label values query type with label, label filters and no metric (#76472)
allow for label values query type with label, label filters and no metric
2023-10-12 20:03:33 +03:00
Brendan O'Handley
67e3e576d0
Prometheus: Fix config bug for sigv4 auth (#76390)
fix config bug for selecting sigv4
2023-10-12 12:46:49 -04:00
Andrej Ocenas
9d8be05cce
Test data source: Add random node radius for nodegraph (#75381) 2023-10-12 18:33:18 +02:00
Domas
87ff5b66ea
TraceView/TracesPanel: Allow providing custom span link creator function (#76332)
allow overriding span link creator for TraceView and TracesPanel
2023-10-12 13:48:22 +03:00
Fabrizio
9bb3d64b1e
Minor fixes for TraceQL query editor (#76344) 2023-10-12 10:19:01 +02:00
Drew Slobodnjak
046e9b7672
Canvas: Button API - Block Calls to Grafana (#76309)
* Canvas: Button API - Block Calls to Grafana

* Move origin check inside of api logic

* Change grafana url source from href to origin

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-10-11 09:21:02 -07:00
Torkel Ödegaard
bf7fae4bd3
Tempo: Fix type errors that appeared when removing the "any" type from DataQueryResponseData (#75600)
* Tempo: Improving typing of data types

* last fix

* Fix
2023-10-11 18:04:54 +02:00
Torkel Ödegaard
72a1de855c
Schema: Clean up / correct panel schema (#76346)
* Schema: Clean up / correct panel schema

* fixes
2023-10-11 15:56:42 +02:00
ismail simsek
14d01e2b6e
Prometheus: Remove prometheusResourceBrowserCache feature toggle (#76172)
* Remove prometheusResourceBrowserCache feature toggle

* Remove prometheusResourceBrowserCache feature toggle from prometheus datasource

* Update tests
2023-10-11 15:18:56 +02:00
ismail simsek
bd23757a42
Chore: Reorder InfluxDB languages in combobox (#76352)
Reorder the languages in combobox
2023-10-11 15:16:21 +02:00
renovate[bot]
0ec15de905
Update dependency @types/node to v18.18.4 (#76336)
* Update dependency @types/node to v18.18.4

* fix types

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-10-11 11:08:41 +00:00
ismail simsek
9035a498ca
Chore: Export closestIdx function from @grafana/data (#76176)
* export calculateFieldDisplayName function

* export closestIdx function

* Use getFieldDisplayName
2023-10-11 11:44:36 +02:00
Joey
9101eb219c
Tempo: Improve UX of service graph related warnings (#76134)
Improve UX of service graph related warnings
2023-10-11 09:43:05 +01:00
Gábor Farkas
dc8b07d46f
postgres/mysql: improved imports in unit tests (#75980)
* postgres/mysql: improved imports in unit tests

* simpler mock approach
2023-10-11 10:38:38 +02:00
Drew Slobodnjak
5604305271
BarChart: Gradient Mode for Auto Max (#74122)
* BarChart: Gradient Mode for Auto Max

* add gdev panel

* clean

---------

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2023-10-10 11:14:56 -07:00
Domas
b75b747881
Tempo data source: Fix service map query error when a duration data frame has no data (#76269)
* fix tempo service graph req when data frame is empty

* also report error to Faro
2023-10-10 17:57:05 +03:00
Andre Pereira
1f9bd7466d
Tempo: Multi-line support for error markers in TraceQL editor (#75904)
* Don't show error when editor is empty

* Added multi-line support for error markers

* Fixed bug where new lines weren't being counted as characters

* Take startLine and endLine into account in column calculations

* Fix
2023-10-10 13:53:43 +01:00
Jo
28c0fb1cfd
AccessControl: Remove legacy frontend AC checks (#76187)
* remove legacy ac checks

* fix RBAC disabled tests

* add permissions for tests to work

* fix unifiedalertstatesworker test
2023-10-09 18:10:06 +02:00
Ivana Huckova
e587d4e879
Loki: Change run query button text based on number of queries (#76196)
Loki: Change run query button name based on number of queries
2023-10-09 17:14:34 +02:00
Andre Pereira
8bf914ac0b
Tempo: Fix service graph menu item links (#75748)
* Only call preventDefault if it exists

* Change "View Traces" link to use traceQLSearch instead of the deprecated nativeSearch

* Thank you again test. Update tests

* Update test

* Update betterer

* Type fix

* Small type change

* Update betterer
2023-10-09 14:22:39 +01:00
Ivana Huckova
4be6a8df78
Loki: Add documentation for app plugin developers and in code docs (#76067)
* Add documentation for app plugin developers and in code docs

* Fix incorrect import

* Rename and move

* Update public/app/plugins/datasource/loki/APP_PLUGIN_DOCUMENTATION.md

Co-authored-by: Matias Chomicki <matyax@gmail.com>

* Update public/app/plugins/datasource/loki/APP_PLUGIN_DOCUMENTATION.md

Co-authored-by: Matias Chomicki <matyax@gmail.com>

* Update public/app/plugins/datasource/loki/APP_PLUGIN_DOCUMENTATION.md

Co-authored-by: Matias Chomicki <matyax@gmail.com>

* Update public/app/plugins/datasource/loki/APP_PLUGIN_DOCUMENTATION.md

Co-authored-by: Matias Chomicki <matyax@gmail.com>

* Update public/app/plugins/datasource/loki/APP_PLUGIN_DOCUMENTATION.md

Co-authored-by: Matias Chomicki <matyax@gmail.com>

* Update public/app/plugins/datasource/loki/APP_PLUGIN_DOCUMENTATION.md

Co-authored-by: Matias Chomicki <matyax@gmail.com>

* Update public/app/plugins/datasource/loki/APP_PLUGIN_DOCUMENTATION.md

Co-authored-by: Matias Chomicki <matyax@gmail.com>

* Update public/app/plugins/datasource/loki/LanguageProvider.ts

Co-authored-by: Matias Chomicki <matyax@gmail.com>

* Fix spelling

* Replace APIs with methods

* Add note for improved instrumentation

---------

Co-authored-by: Matias Chomicki <matyax@gmail.com>
2023-10-09 14:24:53 +02:00
Matias Chomicki
5e37a27d1f
Loki Autocomplete: Add more context to comments about situations and completions (#76144)
* Loki completion: add more context to comments

* Improve grammar of comment

* Completions: expand on parser-offering part

* Update public/app/plugins/datasource/loki/components/monaco-query-field/monaco-completion-provider/completions.ts

* Formatting
2023-10-09 13:15:12 +02:00
NikolayTsvetkov
ce462e8cd7
Elasticsearch: Added support for calendar_interval in ES date histogram queries (#75459)
* Introduce support for calendar intervals in ES date histogram queries

* Add missing undef type check for ES calendar interval query support
2023-10-09 12:37:38 +02:00
Josh Hunt
07266aa983
Rewrite old useStyles2 pattern to use new pattern (#76136)
* Rewrite old useStyles2 pattern to use new pattern

* fix lint from used imports
2023-10-09 10:49:08 +01:00
Torkel Ödegaard
fc0933d5f4
Schema: Clean up dashboard variables schema (#76121)
* Cleanup variable schema model

* minor fix

* remove type ignores that are no longer type errors
2023-10-09 09:10:52 +02:00
Matias Chomicki
16d77dda67
Loki Query Autocomplete: better suggestions and insertions for Logfmt (#75561)
* Logfmt autocompletion: better handling of trailing commas

* Situation: refactor getSituation and  getErrorNode

Looking for simplicity, removing redundancy, and looking for a more accurate node resolution

* Autocompletion: refactor logfmt and top level

* Update tests

* Autocompletion: better handling of trailing characters

* Completions: Update data to type changes

* Update log query in test situation

* Format code

* Autocomplete: support offering partial labels

* Completion: expand test cases
2023-10-06 12:23:48 -05:00
Fabrizio
b2ba28ab40
Dashboards: Add template variables to selectable options (#75870) 2023-10-06 16:32:30 +02:00
Ashley Harrison
171e2c1adb
Chore: Improve typings and ignore Graph (#75742)
* fix some types, ignore graph plugin as it'll be gone soon

* update comments

* more more more

* undo renderer change

* use Partial in the editor
2023-10-06 11:48:15 +01:00
Nathan Marrs
bd5d67ed28
Canvas: Add ability to customize what standard element editors show up for all element types (#75935)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2023-10-05 12:58:35 -07:00
Nathan Marrs
b94d06bfa7
Bar Gauge: Add field name placement option (#75932)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2023-10-05 09:31:03 -07:00
Drew Slobodnjak
03baf210b3
Geomap: Add Symbol Alignment Options (#74293)
* Geomap: Add Symbol Anchor Options

* Update displacement for svg case

* For square and x, account for 45 degree offset

* Simplify displacement function

* Remove unused todo

* Update test defaults to include anchor

* Add missing anchor default to tests

* Move displacement function into utils and add test

* Simplify anchor position options UX

* Change verbage to alignment and swap direction

* Include missing alignment rename

* Update tests

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-10-05 09:01:56 -07:00
Gábor Farkas
eea95c2ddf
postgres/mysql: removed from-grafana-core import (#75826) 2023-10-05 07:46:24 +02:00
Gábor Farkas
cbfd1d53ee
mysql: config: fixed import and removed unused code (#75883)
* mysql: removed obsolete import

* removed unnecessary check
2023-10-05 07:46:05 +02:00
ismail simsek
a12788a4e7
InfluxDB: Interpolate variables based on their type (#75653)
* Rename the mock function

* Move tests

* Refactor existing tests

* add influxql_metadata_query tests

* move to root

* remove unnecessary file

* adhoc test

* Remove unused parameter

* tests for future

* fix mocks

* betterer

* interpolate variables based on their types

* prettier
2023-10-04 17:02:46 +02:00
ismail simsek
2d603bed22
InfluxDB SQL: Add time filter automatically (#75953)
* Use double quotes instead of backticks

* render time field as datetime

* add @react-awesome-query-builder/core

* Add time range filtering

* Update test

* Update macro test
2023-10-04 17:00:24 +02:00
Oscar Kilhed
40cdb30336
Transformations: Add support for dashboard variable in limit, sort by, filter by value, heatmap and histogram (#75372)
* variables for filterforvalue

* use datalinkinput for basic matcher

* fix user select issue

* heatmap transformation variable interpolation

* clean code

* interpolate sort by

* add options interpolation in histogram transformation

* interpolation for limit

* Add suggestions UI to Filter by data value Transformation

Co-authored-by: oscarkilhed <oscar.kilhed@grafana.com>

* add validation for number/variable fields

* Add variables to add field from calculation

* Add validator to limit transformation

* Refactor validator

* Refactor suggestionInput styles

* Add variable support in heatmap calculate options to be in sync with tranform

* Refactor SuggestionsInput

* Fix histogram, limit and filter by value matchers

* clean up weird state ref

* Only interpolate when the feature toggle is set

* Add feature toggle to ui

* Fix number of variable test

* Fix issue with characters typed after opening suggestions still remains after selecting a suggestion

* Clean up from review

* Add more tests for numberOrVariableValidator

---------

Co-authored-by: Victor Marin <victor.marin@grafana.com>
2023-10-04 17:28:46 +03:00
Andrew Hackmann
3ea6d1f7cc
AzureMonitor: Remove dependencies on Grafana frontend (#75595)
* remove local graf templateSrv and use @grafana/runtime

* tests broken still 0.0

* wip

* moving around tests and fixing

* template var test using mocking and stuff

* AM ds tests fixed

* fix filter tests

* all tests work

* remove comment

* Update azure_log_analytics_datasource.ts

* remove deferred util - not used

* mock instead of spying

* not calling getTemplateSrv each time

* pass range down to filter instead of doing werid stuff

* use default time range if no time range

* prettierer

* remove note
2023-10-04 09:25:05 -05:00
ismail simsek
c64e73540d
InfluxDB SQL: Use double quotes instead of backticks (#75443)
Use double quotes instead of backticks
2023-10-04 15:47:54 +02:00
Andreas Christou
d00ea685e6
CloudMonitoring: Use Field instead of InlineField (#75829)
* Use Field instead of InlineField

* Prettify
2023-10-04 15:45:26 +02:00
Andreas Christou
3ef3dee751
AzureMonitor: Use Field instead of InlineField (#75837)
Use Field instead of InlineField

- Update labels
2023-10-04 15:44:59 +02:00
harshabaddam
65fa94b16b
Loki: Support X-ray as internal link in derived fields (#75756)
Update Loki datasource to support X-ray as internal link in derived fields
2023-10-04 07:59:46 -05:00
Torkel Ödegaard
963049e2b7
Loki: Fixes chained template variable queries for scene apps (#75880)
* Loki: Fixes chained template variable queries for scene apps

* Remove bit
2023-10-04 12:47:25 +02:00