grafana/pkg/services
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
..
alerting don't write to notification journal when testing notifier/rule 2018-08-20 16:27:13 +02:00
annotations fix: annnotation api & sql issue 2018-06-25 16:03:38 +02:00
cleanup #11607 corrected file cleanup test 2018-06-14 13:00:07 +05:00
dashboards Merge branch 'master' into readonly_dashboards 2018-04-17 16:27:51 +02:00
guardian Refactor team pages to react & design change (#12574) 2018-07-11 11:23:07 -07:00
notifications move go vet out of scripts and fixing warning (#12552) 2018-07-09 23:25:32 -07:00
provisioning cleaning up test data 2018-08-17 15:00:37 +02:00
quota move quota to dedicated service 2018-03-07 17:19:35 -05:00
rendering improve remote image rendering (#13102) 2018-09-04 13:42:55 +02:00
search Enable Grafana extensions at build time. (#11752) 2018-04-27 13:41:58 +02:00
session Merge remote-tracking branch 'upstream/master' into update-xorm 2018-03-20 19:21:58 +01:00
sqlstore change/add tests for alerting notification reminders 2018-08-24 19:09:19 +02:00