grafana/pkg
Anthony Woods 5c0fbbf7c8 improve remote image rendering (#13102)
* improve remote image rendering

- determine "domain" during Init() so we are not re-parsing settings
  on every request
- if using http-mode via a rednererUrl, then use the AppUrl for the
  page that the renderer loads.  When in http-mode the renderer is likely
  running on another server so trying to use the localhost or even the
  specific IP:PORT grafana is listening on wont work.
- apply the request timeout via a context rather then directly on the http client.
- use a global http client so we can take advantage of connection re-use
- log and handle errors better.

* ensure imagesDir exists

* allow users to define callback_url for remote rendering

- allow users to define the url that a remote rendering service
  should use for connecting back to the grafana instance.
  By default the "root_url" is used.

* improve remote image rendering

- determine "domain" during Init() so we are not re-parsing settings
  on every request
- if using http-mode via a rednererUrl, then use the AppUrl for the
  page that the renderer loads.  When in http-mode the renderer is likely
  running on another server so trying to use the localhost or even the
  specific IP:PORT grafana is listening on wont work.
- apply the request timeout via a context rather then directly on the http client.
- use a global http client so we can take advantage of connection re-use
- log and handle errors better.

* ensure imagesDir exists

* allow users to define callback_url for remote rendering

- allow users to define the url that a remote rendering service
  should use for connecting back to the grafana instance.
  By default the "root_url" is used.

* rendering: fixed issue with renderKey where userId and orgId was in mixed up, added test for RenderCallbackUrl reading logic
2018-09-04 13:42:55 +02:00
..
api Merge remote-tracking branch 'origin/master' into alerting_reminder 2018-08-22 18:08:50 +02:00
bus bus: noop should still execute fn 2018-06-15 12:46:20 +02:00
cmd Reopen log files after receiving a SIGHUP signal (#13112) 2018-09-04 10:31:41 +02:00
components Handle query string in storage public_url (#9351) (#12555) 2018-07-17 11:10:12 -07:00
events feat(signup): progress on new sign up and email verification flow, #2353 2015-08-28 15:14:24 +02:00
extensions refactoring: enterprise build/hooks refactorings (#12478) 2018-07-02 04:33:39 -07:00
log Reopen log files after receiving a SIGHUP signal (#13112) 2018-09-04 10:31:41 +02:00
login Support client certificates for LDAP servers 2018-08-03 12:00:20 +02:00
metrics support GetMetricData 2018-07-09 13:11:50 +09:00
middleware Revert "auth proxy: use real ip when validating white listed ip's" 2018-06-28 15:43:33 +02:00
models Merge remote-tracking branch 'origin/master' into alerting_reminder 2018-08-20 13:29:30 +02:00
plugins Datasource for Grafana logging platform 2018-07-20 17:07:17 +02:00
registry Improve extensions build. (#12461) 2018-07-01 07:01:43 -07:00
services improve remote image rendering (#13102) 2018-09-04 13:42:55 +02:00
setting improve remote image rendering (#13102) 2018-09-04 13:42:55 +02:00
social social: gitlab_oauth: set user ID in case email changes 2018-08-14 14:11:48 +02:00
tracing refactor: tracing service refactoring (#11907) 2018-05-10 16:51:55 +02:00
tsdb Merge pull request #12891 from svenklemm/unixepochgroup 2018-08-17 14:41:33 +02:00
util Fixing bug in url query reader and added test cases 2018-08-07 18:43:59 -07:00