Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Loki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Loki
Commits
18b640fa
Commit
18b640fa
authored
6 years ago
by
Xiang Dai
Browse files
Options
Downloads
Patches
Plain Diff
Update troubleshooting doc
Signed-off-by:
Xiang Dai
<
764524258@qq.com
>
parent
1f1706f4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/troubleshooting.md
+10
-0
10 additions, 0 deletions
docs/troubleshooting.md
with
10 additions
and
0 deletions
docs/troubleshooting.md
+
10
−
0
View file @
18b640fa
# 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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment