Giordano Ricci
4429f2cf58
Elasticsearch: Fix query initialization logic & query transformation from Promethous/Loki ( #31322 )
...
* Elasticsearch: Fix query initialization logic
* Only import prometheus & loki queries as log queries
2021-02-23 21:58:07 +00:00
ying-jeanne
c57047a420
Postgres: allow providing TLS/SSL certificates as text in addition to file paths ( #30353 )
...
* postgres SSL certification
* add back the UI to configure SSL Authentication files by file path
* add backend logic
* correct unittest
* mini changes
* Update public/app/plugins/datasource/postgres/config_ctrl.ts
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* mutex
* check file exist before remove
* change permission
* change default configuremethod to file-path
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* Update public/app/plugins/datasource/postgres/partials/config.html
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* rename sslconfiguremethod to sslconfigurationmethod
* frontend update
* solve comments
* Postgres: Convert tests to stdlib
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Postgres: Be consistent about TLS/SSL terminology
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* fix init inconsistancy
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* naming convention
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Undo change
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix TLS issue
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* change permissions
* Fix data source field names
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Clean up HTML
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve popover text
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix SSL input bug
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Undo unnecessary change
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Clean up backend code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix build
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* More consistent naming
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Clean up code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Enforce certificate file permissions
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* add settings
* Undo changes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* fix windows file path
* PostgresDataSource: Fix mutex usage
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Update pkg/tsdb/postgres/postgres.go
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* Apply suggestions from code review
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* fix compilation
* fix unittest
* Apply suggestions from code review
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* Apply suggestions from code review
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* mock function
* change kmutex package
* add kmutex into middleware
* lock connection file per datasource
* add unittest regarding concurrency
* version should be equal
* adding unittest
* fix the loop
* fix unitest
* fix postgres unittst
* remove comments
* move dataPath from arg to tlsManager struct field
* Use DecryptedValues method
Use cached decrypted values instead of
using secure json data decrypt which will
decrypt unchanged values over and over again.
* remove unneeded mutex in tests and cleanup tests
* fix the lint
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2021-02-23 22:10:55 +01:00
Zoltán Bedi
2c62425be7
TraceViewer: Fix trace to logs icon to show in right pane ( #31414 )
2021-02-23 19:44:31 +01:00
Ivana Huckova
dce67db6ba
Prometheus: Use configured HTTP method for /series and /labels endpoints ( #31401 )
...
* Run post-friendly request with set method first
* Improve messaging, retry only when post and specific status code
* Add comments
* Fix backend
* Update public/app/plugins/datasource/prometheus/datasource.ts
2021-02-23 16:31:03 +01:00
Rubycut
833446645a
Add eu-south-1 cloudwatch region, closes #31197 ( #31198 )
2021-02-23 10:42:54 +01:00
Zoltán Bedi
67c215f5f1
Chore: Upgrade eslint packages ( #31408 )
2021-02-23 10:02:07 +01:00
Ivana Huckova
4ca3dccb6d
Prometheus: Change default httpMethod for new instances to POST ( #31292 )
...
* Implement POST to specific endpoints and change POST as default
* Add tests for PromSettings
* Add tests to dataosurce.ts for new functionality
* Remove /label /series implementation
* Update public/app/plugins/datasource/prometheus/configuration/PromSettings.tsx
2021-02-22 17:35:15 +01:00
Alex Khomenko
6db4b40d5b
Data source list: Use Card component ( #31326 )
...
* Replace DataSourcesListItem with Card
* Add tests
* Remove unused styles
* Make card heading semi bold
* Make heading semi-bold
* Show type name instead of type id
* Fix key warning
* Update Card
* Fix tests
* Make typeName optional
* remove styling that was just a test
* Make typeName non-optional and fix tests
* Update list key
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2021-02-22 14:02:10 +02:00
Hugo Häggmark
6f3088ae85
AdHocVariables: Fixes crash when values are stored as numbers ( #31382 )
2021-02-22 10:35:36 +01:00
Torkel Ödegaard
372ae7fdd3
Chore: Fix strict errors, down to 416 ( #31365 )
2021-02-22 10:06:07 +01:00
Torkel Ödegaard
3e55c967ee
Theming: Support for runtime theme switching and hooks for custom themes ( #31301 )
...
* WIP Custom themes
* Load custom themes from URL and via event
* Dynamic page background
* Header color change
* Fixing tests and emotion warnings
* Fixed test
* moving cx to getStyles
* Review fixes
* minor change
2021-02-20 09:02:06 +01:00
Zoltán Bedi
114c426f34
Zipkin: Show success on test data source ( #30829 )
...
* Zipkin: Show success on test data source
Add zipkin example app to devenv
Migrate to fetch api in data source
* Add back return types for functions
2021-02-19 15:38:16 +01:00
Dominik Prokop
0d6e5298b7
DatasourceSrv: Fix instance retrieval when datasource variable value set to "default" ( #31347 )
...
* Failing tests
* Fixed
2021-02-19 12:31:28 +01:00
Gábor Farkas
7ccba047c6
QueryEditor: handle query.hide changes in angular based query-editors ( #31336 )
...
* handle query.hide changes in angular query-editors
* better comment
2021-02-19 09:49:59 +01:00
Torkel Ödegaard
2b7628c69e
DashboardLinks: Fixes another issue where dashboard links cause full page reload ( #31334 )
2021-02-19 08:26:22 +01:00
Hugo Häggmark
3c1f27b0e6
Chore: reduce strict errors for variables ( #31241 )
...
* Chore: reduces a lot of variable errors
* Chore: reduces variable Editor errors
* Chore: reduces variable Picker errors
* Chore: reduce error count
* Chore: reduces errors for ChangeEvent instead of FormEvent
* Chore: reduces errors with CombinedState
* Chore: reduces ComponentType errors
* Chore: reduce errors in reducers
* Chore: reduces misc errors
* Chore: reduce AdhocPicker errors
* Chore: reduce error limit
* Update public/app/features/variables/adhoc/picker/AdHocFilterValue.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Chore: updates after PR comments
* Chore: small refactor
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2021-02-18 06:21:35 +01:00
kay delaney
bbf12088d6
Introduce functions for interacting with library panels API ( #30993 )
2021-02-17 13:40:10 +00:00
Alex Khomenko
c21e45e428
Search: display sort metadata ( #31167 )
...
* Search: display metadata
* Search: update SortPicker icon
* Search: display folder meta data
* Search: reset sort picker on layout change
* Search: align tags in Card component
* Search: replace hyphen with dash
* Search: preserve sort state on layout change
* Search: update tests
* Search: fix tests
* Update pkg/services/search/hits.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update public/app/features/search/components/SearchItem.tsx
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update public/app/features/search/components/SearchItem.tsx
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Update public/app/features/search/types.ts
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
* Search: fix type error
* Search: add General folder name and adjust icon margin
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
2021-02-17 14:06:19 +02:00
Torkel Ödegaard
c0015034a3
Folders: Editors should be able to edit name and delete folders ( #31242 )
...
* Folders: Editors should be able to edit name and delete folders
* Fixed so that we only build nav model in one place
2021-02-17 12:40:28 +01:00
Marcus Efraimsson
8f20b13f1c
Snapshots: Disallow anonymous user to create snapshots ( #31263 )
2021-02-17 09:51:50 +01:00
Josh Hunt
85e186cf10
Grafana-UI: Add id to Select to make it easier to test ( #31230 )
...
* Prettier formatting
* Grafana-UI: Add support for id and inputId props to Select
* Grafana-UI: Add aria-label to Select
* Grafana-UI: InlineField and Field get ID from inputId prop
For Select
* Fix tests using TagFilter
* Update Select prop documentation
* Update Field tests to use screen instead
* Fix the last few tests
2021-02-16 16:19:55 +00:00
Ivana Huckova
4f61edd28d
Prometheus: Fix enabling of disabled queries when editing in dashboard ( #31055 )
...
* Fix disable bug by passing hide prop
* Make more universal fix
* Revert to original fix
* Update public/app/plugins/datasource/prometheus/components/PromQueryEditor.tsx
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2021-02-16 16:23:26 +01:00
Ivana Huckova
350dcb999a
Loki: Add line limit for annotations ( #31183 )
...
* Add line limit to Annotation query editor
* Refactor to keep type consistent
2021-02-16 13:27:17 +01:00
Torkel Ödegaard
e4672906f0
SqlDataSources: Fixes the Show Generated SQL button in query editors ( #31236 )
...
* SqlDataSources: Fixes the Show Generated SQL button in query editors
* No need to protect against duplicate events now that the event emitter is isolated for each editor
2021-02-16 13:10:40 +01:00
dupondje
884a99e375
Disable Change Password for OAuth users ( #27886 )
2021-02-16 10:20:41 +01:00
Torkel Ödegaard
4dfce12a81
TagsInput: Design update and component refactor ( #31163 )
...
* TagsInput: Design update and component refactor
* Update packages/grafana-ui/src/components/TagsInput/TagsInput.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Update packages/grafana-ui/src/components/TagsInput/TagsInput.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Update packages/grafana-ui/src/components/TagsInput/TagsInput.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Update packages/grafana-ui/src/components/TagsInput/TagsInput.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Updated
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2021-02-16 09:39:11 +01:00
Hugo Häggmark
f993f2c7cc
Variables: Adds back default option for data source variable ( #31208 )
...
* Variables: Adds back default option for data source variable
* Chore: updates after PR comments
2021-02-16 06:51:34 +01:00
Dominik Prokop
9c08b34e71
GraphNG: refactor core to class component ( #30941 )
...
* First attempt
* Get rid of time range as config invalidation dependency
* GraphNG class refactor
* Get rid of DataFrame dependency from Plot component, get rid of usePlotData context, rely on XYMatchers for data inspection from within plugins
* Bring back legend
* Fix Sparkline
* Fix Sparkline
* Sparkline update
* Explore update
* fix
* BarChart refactor to class
* Tweaks
* TS fix
* Fix tests
* Tests
* Update packages/grafana-ui/src/components/uPlot/utils.ts
* Update public/app/plugins/panel/timeseries/plugins/ContextMenuPlugin.tsx
* GraphNG: unified legend for BarChart, GraphNG & other uPlot based visualizations (#31175 )
* Legend experiment
* Nits
2021-02-15 16:46:29 +01:00
Tania B
f9a293afea
Remove last synchronisation field from LDAP debug view ( #30984 )
...
* Remove last synchronisation field from LDAP debug view
* Apply review comments
2021-02-15 17:11:17 +02:00
Torkel Ödegaard
205dc0a2f6
Graph: Make axes unit option work even when field option unit is set ( #31205 )
...
* Graph: Make axes unit option work even when field option unit is set
* Updated tests
2021-02-15 13:57:18 +01:00
Peter Holmberg
12dcba5d0b
AlertingNG: Test definition ( #30886 )
...
* break out new and edit
* changed model to match new model in backend
* AlertingNG: API modifications (#30683 )
* Fix API consistency
* Change eval alert definition to POST request
* Fix eval endpoint to accept custom now parameter
* Change JSON input property for create/update endpoints
* model adjustments
* set mixed datasource, fix put url
* update snapshots
* run test response through converters
* remove edit and add landing page
* remove snapshot tests ans snapshots
* wrap linkbutton in array
* different approaches to massage data
* get instead of post
* use function to return instances data
* hook up test button in view
* test endpoint for not saved definitions
* function that return query options
* Chore: fixes strict error
* hide ng alert button
* typings
* fix setAlertDef error
* better message when you have queries but no data
* NGAlert: Refactoring that handles cleaning up state (#31087 )
* Chore: some refactorings of state
* Chore: reduces strict null errors
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
Co-authored-by: Sofia Papagiannaki <sofia@grafana.com>
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
2021-02-15 13:56:59 +01:00
Torkel Ödegaard
50faeb3078
DataSourceSrv: Filter out non queryable data sources by default ( #31144 )
2021-02-15 11:27:16 +01:00
Torkel Ödegaard
0c3c17592e
QueryEditors: Fixes issue that happens after moving queries then editing would update other queries ( #31193 )
2021-02-15 11:24:03 +01:00
Sofia Papagiannaki
dde11215e9
Alerting: Fix modal text for deleting obsolete notifier ( #31171 )
2021-02-15 10:31:08 +02:00
Hugo Häggmark
39993a6884
Variables: Fixes missing empty elements from regex filters ( #31156 )
...
* Variables: Fixes missing empty elements from regex filters
* Chore: cleanup comment
* Chore: removes unused import
2021-02-15 06:04:08 +01:00
Torkel Ödegaard
b3c32277dd
StatPanels: Fixes to palette color scheme is not cleared when loading panel ( #31126 )
2021-02-13 11:35:39 +01:00
Andrej Ocenas
b0bd242eda
Explore/Refactor: Simplify URL handling ( #29173 )
...
* Inline datasource actions into initialisation
* Simplify url handling
* Add comments
* Remove split property from state and split Explore.tsx to 2 components
* Add comments
* Simplify and fix splitOpen and splitClose actions
* Update public/app/features/explore/ExplorePaneContainer.tsx
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com>
* Update public/app/features/explore/state/explorePane.test.ts
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com>
* Update public/app/features/explore/Wrapper.tsx
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
* Fix test
* Fix lint
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com>
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2021-02-12 21:33:26 +01:00
Torkel Ödegaard
9629dded42
DashboardLinks: Fixes links always cause full page reload ( #31178 )
2021-02-12 18:08:18 +01:00
Erik Sundell
92ae019f8e
CloudWatch: Ensure empty query row errors are not passed to the panel ( #31172 )
...
* ensure empty errors are not passed to the panel
* make it a oneliner
2021-02-12 15:49:33 +01:00
Alex Khomenko
6f1a38cbe2
Variables: Extend option pickers to accept custom onChange callback ( #30913 )
...
* Rename DashboardPicker props
* Extend variable option pickers to allow providing custom onchage callback
* Update public/app/features/variables/pickers/OptionsPicker/actions.ts
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
* Update public/app/features/variables/pickers/OptionsPicker/actions.ts
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
* Update public/app/features/variables/pickers/OptionsPicker/actions.ts
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
* Update public/app/features/variables/textbox/TextBoxVariablePicker.tsx
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
* Codeformat
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
2021-02-12 16:00:12 +02:00
Zoltán Bedi
8c35ed4014
Prometheus: Multiply exemplars timestamp to follow api change ( #31143 )
2021-02-12 14:47:47 +01:00
Torkel Ödegaard
a17661d198
DashboardListPanel: Fixes issue with folder picker always showing All and using old form styles ( #31160 )
2021-02-12 10:29:59 +01:00
Torkel Ödegaard
cb5928fdb7
PieChart: Progress on new core pie chart ( #28020 )
...
Use visx for the Pie chart plugin.
Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
2021-02-11 14:32:33 +01:00
Dominik Prokop
8d339a279b
Eslint: no-duplicate-imports rule (bump grafana-eslint-config) ( #30989 )
...
* Eslint: no-duplicate-imports rule (bump grafana-eslint-config)
* Chore: Fix duplicate imports (#31041 )
* Rebased this branch into eslint-no-duplicate-imports
* updated some changes
* merged uncaught duplicate imports
* fixes frontend test- I hope
* fixes e2e test- I hope
Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com>
2021-02-11 13:45:25 +01:00
Zoltán Bedi
cc463f30a4
Exemplars: Change CTA style ( #30880 )
...
* Exemplars: Change CTA style
* Address review feedbacks
* Fix table column aligning
* Minor alignments + uncontrolled component warning fix
2021-02-10 18:02:48 +01:00
Andrej Ocenas
e0448513eb
Influx: Make max series limit configurable and show the limiting message if applied ( #31025 )
...
* Add configuration in ConfigEditor and default to 1000
* Show data in explore if any even if there is an error
* Update pkg/tsdb/influxdb/flux/executor.go
* Better handling of defaults
* Add test for runQuery to show data even with error
* Update public/app/store/configureStore.ts
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com>
* Update public/app/plugins/datasource/influxdb/components/ConfigEditor.tsx
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
* Update tooltip
* Update input
* Lint fixes
* Update snapshots
* Update decorator tests
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com>
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2021-02-10 15:23:19 +01:00
Giordano Ricci
c7e007d199
Elasticsearch: fix log row context erroring out ( #31088 )
2021-02-10 13:33:59 +00:00
Ivana Huckova
b2ca9cbda6
Prometheus: Fix issues with ad-hoc filters ( #30931 )
...
* Don't add {} to non-metrics starting with quotes
* Fix for using template variables
* Fix adding of filter to timerange
* Fix adding of filter to labels provided with group modifier
* Fix adding of filters to Grafana's variables
* Shorten tests
* Refactor and split
2021-02-10 14:02:42 +01:00
Ivana Huckova
16c25102bc
LogsPanel: Add deduplication option for logs ( #31019 )
...
* WIP: Add dedup functionality to logs panel
* Simplify, clean up
* Change ordering of customizations based on how it is in Explore
* Update public/app/plugins/panel/logs/LogsPanel.tsx
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com>
* Update public/app/plugins/panel/logs/LogsPanel.tsx
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com>
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com>
2021-02-10 14:01:59 +01:00
JC Bize
ea605fdeac
Transformations: Fixed typo in FilterByValue transformer description. ( #31078 )
2021-02-10 10:43:24 +01:00