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

Document the common config section #4485

Merged
merged 2 commits into from
Oct 25, 2021

Conversation

DylanGuedes
Copy link
Contributor

@DylanGuedes DylanGuedes commented Oct 15, 2021

What this PR does / why we need it:

  • Documents the common Loki config section.
  • Adds a bunch of missing periods (from same config section)

Which issue(s) this PR fixes:
Fixes #4412

Special notes for your reviewer:
PR #4473 will introduce the object_storage subsection to common. path_prefix already exists (although it isn't documented yet)

Checklist

  • Documentation added
  • Tests updated

@DylanGuedes DylanGuedes changed the title WIP: Document the common config section Document the common config section Oct 25, 2021
@DylanGuedes DylanGuedes marked this pull request as ready for review October 25, 2021 13:24
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cyriltovena
Copy link
Contributor

@slim-bean can you double check ? seems good to me.

@DylanGuedes
Copy link
Contributor Author

(adding Trevor as a reviewer since he wrote the common storage config)

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.

corrected a few doc references

docs/sources/configuration/_index.md Outdated Show resolved Hide resolved
docs/sources/configuration/_index.md Outdated Show resolved Hide resolved
Fix subsection reference from `filesystem_storage_config` to `local_storage_config`

Co-authored-by: Owen Diehl <ow.diehl@gmail.com>
@owen-d owen-d merged commit e0b4e25 into grafana:main Oct 25, 2021
@pgassmann
Copy link
Contributor

the documentation for the common_config section is not clear to me.

path_prefix: the description sounds like it is an url prefix, but from the examples it looks like it is the filesystem path.

storage/filesystem/chunks_directory and rules_directory is present in the 2.4 release notes examples, but not documented.

@DylanGuedes
Copy link
Contributor Author

the documentation for the common_config section is not clear to me.

path_prefix: the description sounds like it is an url prefix, but from the examples it looks like it is the filesystem path.

My bad, you're totally right - the current description is misleading, the path_prefix as you said is actually used to mount filesystem paths to read files from.

storage/filesystem/chunks_directory and rules_directory is present in the 2.4 release notes examples, but not documented.

Actually, these two options were added after this PR, so it makes sense to not cover them at this same PR.

I'll create an issue regarding these two problems that you mentioned. Thank you for reporting them!

# A common storage config to be used by the different Loki components.
[storage: <common_storage_config>]

# When defined, the given prefix will be present in front of the endpoint paths.
Copy link
Contributor

@darxriggs darxriggs Mar 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentence is misleading. This path_prefix can be about internal directories for local storage and about URLs for remote storage - right?

See config_wrapper.go here and examples like loki-local-config.yaml here and simple-scalable/loki-config.yaml here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is wrong, I created this issue after this PR got merged.

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.

Document the Common Config
5 participants