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

feat: add loki rock #48

Merged
merged 4 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions oci/loki/contacts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
notify:
emails:
- observability@lists.launchpad.net
mattermost-channels:
- 1ayd5kim67bbing34i3h1x9uac
50 changes: 50 additions & 0 deletions oci/loki/documentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
version: 1
# --- OVERVIEW INFORMATION ---
application: loki
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 ---
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:

```bash
docker logs -f loki-container
```

To get an interactive shell:

```bash
# For Dockerfile-based images
docker exec -it loki-container /bin/bash
# For ROCKs
docker exec -it loki-container exec /bin/bash
lucabello marked this conversation as resolved.
Show resolved Hide resolved
```
19 changes: 19 additions & 0 deletions oci/loki/image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 1

upload:
- source: canonical/loki-rock
commit: 240f23fd29b0c65d2692957564f947d5a74fe006
directory: 2.8.4
release:
2.8.4-22.04:
end-of-life: "2024-08-16T00:00:00Z"
risks:
- stable
2.8-22.04:
end-of-life: "2024-08-16T00:00:00Z"
risks:
- stable
2-22.04:
end-of-life: "2024-08-16T00:00:00Z"
risks:
- stable