Skip to content
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

Merged
merged 2 commits into from
Jan 4, 2021
Merged

Documentation fix for downstream_url #3109

merged 2 commits into from
Jan 4, 2021

Conversation

n-saw
Copy link

@n-saw n-saw commented Jan 3, 2021

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

  • Documentation added
  • Tests updated

@codecov-io
Copy link

Codecov Report

Merging #3109 (fd919b6) into master (5847419) will increase coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
pkg/ingester/checkpoint.go 68.28% <0.00%> (+0.88%) ⬆️
pkg/promtail/targets/file/filetarget.go 66.43% <0.00%> (+2.09%) ⬆️
pkg/querier/queryrange/downstreamer.go 97.64% <0.00%> (+2.35%) ⬆️

Copy link
Contributor

@sandeepsukhani sandeepsukhani left a 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
Copy link
Contributor

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.

Copy link
Author

@n-saw n-saw Jan 4, 2021

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

Copy link
Member

@owen-d owen-d left a 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants