linkerd2/web/srv
Jack Gill 6c3da0279d
Add dashboard support for externally hosted Grafana (#7596)
Fixes #7429

Currently Linkerd assumes that the Grafana instance is hosted
on-cluster. Some users would like to use externally hosted Grafana
instances, such as Grafana Cloud or AWS Managed Grafana.

In general users will have multiple Linkerd clusters with dashboards
in the same Grafana workspace, so we need to introduce a prefix for the
Grafana dashboard UID's so that they remain unique. 

This PR adds two new viz config values, `grafana.uidPrefix` and
`grafana.externalUrl`.
When grafana.uidPrefix is set, it will insert the user-supplied prefix
in the URL's for the Grafana dashboards. When grafana.externalUrl is
set, its value will be used for the links to Grafana dashboards instead
of using the grafana reverse proxy.

Signed-off-by: Jack Gill <jack.gill@elationhealth.com>
2022-01-19 19:00:24 +05:30
..
testdata Versioned `linkerd check` hint URLs (#6102) 2021-05-10 13:21:15 -05:00
api_handlers.go smi: remove default functionality in linkerd (#7334) 2021-12-03 12:07:30 +05:30
api_handlers_test.go `linkerd check`: handle warnings and remove extra newlines (#7379) 2021-12-01 17:14:06 -07:00
handlers.go Add dashboard support for externally hosted Grafana (#7596) 2022-01-19 19:00:24 +05:30
handlers_test.go Removed `Version` API from the public-api (#6000) 2021-04-16 11:23:55 -05:00
reverse_proxy.go Add Jaeger links to the Linkerd dashboard (#4177) 2020-05-07 16:35:56 -05:00
server.go Add dashboard support for externally hosted Grafana (#7596) 2022-01-19 19:00:24 +05:30
test_helpers.go Enable lint check for comments (#2023) 2019-01-02 14:03:59 -08:00