Clarify promtail troubleshooting around positions (#351)

pull/360/head
David 7 years ago committed by Tom Wilkie
parent e6192a6908
commit d8c22bf212
  1. 8
      docs/troubleshooting.md

@ -6,10 +6,10 @@ This error can appear in Grafana when you add Loki as a datasource.
It means that Grafana can connect to Loki, but Loki has not received any logs from promtail. It means that Grafana can connect to Loki, but Loki has not received any logs from promtail.
This can have several reasons: This can have several reasons:
- Promtail cannot reach Loki, check promtails output. - Promtail cannot reach Loki, check promtail's output.
- Promtail started sending logs before Loki was ready. This can happen in test environments where promtail already read all logs and sent them off. You have two options: - Promtail started sending logs before Loki was ready. This can happen in test environments where promtail already read all logs and sent them off. Here is what you can do:
- Start promtail later, e.g., 60 seconds - Generally start promtail after Loki, e.g., 60 seconds later.
- Make sure new log messages are written after both promtail and Loki have started - Restarting promtail will not necessarily resend log messages that have been read. To force sending all messages again, delete the positions file (default location `/tmp/positions.yaml`) or make sure new log messages are written after both promtail and Loki have started.
## Failed to create target, "ioutil.ReadDir: readdirent: not a directory" ## Failed to create target, "ioutil.ReadDir: readdirent: not a directory"

Loading…
Cancel
Save