3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
Commit Graph

14831 Commits

Author SHA1 Message Date
Connor Lindsey
af2d19b02e Tracing: Add option to map tag names to log label names in trace to logs settings ()
* Add mapped tags input to allow renaming tags in trace to logs settings

* Use mappedTags in createSpanLink

* Update traceToLogs docs

* Show 'add kv' button if no tags

* Update docs

* Default mappedTags to tag values
2022-02-22 23:17:45 +01:00
J Guerreiro
e201b777c2 Service Accounts: small typo and dto fixes ()
* ServiceAccounts: respect js casing and small fixes to displayed values

* ServiceAccounts: fix typos on service account

* ServiceAccounts: fix missing orgID in service account

* ServiceAccounts: Small fixes to dtos for profile

* ServiceAccounts: use result org id

* ServiceAccounts: return value is always nil
2022-02-22 14:58:42 +01:00
Ashley Harrison
5e3be8b17f Variables: Fix adding variables to an unsaved dashboard ()
* 🚧: Mob session work 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* 🚧: Mob session work 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
Co-authored-by: Alexandra Vargas <alexa1866@gmail.com>
2022-02-22 13:21:01 +00:00
Alexander Emelin
28c30a34ad Comments: support live comments in dashboards and annotations () 2022-02-22 10:47:42 +03:00
kay delaney
b6682cdcb9 Navigation: Proof-of-concept for pinning navbar items () 2022-02-21 15:25:47 +00:00
Kristina
31090a75eb Explore: Save log results sort order ()
* Explore: Save log results sort order

* Change to radio group, add test and make language consistent with logs plugin
2022-02-21 06:09:43 -06:00
kay delaney
d134740bba Redux: Factor Invites out to separate slice () 2022-02-21 11:37:49 +00:00
Ryan McKinley
636af1fff4 Testdata: use alias in streaming example () 2022-02-18 16:30:57 -08:00
Gábor Farkas
78c35e6000 cloudwatch: use monaco from grafana-ui () 2022-02-18 17:14:14 +01:00
renovate[bot]
175891a5e3 Update dependency react-hook-form to v7.26.1 ()
* Update dependency react-hook-form to v7.27.0

* fix type errors for alerting components with new react-hook-form version ()

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Nathan Rodman <nathanrodman@gmail.com>
2022-02-18 17:13:31 +01:00
Levente Balogh
1e21184f65 Fix: JSON parsing in backend_srv ()
* fix(plugins/state): console log errors during install / uninstall

* fix(backend_srv): catch JSON parse errors

Sometimes it can happen that a backend API responses says that it's
returning with a JSON content-type, however it actually returns an invalid
JSON (e.g. an empty body) - in which case the backendSrv() request errors out.
2022-02-18 16:06:37 +01:00
Piotr Jamróz
25f155a44d Explore: Fix closing split pane when logs panel is used ()
* Clear cache when LogsNavigation is mounted

* Update docs
2022-02-18 15:34:19 +01:00
Torkel Ödegaard
0838f4b1ad Plugins: Fix importing panel modules () 2022-02-18 12:51:55 +01:00
Yaelle Chaudy
530913dd37 Azure Monitor : Adding json formatting of error messages in Panel Header Corner and Inspect Error Tab ()
* Trying out json formatting of azure graph err from frontend

* Added some tests wip

* Wrap text in popper tooltip

* fix conflict

* Wrap text in tooltip

* Complete tests

* Added invalid json test

* Backend changes and tests

* removed comments

* Added split of message / json and edge cases tests

* Addressed comments

* moved catch to parseErrorMessage
2022-02-18 12:09:24 +01:00
Gábor Farkas
dd9b52fd41 log-volume: adjust request-id to avoid conflicts ()
* log-volume: adjust request-id to avoid conflicts

* added unit test

* simplify test

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>

* added missing import

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
2022-02-18 12:05:29 +01:00
Eric Leijonmarck
c6943797f9 Admin: token expiration colors and calculations ()
* token expiration colorign and calculations

* Update public/app/features/serviceaccounts/ServiceAccountTokensTable.tsx

* removed unused calculation for expiry

* optional attribute

* fix: typo

* implement failing test :thumpsup:

* tests

* refactor: tests to use assertify

* tiem

* refactor: remote porntf

* refactor: make test NOT sleep 1 sec for all builds :D

Co-authored-by: J Guerreiro <joao.guerreiro@grafana.com>
2022-02-18 11:43:33 +01:00
renovate[bot]
f6780d8861 Update dependency lru-cache to v7 ()
* Update dependency lru-cache to v7

* Make latest lru cache work

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2022-02-18 10:23:06 +01:00
Agnès Toulet
478efffce7 Data source insights: Switch from ID to UID () 2022-02-18 09:19:39 +01:00
Hugo Häggmark
dbec2b02fd Variables: move state tree into a keyed state ()
* Variables: move state tree into a keyed state

* Update public/app/features/variables/state/transactionReducer.ts

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>

* Chore: fix prettier error

* Chore: renamed slices and lastUid

* Chore: rename toUidAction

* Chore: rename dashboardVariableReducer

* Chore: rename state prop back to templating

* Chore renames variable.dashboardUid

* Chore: rename toDashboardVariableIdentifier

* Chore: rename getDashboardVariable

* Chore: rename getDashboardVariablesState

* Chore: rename getDashboardVariables

* Chore: some more renames

* Chore: small clean up

* Chore: small rename

* Chore: removes unused function

* Chore: rename VariableModel.stateKey

* Chore: rename KeyedVariableIdentifier.stateKey

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
Co-authored-by: kay delaney <kay@grafana.com>
Co-authored-by: Alexandra Vargas <alexa1866@gmail.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-02-18 06:06:04 +01:00
Kyle Cunningham
7a619cbe4e Hide Barchart Value Labels for Automatic Display When Overlapping ()
* Implement skip list for hiding value labels when Auto is selected

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2022-02-17 14:07:50 -06:00
Sarah Zinger
85753afdf0 Cloudwatch: Fix bug with onblur in Metric Search () 2022-02-17 12:53:42 -05:00
Cat Perry
fcd85951a7 Tempo: Switch out Select with AsyncSelect component to get loading state in Tempo Search ()
* Replace Select with AsyncSelect to get loading state
2022-02-17 09:18:25 -08:00
Stephanie Closson
abe32b9521 Implement PromQL Functions in new query editor ()
* adding functions for prometheus queries

* WIP: functions added. Just categorizing them and testing each function out

* WIP: testing functions

* WIP verifying other functions

* Functions added and classified

* added tests

* moved bottomk to aggregations module

* added tests to the PromQueryModeller

* code review comments. Made range renderer common with code

* removed duplicate functions

* updated comments
2022-02-17 12:39:41 -04:00
Ryan McKinley
bbddab0294 Chore: refactor core transformer folder structure () 2022-02-17 08:12:38 -08:00
Todd Treece
c8bb01d1ad Expressions: Add support for variables () 2022-02-17 10:50:22 -05:00
Connor Lindsey
6e07b30048 Chore: Clean up logs and deprecated library in tracing tests ()
* Fix logs and errors from tracing tests

* Refactor SpanBar to remove recompose

* Fix NodeGraph tests
2022-02-17 16:34:16 +01:00
Isabella Siu
dac2b7ef73 Cloudwatch: Fix resource variables () 2022-02-17 09:04:59 -05:00
Kristina
773da0e330 Explore: Add t * keybindings to change time range ()
* Add keybindings to explore, allow override of dashboard model update for explore update

* Remove edits to Dashboard Model, add definition when url params should be updated

* Add tests

* Add and expose util function instead of bringing in unrelated library do not define explicit path to library file

* Use more generic model for TimeSrv

* Remove url utility functions, use javascript function instead

* Break out TimeModel into new type and bring it in

* condense object creation
2022-02-17 07:39:02 -06:00
Agnès Toulet
8835020457 Feature Highlights: add RS event for nav items () 2022-02-17 14:20:37 +01:00
Peter Holmberg
0502a84922 Alerting: Add choice to external alertmanagers ()
* implement alertmanagersChoice

* return empty array and remove non null assertion
2022-02-17 12:47:38 +01:00
Torkel Ödegaard
7bc12629fd Prometheus: Fixing state timing issues () 2022-02-17 11:41:05 +01:00
Artur Wierzbicki
3e53a08090 : hide dashboard preview admin UI () 2022-02-17 12:34:07 +04:00
Ryan McKinley
bb86ba99ee Heatmap: new panel based based on uPlot ()
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2022-02-16 14:49:17 -08:00
Ryan McKinley
685ec5383e Chore: avoid pointer events in viz tooltip () 2022-02-16 13:52:39 -08:00
Isabella Siu
50a53ef58b CloudWatch: replace metricFindQueries with CallResourceHandler () 2022-02-16 14:28:26 -05:00
Artur Wierzbicki
6c76aa71e8 Previews: capability check ()
* add SQL migrations

* dashboard previews from sql: poc

* added todos

* refactor: use the same enums where possible

* use useEffect, always return json

* added todo

* refactor + delete files after use

* refactor + fix manual thumbnail upload

* refactor: move all interactions with sqlStore to thumbnail repo

* refactor: remove file operations in thumb crawler/service

* refactor: fix dashboard_thumbs sql store

* refactor: extracted thumbnail fetching/updating to a hook

* refactor: store thumbnails in redux store

* refactor: store thumbnails in redux store

* refactor: private'd repo methods

* removed redux storage, saving images as blobs

* allow for configurable rendering timeouts

* added 1) query for dashboards with stale thumbnails, 2) command for marking thumbnails as stale

* use sql-based queue in crawler

* ui for marking thumbnails as stale

* replaced `stale` boolean prop with `state` enum

* introduce rendering session

* compilation errors

* fix crawler stop button

* rename thumbnail state frozen to locked

* : fix merge conflicts

* : remove thumb methods from `Store` interface

* : clean filepath, defer file closing

* : fix rendering.Theme cyclic import

* : linting

* : linting

* : mutex'd crawlerStatus access

* : added integration tests for `sqlstore.dashboard_thumbs`

* : added comments to explain the `ThumbnailState` enum

* : use os.ReadFile rather then os.Open

* : always enable dashboardPreviews feature during integration tests

* : add /previews/system-requirements API

* : remove sleep time, adjust number of threads

* : review fix: add `orgId` to `DashboardThumbnailMeta`

* : review fix: automatic parsing of thumbnailState

* : update returned json

* : UI changes - dashboard previews sytem req check

* : lint fixes

* : fix tests

* : typo

* : fix getSystemRequirements API: return 200 even if we plugin version is invalid

* : fix getSystemRequirements API: don't return SemverConstraint on error

* : fix getSystemRequirements API

* : fix previews sytem requirements text

* : add `doThumbnailsExist` to repo

* : remove redux api

* : add missing model

* : implement frontedsettings-driven capability check

* : simplify

* : revert test changes

* : add dummy setup settings

* : implicit typing over `FC<Props>`

* : refactor conditionals

* : replace `getText` with a react component

* : fix component interface

* : add onRemove to `PreviewsSystemRequirements` alert

* : add bottom/top margin to previewSystemRequirements modal

* : merge conflict fix

* : remove console.log

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Alexander Emelin <frvzmb@gmail.com>
2022-02-16 21:49:50 +04:00
Ryan McKinley
1554bffcb8 Search: apply security in before returning results ()
Co-authored-by: Artur Wierzbicki <wierzbicki.artur.94@gmail.com>
2022-02-16 09:47:41 -08:00
Dan Cech
51cd6f3cc5 Configuration: Add ability to customize okta login button name and icon ()
* add ability to customize okta login button name and icon

* update configs, add basic frontend test

* add icon to oauth settings type

* trigger tests

* fix typecheck
2022-02-16 11:35:00 -05:00
Torkel Ödegaard
2b9e46d1f8 Angular: Option to disable angular support and isolate angular dependencies ()
* Angular: Initial setting that disables angular, load angular support in separate chunk

* Load angular panels on demand

* Load alerting in separate chunk only when angularSupportEnabled

* progress, do not export core_module if angular disabled

* Progress

* Update public/app/features/plugins/built_in_plugins.ts

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>

* Removing remaining usage of angular from outside angular app (not counting plugins)

* Update config and docs

* Fix sample.ini

* Update public/app/features/alerting/AlertTab.tsx

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

* Fixing prettier issue

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2022-02-16 17:14:33 +01:00
Dominik Prokop
8bb3de3037 Analytics: Collect information about queries reordering () 2022-02-16 14:16:25 +01:00
Torkel Ödegaard
cfa24a3cfb Prometheus: Auto legend handling ()
* Legend editor is working

* It's working

* Progress on auto legend mode

* Fixes

* added unit tests

* Added go tests

* Fixing tests

* Fix issue with timing and internal state

* Update public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryCodeEditor.tsx

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2022-02-16 14:06:33 +01:00
Zoltán Bedi
da91c93f4a QueryEditor: Fix setting panel state to done if query had no error () 2022-02-16 11:48:22 +01:00
Konrad Lalik
1886a59a12 Fix notification routes editing when filters are applied ()
* Fix route editing when filters are applied

* Fix route delete operation, reset expanded item when filters change

* Refactor edit and delete functions, add tests

* Fix comment
2022-02-16 11:03:53 +01:00
Zoltán Bedi
befb2afccc QueryEditor: Fix crash in angular panels when query have error () 2022-02-16 10:34:29 +01:00
Joey Tawadrous
b4dd3138ce InfluxDB: metricFindQuery migration to backend ()
* Send metricFindQuery to backend

* Added feature toggle

* Changed flag name

* metricFindQuery backend

* Added test for metricFindQuery backend parse

* Added test for show tag values

* Test for metricFindQueries

* Updated tests

* Put back comment

* Case insensitive in transformRows

* Check length ov value pair

* Sep tests

* Updated valuePair index
2022-02-16 09:16:22 +00:00
Hugo Häggmark
5760a18da5 Chore: Replace enzyme with RTL in OrgSwitcher.test.tsx () 2022-02-16 00:48:13 -08:00
Ivana Huckova
a1a96a7324 Prometheus: Fix removing of labels when removed outside of component ()
* Prometheus: Don't remove lables when switching metrics

* Always update labels when labels from prop change

* Add test

* Update variable name

* Revert "Update variable name"

This reverts commit ca186f8b0b.
2022-02-16 09:40:04 +01:00
Ivana Huckova
d38f0e5d9e Prometheus: Offer hint for metrics with labels ()
* Prometheus: Offer hint for counter metric with labels

* Update comment

* Fix hinting for buckets with labe-values
2022-02-16 09:34:32 +01:00
Agnès Toulet
39797e33ae Highlights: fix RS event name () 2022-02-16 08:52:18 +01:00
Torkel Ödegaard
916f152a6f Prometheus: Fixes issue adding rest params ()
* Prometheus: Fixing issue adding rest param and adding test

* Rebuild when expr changes from outside
2022-02-16 08:05:16 +01:00