pydantic / logfire

Uncomplicated Observability for Python and beyond! 🪵🔥
https://logfire.pydantic.dev/docs/
MIT License
2.19k stars 65 forks source link

Docker logs / Kubernetes logs #544

Open vitalik opened 3 weeks ago

vitalik commented 3 weeks ago

Question

Is there a simple way to hook collect all logs from docker (or kubernetes) and send to logfire ?

Kludex commented 3 weeks ago

For docker, I guess you'd like to read this: https://docs.docker.com/engine/cli/otel/, and point to https://logfire-api.pydantic.dev.

For K8s, I think this is what makes sense: https://opentelemetry.io/docs/kubernetes/getting-started/#kubernetes-objects-receiver, and you need to set the exporter to https://logfire-api.pydantic.dev.

You can also read Alternative Clients section on our docs.

Kludex commented 3 weeks ago

Should we document this? 🤔

alexmojaki commented 3 weeks ago

A section in the alternative clients docs sounds sensible to me.