Skip to content

Commit

Permalink
Adds loki helm install examples
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Blumentritt <[email protected]>
  • Loading branch information
cblument committed Mar 7, 2024
1 parent 46727dc commit 02ad674
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
27 changes: 27 additions & 0 deletions helm-configs/loki/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Setting up Loki

## Add the grafana helm repo
```bash
helm repo add grafana https://grafana.github.io/helm-charts
helm repo update
```

## Install the helm chart

You will need to make changes depending on how you want to configure loki. Example files are included in this directory choose one relevant to your deploy

```bash
helm upgrade --install --values my-loki-helm-overrides.yaml loki grafana/loki --create-namespace --namespace grafana
```

### Swift notes

If you plan on using swift as a backend for log storage see the [loki-helm-swift-overrides-example.yaml](loki-helm-swift-overrides-example.yaml)

### S3 notes

If you plan on using s3 as a backend for log storage see the [loki-helm-s3-overrides-example.yaml](loki-helm-s3-overrides-example.yaml)

### minio notes

If you plan on using minio as a backend for log storage see the [loki-helm-minio-overrides-example.yaml](loki-helm-minio-overrides-example.yaml)
6 changes: 6 additions & 0 deletions helm-configs/loki/loki-helm-minio-overrides-example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
global:
dnsService: "coredns"
minio:
enabled: true
loki:
auth_enabled: false
19 changes: 19 additions & 0 deletions helm-configs/loki/loki-helm-s3-overrides-example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
global:
dnsService: "coredns"
minio:
enabled: false
loki:
auth_enabled: false
storage:
bucketNames:
chunks: < CHUNKS BUCKET NAME > # TODO: Update with relevant bucket name for chunks
ruler: < RULER BUCKET NAME > # TODO: Update with relevant bucket name for ruler
admin: < ADMIN BUCKET NAME > # TODO: Update with relevant bucket name for admin
type: s3
s3:
endpoint: < ENDPOINT URL > # TODO: Update with valid enpoint URL
region: < REGION > # TODO: Update with valid region
secretAccessKey: < SECRET ACCESS KEY > # TODO: Update with valid secret access key
accessKeyId: < ACCESS KEY ID > # TODO: Update with access key id
s3ForcePathStyle: false
insecure: [ true | false ] # TODO: True if valid cert or false if not
18 changes: 18 additions & 0 deletions helm-configs/loki/loki-helm-swift-overrides-example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
global:
dnsService: "coredns"
minio:
enabled: false
loki:
auth_enabled: false
storage:
bucketNames:
chunks: chunks
ruler: ruler
admin: admin
type: swift
swift:
auth_url: https://identity.api.rackspacecloud.com/v1.0
username: < USERNAME > # TODO: Update with valid username
password: < PASSWORD > # TODO: Update with valid password
container_name: < CONTAINER > # TODO: Update with valid container
region_name: < REGION > # TODO: Update with valid region

0 comments on commit 02ad674

Please sign in to comment.