Hi, Flyte Team! I wonder flyte support Grafana Lo...
# ask-the-community
s
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
Also please consider contributing
f
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
Cc @Haytham Abuelfutuh / @Andrew Dye
242 Views