-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to find any logs to tail makes pods unhelthy #808
Comments
That's expected. You need to fix your scrape config to be able to scrape at least one pod. At minimum, it should be able to scrape itself. |
@steven-sheehy what if I don't want to scrape logs from all the pods in the cluster and scrape only pods of selected apps (which can be deployed only on some nodes, not all)? Seems like such a usecase is missed now. I think it can be solved by passing some flag like |
+1 |
@alikhil https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config |
@geekodour thank you! Could you tell me what is mean to be |
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
Do not stale |
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
hello it is that been solved? |
I have the same problem, how can I solve it?
I found entering the pod for observation, |
Generally we would suggest at least tailing the promtail log to avoid this issue. If you don't want to do this I suggest just removing the readiness probe entirely. |
For anyone who was following this ticket #1920 introduced a flag to essentially always make the /ready endpoint return 200 |
@slim-bean In my case docker log driver was set as journald and i changed it to |
Following @slim-bean suggestions, I got it working with the following configuration:
|
Describe the bug
Promtail respond with
500 Not ready: Unable to find any logs to tail. Please verify permissions, volumes, scrape_config, etc.
if there are no logs to scrape which match scrape condition.To Reproduce
Steps to reproduce the behavior:
Expected behavior
All pods in all existing minion nodes will be up and running.
Environment:
Screenshots, promtail config, or terminal output
Logs from failing pod:
Logs from running pod:
The text was updated successfully, but these errors were encountered: