-
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
Documentation fix for downstream_url #3109
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3109 +/- ##
==========================================
+ Coverage 62.80% 62.85% +0.04%
==========================================
Files 186 186
Lines 15949 15949
==========================================
+ Hits 10017 10024 +7
+ Misses 5002 4997 -5
+ Partials 930 928 -2
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just added a small comment. It LGTM.
Thanks for the PR!
@@ -60,7 +60,7 @@ data: | |||
|
|||
frontend: | |||
log_queries_longer_than: 5s | |||
downstream_url: querier.<namespace>.svc.cluster.local:3100 | |||
downstream_url: http://querier.<namespace>.svc.cluster.local:3100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not that its a problem setting a scheme explicitly here but I wonder if you are facing any issue without setting the it. We do not face any issue when it is not set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I just tested it. Without http://, it gives the following error regarding unsupported protocol scheme
level=warn ts=2021-01-04T14:37:38.35781553Z caller=logging.go:62 traceID=8c074c80cfcc1a msg="GET /ready (500) 156.572µs Response: \"unsupported protocol scheme \\\"loki.service.dc.consul\\\"\\n\"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for this!
What this PR does / why we need it:
Documentation of downstream_url is outdated as it references Prometheus instead of Loki, this PR updates it. downstream_url needs to contain the protocol (http://) where-in the example incorrectly mentions only the hostname and port; which is fixed in this PR.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Checklist