https://flyte.org logo
#ask-the-community
Title
# ask-the-community
v

Victor Churikov

08/30/2023, 11:21 AM
Can I customize the “logs” link under each task in the graph in flyte console? Currently I know there’s support for k8s dashboards, amazon’s cloudwatch, and google’s stackdriver. I have an alternative solution set up which is superior to google stackdriver in many ways and I can get the logs for each pod by passing a query param to a URL, for example:
Copy code
<https://app.groundcover.com/logs?start=&end=&duration=Last+48+hours&clusterId=sbox-flyte&freeText=&selectedLogId=&fullVisibility=false&pod=flytehelperspipelinegenericwor-67b2f10c-n4-0>
…where
&pod=flytehelperspipelinegenericwor-67b2f10c-n4-0
is the addition containing the task pod’s name, everything else can be hard-coded per installation of Flyte. Can this be configured somehow? Using flyte-core helm installation on GKE
r

Rahul Mehta

08/30/2023, 12:37 PM
You can update it in the chart here: https://github.com/flyteorg/flyte/blob/911b48c921998cefa56b0a83f8e71c9a2cfddffa/charts/flyte-core/values.yaml#L786-L791 (the
task_logs
section). We have it set up for Grafana and our logging system. Note that there may be some weirdness with escaping
The linked example in the values.yaml should show you how to pass the pod name as a query parameter:
Copy code
{{ "{{" }} .podName {{ "}}" }}
v

Victor Churikov

08/30/2023, 3:33 PM
Thanks a lot, it works well
Copy code
task_logs:
    plugins:
      logs:
        kubernetes-enabled: true
        cloudwatch-enabled: false
        stackdriver-enabled: false
        kubernetes-template-uri: <https://app.groundcover.com/logs?start=&end=&duration=Last+48+hours&clusterId=><cluster_id>&freeText=&selectedLogId=&fullVisibility=false&pod={{ "{{" }} .podName {{ "}}" }}
      k8s-array:
        logs:
          config:
            kubernetes-enabled: true
            cloudwatch-enabled: false
            stackdriver-enabled: false
            kubernetes-template-uri: <https://app.groundcover.com/logs?start=&end=&duration=Last+48+hours&clusterId=><cluster_id>&freeText=&selectedLogId=&fullVisibility=false&pod={{ "{{" }} .podName {{ "}}" }}
12 Views