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

SeungTaeKim

01/20/2023, 6:31 AM
Hi, Flyte Team! I wonder flyte support Grafana Logging with Loki in Flyte console. My team currently is using Kibana (EFK), but we consider it to replace Loki.
ah, I think I can setup loki by following logging configuration docs. https://docs.flyte.org/projects/cookbook/en/stable/auto/deployment/configure_logging_links.html
k

Ketan (kumare3)

01/20/2023, 7:15 AM
Also please consider contributing
f

Felix Ruess

01/20/2023, 8:04 AM
I post the config I use for Grafana/Loki later
If you are using Grafana Cloud, in the helm values:
Copy code
task_logs:
    plugins:
      logs:
        templates:
          - displayName: Grafana Loki
            templateUris:
              - '<https://your.grafana.net/explore?left={>"datasource":"grafanacloud-logs","queries":[{"refId":"A","datasource":{"type":"loki","uid":"grafanacloud-logs"},"editorMode":"builder","expr":"{namespace%3D\"{{ "{{" }} .namespace {{ "}}" }}\", pod%3D\"{{ "{{" }} .podName {{ "}}" }}\"} |%3D ``","queryType":"range"}],"range":{"from":"{{ "{{" }} .podUnixStartTime {{ "}}" }}000","to":"now"}}'
If you use your own grafana loki instance, adjust URL and datasource as needed. And don't omit the
000
as grafana expects the timestamp in ms
k

Ketan (kumare3)

01/20/2023, 2:57 PM
Cc @Haytham Abuelfutuh / @Andrew Dye
87 Views