Skip to content

Commit

Permalink
Small edits
Browse files Browse the repository at this point in the history
  • Loading branch information
davkal committed Apr 17, 2019
1 parent ff60204 commit 36f5ebf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

## "Loki: Bad Gateway. 502"
This error can appear in Grafana when you add Loki as a datasource.
It means that Grafana cannot connect to Loki, but Loki has not received any logs from promtail.
This can have several reasons:
It means that Grafana cannot connect to Loki. This can have several reasons:

- If you deploy in docker env, Grafana and Loki are not in same node, check iptables or firewalls to ensure connected.
- If you deploy in docker env, Grafana and Loki are not in same node, check iptables or firewalls to ensure they can connect.
- If you deploy in kubernetes env, please note:
- Grafana and Loki are in same namespace, set Loki url as "http://$LOKI_SERVICE_NAME:$LOKI_PORT".
- Grafana and Loki are in different namespace, set Loki url as "http://$LOKI_SERVICE_NAME.$LOKI_NAMESPACE:$LOKI_PORT".
Expand All @@ -24,7 +23,8 @@ This can have several reasons:
- Detect this by turning on debug logging and then look for `dropping target, no labels` or `ignoring target` messages.
- Promtail cannot find the location of your log files. Check that the scrape_configs contains valid path setting for finding the logs in your worker nodes.
- Your pods are running but not with the labels Promtail is expecting. Check the Promtail scape_configs.
- Now default scape_configs not work for original kubernetes 1.14+ and GKE 1.12+, if you use matched version, need update scape_config from
- Kubernetes 1.14+ and GKE 1.12+: the default scape_configs need to be adapted to work.
From
```
- replacement: /var/log/pods/$1/*.log
separator: /
Expand Down

0 comments on commit 36f5ebf

Please sign in to comment.