rotate prometheus query log in Kubernetes

9 views
Skip to first unread message

Khusro Jaleel

unread,
Mar 16, 2020, 11:08:49 AM3/16/20
to Prometheus Users
Hello, the docs mention that the new query log isn't automatically rotated and I should use something like logrotate to do it, but how do I do that if I'm running it in a Kubernetes pod and there's a PVC attached? I can't run logrotate in that scenario?

Additionally, I've just tried it and when I use the Thanos Querier to query my Prometheus sidecar, the queries are NOT appearing in the 'query.log' file at all? If I use the Prometheus web UI directly, that's the only time I see the queries appear in the log file. Is this how it's meant to work perhaps?

Reply all
Reply to author
Forward
0 new messages