serving-operator icon indicating copy to clipboard operation
serving-operator copied to clipboard

Automatically set logUrl template when openshfit-logging is installed.

Open wtam2018 opened this issue 6 years ago • 1 comments

Serving API exposes logUrl in Revision's Status. logUrl can launch visualization app to render logs specific to a Revision. However, logging.revision-url-template must be updated in config-observability (kubectl edit cm config-observability -n knative-serving) before the URL is usable An un-usable URL is shown below.

`host serving-operator]$ k get revision helloworld-8xpcn -n default -o jsonpath='{.status.logUrl}'

http://localhost:8001/api/v1/namespaces/knative-monitoring/services/kibana-logging/proxy/app/kibana#/discover?_a=(query:(match:(kubernetes.labels.knative-dev%2FrevisionUID:(query:'8e104620-b6b6-11e9-bf4f-0aae0e47085c',ty`

When openshift-logging is installed. Kibana hostname is available in openshift route. We should use the host info available and update logURL automatically to improve user experience.

wtam2018 avatar Aug 04 '19 13:08 wtam2018

/assign

wtam2018 avatar Aug 04 '19 13:08 wtam2018