Will Browne
ef22ff7315
Snapshots: Store dashboard data encrypted in the database ( #28129 )
...
* end 2 end
* fix import
* refactor
* introduce securedata
* check err
* use testify instead of convey
* cleanup test
* cleanup test
* blob time
* rename funcs
2020-10-13 10:19:42 +02:00
Sofia Papagiannaki
4ab90f9397
Fix linting: remove commented code ( #28208 )
2020-10-13 08:35:41 +02:00
Sofia Papagiannaki
4acbcd7053
AlertingNG: POC of evaluator under feature flag. ( #27922 )
...
* New feature toggle for enabling alerting NG
* Initial commit
* Modify evaluate alert API request
* Check for unique labels in alert execution result dataframes
* Remove print statement
* Additional minor fixes/comments
* Fix lint issues
* Add API endpoint for evaluating panel queries
* Push missing renaming
* add refId for condition to API
* add refId for condition to API
* switch dashboard based eval to get method
* add from/to params to dashboard based eval
* add from/to params to eval endpoint
Co-authored-by: kyle <kyle@grafana.com>
2020-10-12 21:51:39 +03:00
Arve Knudsen
957c88eaca
CloudWatch: Re-implement authentication ( #25548 )
...
* CloudWatch: Revisit authentication
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Simplify auth code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Use ARN
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add Drone configuration
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove unused code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove .drone.yml
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix external ID usage
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Fix issues after merge
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove stale code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove stale code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Use auth type enum
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix test snapshot
* Coordinate frontend and backend option names
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove old comments
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix front-end tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Introduce session cache
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Use constants
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix field alignment
* CloudWatch: Fix log message
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Tidy go.mod
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Handle arn auth type
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Fix role assumption duration
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Inline unnecessary constants
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Use serial comma in UI
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Inline unnecessary constants
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Fail if missing region
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Handle unconfigured region
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Log when using cached session
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Include region in cache key
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add UI warnings for lecagy support
* Do not clear ARN fields whenging change authentication provider
* Graph NG: annotations display (#27972 )
* Annotations support POC
* Fix markers memoization
* dev dashboard update
* Update public/app/plugins/panel/graph3/plugins/AnnotationsPlugin.tsx
* CloudWatch: Remove errors.BadRequest
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Undo unintentional change
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove log line
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix cache key computation
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add region to cache key
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve log messages
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* CloudWatch: Add documentation
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve tooltip
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve docs
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve docs
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve docs
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve tooltip
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add role assumption provisioning example
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Add upgrade notes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Improve docs
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Apply suggestions from code review
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* backend: use latest sdk (#28147 )
fixes #27713 via https://github.com/grafana/grafana-plugin-sdk-go/pull/227
* Docs: Update Permissions documentation (#28144 )
* removed overview.md
* content updates
* Update datasource_permissions.md
* update content
* content updates
* Update organization_roles.md
* Update docs/sources/enterprise/saml.md
Co-authored-by: Kyle Brandt <kyle@grafana.com>
* Update dashboard_folder_permissions.md
Co-authored-by: Kyle Brandt <kyle@grafana.com>
* area/grafana/toolkit: ci-package needs to use synchronous writes (#28148 )
* ci needs to use synchronous writes or the file ends up with zero length
* <Enterprise Docs> Add instructions to upload license via UI (#28067 )
* Add UI license upload option, reformat Enterprise license activation section
Added the option to upload a license file through the Server Admin UI, and did a little reformatting to make license activation look more like a process.
* Headers not bold, hyphens not asterisks
* Github: run metrics collector workflow every 10min (#28153 )
* GithubActions: Updated cron schedule
* Updated
* Docs: Update explore docs: remove dot at the end of line (#28151 )
HI - Removed Dot(.) at the end of line to make it consistent with other 2 points.
Thanks,
Ashish
* Fix frontend tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix frontend tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Docs: Update upgrade notes
Co-authored-by: Sofia Papagiannaki <sofia@grafana.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
Co-authored-by: Kyle Brandt <kyle@grafana.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
Co-authored-by: Brian Gann <briangann@users.noreply.github.com>
Co-authored-by: Mitch Seaman <mjseaman@users.noreply.github.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: ashishagarwal06 <34888589+ashishagarwal06@users.noreply.github.com>
2020-10-12 17:58:58 +02:00
Marcus Efraimsson
519ec93c7d
Datasource: Prefix SigV4 json data keys with sigV4 ( #28195 )
...
Prefixes SigV4 json data and secure json data keys with sigV4 to make
sure they don't collide with any other settings. Also minor fixes to UI.
Ref #27552
2020-10-12 17:52:17 +02:00
Kyle Hinton
92c2a6c239
Fix: Add additional settings for dataproxy to help with network proxy timeouts ( #27841 )
...
* adding additional settings for datasource cache transport
* added documentation for the new changes
* fixing small typo in defaults.ini comment
* fixing small typo in configuration.md comment
* Update conf/defaults.ini keepalive comment per review
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Update conf/defaults.ini idle conn comment per review
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Update conf/defaults.ini anon user comment per review
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Update docs/sources/administration/configuration.md idle conn comment per review
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* adding suggestions from papagian
* fixing configuration.md
* fixing configuration.md typo
* Apply suggestions from code review aknuds1
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
* updating sample.ini
* Apply suggestions for docs from code review papagian
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
* Update docs/sources/administration/configuration.md fix typo
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
2020-10-12 11:36:47 +03:00
Kyle Brandt
e16637793d
Alerting: Add labels to name when converting data frame to series ( #28085 )
...
* also move conversion func to alerting package since it is not used in other places
Fixes #28068
2020-10-09 08:21:16 -04:00
Kyle Brandt
c9a5d1ad4b
AzureMonitor: pass through null values instead of 0 ( #28126 )
...
fixes #28001
2020-10-09 08:15:19 -04:00
Ryan McKinley
2567e5202a
Live: remove admin pages, add alpha panel ( #28101 )
2020-10-08 08:42:15 -07:00
Alexander Zobnin
b55a51e270
SAML Single Logout ( #27995 )
...
* SAML: single logout WIP
* SAML: sign SAML requests
* SAML: remove unnecessary logs
* fix go mod file
* Docs: Single Logout
* SAML: use api endpoint for single logout
* Apply suggestions from code review
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* SAML: save context for single logout
* Chore: add SAML dependencies
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2020-10-08 17:42:55 +03:00
Will Browne
7d63b2c473
Auth: Add Sigv4 auth option to datasources ( #27552 )
...
* create transport chain
* add frontend
* remove log
* inline field updates
* allow ARN, Credentials + Keys auth in frontend
* configure credentials
* add tests and refactor
* update frontend json field names
* fix tests
* fix comment
* add app config flag
* refactor tests
* add return field for tests
* add flag for UI display
* update comment
* move logic
* fix config
* pass config through props
* update docs
* pr feedback and add docs coverage
* shorten settings filename
* fix imports
* revert docs changes
* remove log line
* wrap up next as round tripper
* only propagate required config
* remove unused import
* remove ARN option and replace with default chain
* make ARN role assume as supplemental
* update docs
* refactor flow
* sign body when necessary
* remove unnecessary wrapper
* remove newline
* Apply suggestions from code review
* PR fixes
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-08 10:03:20 +02:00
Darryl
21fc3e702b
Cloudwatch: Adding support for additional Amazon CloudFront. ( #27891 ) ( #28069 )
...
* Cloudwatch: Adding support for additional Amazon CloudFront metrics.
2020-10-07 19:03:05 +02:00
garanews
61749dee23
Fix typos ( #28074 )
...
Parsed all repo with a regexp of common misspelled words and fixed.
2020-10-07 11:29:30 +01:00
jgulick48
9cd3ab0340
Cloudwatch: Adding support for Amazon ElastiCache Redis metrics. ( #28040 )
...
* Cloudwatch: Adding support for Amazon ElastiCache Redis metrics.
2020-10-06 19:52:02 +02:00
Spencer Taylor
3606e282ba
CloudWatch: Add missing TransitGateway dimension ( #28061 )
...
Adding missing TransitGatewayAttachment dimension to the AWS/TransitGateway namespace.
2020-10-06 19:22:03 +02:00
Arve Knudsen
0a2ef086b3
Chore: Convert CloudWatch metrics to data frames ( #27449 )
...
* CloudWatch: Convert metrics results to data frames
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: kay delaney <kay@grafana.com>
2020-10-06 13:45:58 +02:00
jgulick48
7c2999709c
Cloudwatch: Add support for AWS DirectConnect virtual interface metrics and add missing dimensions ( #28008 )
...
* Cloudwatch: Add support for AWS DirectConnect virtual interface metrics.
* Cloudwatch: Adding dimentions to the AWS/DX namespace for virtual network interface based DirectConnect.
2020-10-05 19:19:40 +03:00
Amos Law
3a498e80ff
Registry: Fix service shutdown mode trigger location ( #28025 )
2020-10-05 13:30:46 +02:00
Arve Knudsen
531c579341
Plugins: Let descendant plugins inherit their root's signature ( #27970 )
...
* plugins: Let descendant plugins inherit their root's signature
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-05 13:28:18 +02:00
Ryan McKinley
726bb4477b
Live: cleanup and simple changes ( #28028 )
2020-10-04 23:53:52 -07:00
Matheus Alcantara
7d7e727f22
Cloudwatch: Convert go convey tests to standard test library ( #28003 )
...
* Cloudwatch: Convert go convey tests to standard test library
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-02 19:40:15 +02:00
Arve Knudsen
a078e40238
Settings: Rename constants/variables to follow Go naming standards ( #28002 )
...
* settings: Rename constants/variables to follow Go naming standards
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-02 15:45:45 +02:00
Matheus Alcantara
b4b3f6a088
Test: Create unit test to SplitEmails ( #27985 )
2020-10-02 08:42:10 +02:00
Carl Bergquist
a28a2fba51
healthchecks should work regardless domain ( #27981 )
2020-10-02 07:14:26 +02:00
Ryan McKinley
8a5fc00330
Live: broadcast events when dashboard is saved ( #27583 )
...
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
2020-10-01 10:46:14 -07:00
Marcus Efraimsson
747513d444
Plugins: Fix loading of backend plugins ( #27951 )
...
Ref #27921
2020-10-01 10:39:42 +02:00
Carl Bergquist
7b891d10ee
Instrumentation: Removes invalid chars from label names ( #27921 )
2020-09-30 20:12:57 +02:00
Joan López de la Franca Beltran
e03da3760e
Add index at user_auth_token.user_id column ( #27908 )
2020-09-30 01:20:29 +02:00
Will Browne
c764e3c37b
remove org deprecation logs ( #27788 )
2020-09-25 16:51:12 +02:00
Bill Oley
334cb41a99
Move error log in social.go inside err != nil ( #27804 )
2020-09-25 15:24:16 +02:00
Torkel Ödegaard
adc1b965f3
PanelData: Adds annotations and QueryResultMeta dataTopic ( #27757 )
...
* topics round two
* more props
* remove Data from enum
* PanelData: Simplify ideas a bit to only focus on the addition of annotations in panel data
* Test data scenario
* Old graph panel showing annotations from PanelData
* Fixed comment
* Fixed issues trying to remove use of event.source
* Added unit test
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2020-09-24 21:01:31 +02:00
Sofia Papagiannaki
42476811a4
Cloudwatch: Fix loading custom credentials profile ( #27684 )
...
* Store credentials profile in JSON
* Update docs example
* Apply suggestions from code review
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-24 19:21:17 +03:00
Harald Kubota
81bf9fc278
LINE Notify to have Alerts and OK notifications ( #27639 )
...
* Get Alerts AND OKs for LINE Notify
* Get Alerts AND OKs for LINE Notify
* Get Alerts AND OKs for LINE Notify
2020-09-24 15:45:53 +02:00
Ryan McKinley
93a01eb1d9
Live: improved channel state ( #27672 )
2020-09-23 08:02:01 -07:00
Giordano Ricci
4c7131425b
Revert "Elasticsearch: add frozen indices search support ( #27472 )" ( #27726 )
...
This reverts commit 61a3160c34
.
2020-09-23 12:24:46 +01:00
Jorge Vallecillo
9e3def4214
Fix typos ( #27711 )
2020-09-22 11:00:59 -07:00
Arve Knudsen
a5d9196a53
Chore/fix lint issues ( #27704 )
...
* Chore: Fix linting issues
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-22 16:22:19 +02:00
Arve Knudsen
ffc11cb63c
Server: Don't clutter trace.Stop by exiting ( #27700 )
...
* Server: Don't clutter trace.Stop by exiting
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-22 15:28:54 +02:00
Giordano Ricci
61a3160c34
Elasticsearch: add frozen indices search support ( #27472 )
...
* Elasticsearch: Add frozen indices support for alerting
2020-09-18 18:27:25 +01:00
Domas
564d7ecea7
DataProxy: Ignore empty URL's in plugin routes ( #27653 )
...
This adds a check to see if plugin route URL is empty, and in such case
does not modify request schema and host of the request to be proxied.
This behavior is now the same as in the plugin proxy.
2020-09-18 13:22:07 +02:00
Carl Bergquist
6dc73a6712
add /healthz endpoint ( #27536 )
...
kuberentes (and Im sure other orchastrators does as well) support two
kind of checks. readiness checks and liveness checks. Grafanas current
`/api/health` endpoint requires database access which might not
always be required for the instance to be considered active.
2020-09-18 13:03:18 +02:00
Alvaro Olmedo Rodriguez
20292bdb0e
Alerting: Ensuring notifications displayed correctly in mobile device with Google Chat ( #27578 )
...
* Added previewText to Google Chat notifier
2020-09-18 09:41:34 +03:00
Kyle Brandt
50c680f3d7
BackendPlugins: Point to request Headers in the wrapper ( #27599 )
...
In particular, so plugins can see the FromAlert header
2020-09-16 10:12:39 -04:00
Wouter Smeenk
39eba5065b
Dashboard: Support configuring default timezone via config file ( #27404 )
...
Add a default timezone that the administrator can set in the settings.
This setting is be used as default for the users timezone preference.
Can be used when creating Grafana instances without administrator
intervention, in order to give user the correct default timezone.
Fixes #25654
2020-09-15 15:20:53 +02:00
Dan Cech
53153c82fc
add method to get usage report ( #27555 )
2020-09-15 09:01:15 -04:00
Ryan McKinley
aa40320b45
Live: check logged-in-user for grafana live ( #27436 )
2020-09-15 00:01:14 -07:00
Hansuuuuuuuuuu
8d971ab2f2
Auth: Replace maximum inactive/lifetime settings of days to duration ( #27150 )
...
Allows login_maximum_inactive_lifetime_duration and
login_maximum_lifetime_duration to be configured using
time.Duration-compatible values while retaining backward compatibility.
Fixes #17554
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2020-09-14 15:57:38 +02:00
Sofia Papagiannaki
f529223455
Fix instrumentation panic if there is no response ( #27567 )
2020-09-14 14:05:47 +03:00
Agnès Toulet
eb970a4985
Org API: enrich add user to org endpoints with user ID in the response ( #27551 )
2020-09-14 08:58:23 +02:00
Agnès Toulet
0c4b7d3f5d
Alerting API: send 404 not found error and enrich delete with UID endpoint response with alert notification ID ( #27550 )
...
* Alerting API: Send back 404 not found error for update and delete endpoints
* Alerting API: send back alert notification id for delete with uid endpoint
2020-09-11 18:04:43 +02:00