Skip to content

Commit

Permalink
Update troubleshooting doc
Browse files Browse the repository at this point in the history
Signed-off-by: Xiang Dai <764524258@qq.com>
  • Loading branch information
daixiang0 committed Apr 16, 2019
1 parent 1f1706f commit 18b640f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Troubleshooting

## "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:

- 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 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".

## "Data source connected, but no labels received. Verify that Loki and Promtail is configured properly."

This error can appear in Grafana when you add Loki as a datasource.
Expand Down

0 comments on commit 18b640f

Please sign in to comment.