-
Notifications
You must be signed in to change notification settings - Fork 49
docs: update to v2 loki #915
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
155c588
docs: update to v2 loki
asanvaq 0afcdd9
docs: update docs
asanvaq 2a251e8
docs: apply suggestions from code review
alesancor1 540f9fd
feat: legacy
sinapah 9b8970d
Merge pull request #1 from sinapah/feat/loki-legacy
asanvaq a382730
docs: apply suggestions from code review
alesancor1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,50 +1,50 @@ | ||
| version: 1 | ||
| # --- OVERVIEW INFORMATION --- | ||
| version: 2 | ||
|
|
||
| application: loki | ||
| description: > | ||
| description: | | ||
| Loki is a horizontally scalable, highly available, multi-tenant log | ||
| aggregation system inspired by Prometheus. It is designed to be very cost | ||
| effective and easy to operate. It does not index the contents of the logs, | ||
| but rather a set of labels for each log stream. | ||
| Read more on the [official website](https://grafana.com/oss/loki/). | ||
|
|
||
| Please note that the images tagged up to 2.4 are Dockerfile-base images, | ||
| whereas from version 2.8.4 onward the images are now rocks. As such the | ||
| entrypoint is now Pebble. Read more on the | ||
| [Rockcraft docs](https://canonical-rockcraft.readthedocs-hosted.com/en/latest/explanation/rocks/). | ||
| # --- USAGE INFORMATION --- | ||
| website: https://grafana.com/oss/loki/ | ||
| issues: https://github.com/canonical/loki-rock/issues | ||
| source-code: https://github.com/canonical/loki-rock | ||
|
|
||
| docker: | ||
| parameters: | ||
| - -p 3100:3100 | ||
| access: Access your Loki instance at `http://localhost:3100`. | ||
| parameters: | ||
| - type: -e | ||
| value: 'TZ=UTC' | ||
| description: Timezone. | ||
| - type: -p | ||
| value: '3100:3100' | ||
| description: Expose Loki on `localhost:3100`. | ||
| - type: -v | ||
| value: "/path/to/config/file:/etc/loki/local-config.yaml" | ||
| description: Local configuration file `local-config.yml`. | ||
| - type: -v | ||
| value: "lokidata:/loki" | ||
| description: "Persist data in a docker volume named `lokidata`" | ||
| debug: | ||
| text: | | ||
| ### Debugging | ||
|
|
||
| To debug the container: | ||
| parameters: >- | ||
| -e TZ=UTC | ||
| -p 3100:3100 | ||
| -v /path/to/config/file:/etc/loki/local-config.yaml | ||
| -v lokidata:/loki | ||
| run_conclusion: | | ||
| Access the Loki instance at http://localhost:3100. | ||
| legacy: | ||
| parameters: >- | ||
| -e TZ=UTC | ||
| -p 3100:3100 | ||
| -v /path/to/config/file:/etc/loki/loki.yaml | ||
| -v lokidata:/loki | ||
| run_conclusion: | | ||
| Access the legacy Loki instance at http://localhost:3100. | ||
|
|
||
| ```bash | ||
| docker logs -f loki-container | ||
| ``` | ||
| Legacy tags up to 2.4 are Dockerfile-based images. To open an | ||
| interactive shell in one of these containers, use: | ||
|
|
||
| To get an interactive shell: | ||
| ```bash | ||
| docker exec -it loki-container /bin/bash | ||
| ``` | ||
|
|
||
| ```bash | ||
| # For Dockerfile-based images | ||
| docker exec -it loki-container /bin/bash | ||
| # For rocks | ||
| docker exec -it loki-container exec /bin/bash | ||
| ``` | ||
| config: | ||
| TZ: | ||
| type: env | ||
| description: Timezone. | ||
| default: 'UTC' | ||
| '`-v <path>:/etc/loki/local-config.yaml`': | ||
| type: mount | ||
| description: Local configuration file. | ||
| '`-v <path>:/loki`': | ||
| type: mount | ||
| description: Persist data in a docker volume named lokidata. | ||
| '`-p <port>:3100`': | ||
| type: port | ||
| description: Expose the container's port `3100` on the host's `<port>`. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.