Marcus Efraimsson and Kyle Brandt
baba1634b8
Plugins: Use grafana-plugin-sdk-go v0.5.0 ( #21116 )
...
* fix dispense
* plugin loading refactor
Moves common functionality of registering, starting,
stopping and restarting backend plugins to
backendplugin package.
* simplify plugin descriptors
* target sdk v0.5.0
Co-authored-by: Kyle Brandt <kyle@kbrandt.com >
2020-01-08 11:43:28 -05:00
Erik Sundell
cf2dd51827
CloudWatch: dimension_values templating fix ( #21401 )
...
* Handle dimension value if passed as array
* Break out dimension value loading into its own func
2020-01-08 12:24:10 +01:00
Boris Granveaud
b8b618241e
Rendering: Fix panel PNG rendering when using sub url & serve_from_sub_path = true ( #21306 )
...
* Rendering: fix dashboard rendering when using sub url
* rollback on render.go: no need to add sub-path
2020-01-06 08:12:18 +01:00
Paul Emmerich and Arve Knudsen
42032f6c03
ImgUploader: add support for non-amazon S3 ( #20354 )
...
* imguploader: add support for non-Amazon S3 endpoints and forcing of path-style S3 addressing
fixes #11240
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-01-02 15:10:20 +01:00
Zach Bagnall
d0360de8f1
Alerting: Add configurable severity support for PagerDuty notifier ( #19425 )
...
* Pagerduty notifier: configurable severity
Instead of hardcoding `critical` make it configurable per notification channel instance.
* fix html
* Add a test to ensure default severity is correct
* Notifications doc
* Add a non-default test
* Add err check on NewJson (all tests)
* Add default severity (critical) to AlertNotificationEditCtrl class
2019-12-24 09:32:05 +02:00
Ryan McKinley and Torkel Ödegaard
104c2e3636
Metrictank: fix bundled dashboard ( #21209 )
...
* update metrictank dashboard
* Restored dashboard datasource variable, and improved error handling in the import api handler
Co-authored-by: Torkel Ödegaard <torkel@grafana.com >
2019-12-20 11:42:47 +01:00
Dave Henderson
66b70b50b8
Tracing: Support configuring Jaeger client from environment ( #21103 )
...
* Tracing: Support configuring Jaeger client from environment
* Tracing: Replace deprecated Jaeger Client call
2019-12-18 20:09:15 +01:00
michael-az
5b3ff90377
Alerting: Add more information to webhook notifications ( #20420 )
...
Adds the orgId, dashboardId and panelId of the Webhook alert notifier.
2019-12-18 14:03:59 +01:00
Christoph
8c089b98b3
PagerDuty: Fix custom_details to be a JSON object instead of a string ( #21150 )
2019-12-18 11:42:25 +02:00
Brian Curtich
cef328d1d6
Cloudwatch ECS Container Insights Support ( #21125 )
2019-12-17 09:58:24 +02:00
Jerry Ylilammi
e27ab89aed
Postgres/MySQL/MSSQL: Adds support for region annotations ( #20752 )
...
Adds support for region annotations in Postgres, MySQL and
MSSQL data sources by adding a column named timeend to
annotation query.
Co-Authored-By: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
Closes #20918
Ref #10589
2019-12-13 17:25:36 +01:00
Alexander Morozov
06bf7e8ef1
OAuth: Removes send_client_credentials_via_post setting ( #20044 )
...
Removes send_client_credentials_via_post oauth setting and
use auto-detect mechanism instead.
By these changes also fixes statichcheck errors
Ref #8968
2019-12-12 20:00:56 +01:00
Sofia Papagiannaki
b12dc890b8
API: Validate redirect_to cookie has valid (Grafana) url ( #21057 )
...
* Restrict redirect_to to valid relative paths
* Add tests
2019-12-12 17:08:34 +02:00
csyangchen
34299a1bd2
Alerting: Fix panic in dingding notifier ( #20378 )
...
dingding notifier fails to send alert messages containing JSON,
This change use map and json.Marshal to always produce valid
JSON body.
Fixes #9771
2019-12-11 17:01:01 +01:00
Marcus Efraimsson
34236ca1ae
Chore: Improve rendering logging ( #21008 )
...
Moving info log from phantomjs to rendering service
so it's logged for all kinds of renderers.
Add debug log for image renderer plugin and remote
renderer.
2019-12-11 15:06:59 +01:00
Emil Tullstedt
fe8b533497
Modules: Add patched goavro dependency for extensions ( #21027 )
2019-12-11 14:44:29 +01:00
Jiajun Huang
5e34e061d5
use https for fetch gravatar by default ( #20964 )
2019-12-10 08:59:11 +01:00
Paul Traylor
10d36b282b
Renderer: Add user-agent to rendering plugin requests ( #20956 )
2019-12-09 09:11:40 +01:00
Emil Tullstedt
30771f25bf
Revert "Modules: Add goavro dependency for extensions ( #20920 )" ( #20928 )
...
Goavro doesn't compile on 32-bit systems.
This reverts commit 413be3a6a0 .
2019-12-06 14:10:07 +01:00
Emil Tullstedt
413be3a6a0
Modules: Add goavro dependency for extensions ( #20920 )
2019-12-06 10:33:19 +01:00
Erik Sundell
a533e00622
Remove escaping of \ ( ) characters ( #20915 )
2019-12-06 09:59:33 +01:00
Arve Knudsen
abc7893fdc
Server: Return 404 when non-pending invite is requested ( #20863 )
...
Server API: Return 404 when non-pending invite is requested
2019-12-04 13:01:37 +01:00
Marcus Efraimsson
79c0fa4ca5
CLI: Return error and aborts when plugin file extraction fails ( #20849 )
...
Return error and aborts when plugin file extraction fails.
If file is in use, a somewhat user-friendly message is returned.
Fixes #20841
2019-12-04 12:48:40 +01:00
Dima Ryskin
2027e1aaee
AlertNotifier: Support alert tags in OpsGenie notifier ( #20810 )
...
* support alert tags in OpsGenie notifier
* update readme: OpsGenie alert tags support
* lintfix: remove redundant string formatting
2019-12-03 11:54:37 +01:00
Torkel Ödegaard
87d19787b4
Profile: Remove sign-out tab from profile page ( #20802 )
...
* Profile: Remove sign-out tab
* Fixed formatting
* Updated formatting
2019-12-02 18:03:28 +01:00
Arve Knudsen
b1af28122b
Server: Fail when unable to create log directory ( #20804 )
2019-12-02 15:40:32 +01:00
Sofia Papagiannaki
0b7a5d4ed1
SQLStore: Test admins/editors/viewers stats validity ( #20751 )
...
* Test admins/editors/viewers stats validity
* Use standard testing library instead of Convey
2019-12-02 10:14:20 +02:00
Guangzhe Huang
71792d698b
Cleanup: use the local variable ( #20767 )
...
Signed-off-by: huanggze <loganhuang@yunify.com >
2019-11-29 07:34:20 -08:00
Sofia Papagiannaki
02d7d00560
SQLStore: Rewrite system statistics query to count users once ( #20711 )
...
Fix system statistics query to count only once users that are
part of several organisations.
Fixes #20681
2019-11-27 18:57:08 +01:00
Arve Knudsen
3c7cfbebe8
Server: Defer wg.Done call to ensure it's called ( #20700 )
2019-11-27 13:42:15 +01:00
Arve Knudsen
29d27fbaf0
Server: Clean up startup logic/error checking ( #20679 )
...
* Server: Clean up startup logic/error checking
2019-11-27 12:07:21 +01:00
Kyle Brandt
4afd40018b
transform: update to use sdk with frame.labels moved to frame.[]field.labels ( #20670 )
...
sdk v0.4.0
2019-11-26 13:28:16 -05:00
Sofia Papagiannaki
b16cb92b32
Chore: Improve grafana-server profiling and tracing ( #20593 )
...
Profiling and tracing can now be enabled/disabled separately.
Adds argument for trace file path.
Support overriding profiling and tracing argument using
environment variables.
Update docs.
Fixes #20576
2019-11-25 09:40:10 +01:00
Marcus Efraimsson
3fc5f4552a
CloudWatch: Fix high CPU load ( #20579 )
...
* Cache decrypted securejsondata
* Models: Add datasource cache tests
2019-11-22 14:21:23 +01:00
Jon Gyllenswärd
bccc5397f6
Instrumentation: Edition and license info to usage stats ( #20589 )
...
* Added edition and licensing info to usage stats
2019-11-22 12:19:00 +01:00
Eric Leijonmarck
f05607d4c0
UserTableView: Show user name in table view ( #18108 )
...
* refactor to multiple rows
* added name for org user struct
* added name getorgusers
* added user name to tableview
* made test pass
* updated userMocks to user name field
* added missing UsersTable snapshot
* added name on teammembers page, be able to search query for name, login and email
* added the updated snapshots
* conform to same sorting as output form
* conform to previous way of using it
* sort first by login and after by email, as it was before
2019-11-21 12:44:46 +02:00
Sofia Papagiannaki
ea7ccda647
Alerting: Propagate failures to delete dashboard alerts ( #20507 )
...
* Propagate failures to delete dashboard alerts
2019-11-21 10:29:51 +02:00
Erik Sundell
359416b89f
Cloudwatch: Fix LaunchTime attribute tag bug ( #20237 )
...
* Cast tags of type Time to string
* Fig go lint issue
2019-11-21 09:20:44 +01:00
Marcus Efraimsson
6a4ad136dc
Backend plugins: Log wrapper args formatting fix ( #20521 )
...
Formatting fix missed in #20514
2019-11-20 16:57:55 +01:00
Marcus Efraimsson
58b7958952
Backend plugins: Log wrapper args formatting ( #20514 )
...
Backend plugins is recommended to use hclog with json
formatting to get proper log output in grafana server log.
Old hclog-wrapper.go that I deleted while back is still in
the repo so deletes that.
2019-11-20 14:27:28 +01:00
Erik Sundell
ec18e2bfc3
CloudWatch: Remove HighResolution toggle since it's not being used ( #20440 )
...
* Remove highres flag since it's not being used
* Remove not used code. Init id field correctly
* Fix broken tests
* Remove GMS related calculations
* Rename period field
* Add breaking changes to changelog. Also update upgrading docs
* Update snapshot
* Update docs after feedback
* Changes after feedback
2019-11-20 13:34:44 +01:00
Sofia Papagiannaki
d1c523838b
API: Optionally list expired keys ( #20468 )
...
* API: Optionally list expired keys
* Update docs
2019-11-20 13:14:57 +02:00
Jon Gyllenswärd
1b38d94537
Image-rendering: Cleanup of rendering code ( #20496 )
2019-11-20 09:26:59 +01:00
Mitsuhiro Tanda
af35e081c2
handle PartialData status ( #20459 )
2019-11-19 13:36:32 +01:00
Kyle Brandt
c9309edbb0
transform: changes to support sdk v0.2.0 ( #20426 )
...
and update vendor
2019-11-18 11:40:40 -05:00
Jon Gyllenswärd
7a8c6a9b54
Reporting: Handle timeouts in rendering ( #20415 )
...
* Added timeout in grpc call to plugins for rendering
2019-11-18 16:58:15 +01:00
Andrej Ocenas
3f144bdd05
Provisioning: Fix unmarshaling nested jsonData values ( #20399 )
...
Problem was that yaml unmarshal returned nested maps as
map[interface{}]interface{} which are then not marshal-able
to json because of that interface{} key type. This adds explicit
casting of the keys in the yaml value types to string which
then makes the values marshal-able to JSON in DB.
Fixes : #11537
2019-11-18 11:06:39 +01:00
Arve Knudsen
82f4fc2783
Fail when server is unable to bind port ( #20409 )
...
* Server: Return error when unable to bind port
* Server: Exit if a service fails
* Build: Remove graceful kill from Bra config
2019-11-18 09:49:08 +01:00
Sofia Papagiannaki
886bad2fd5
Util: Modify SplitHostPortDefault not to return an error for empty input ( #20351 )
...
* Util: Optionally allow empty input in SplitHostPortDefault
Due to a recent change the SQL Server tests failed because passing an
empty datasource url in `util.SplitHostPortDefault` was no more allowed.
This fix contains the following modifications:
- Modifies the util.SplitHostPortDefault not to return an error for empty input.
- Modifies the util.SplitHostPort to return an error for empty input.
- Introduces an additional test for empty input.
2019-11-18 10:42:51 +02:00
Marcus Efraimsson
dfa2f3d2fb
Chore: Log actual error when oauth pass thru fails ( #20419 )
...
Logs the actual error when failing to retreive access token
when OAuth pass true is enabled for a datasource.
Ref: #20407
2019-11-15 17:14:53 +01:00