Skip to content

Commit

Permalink
chore: Update docs, dockerfiles to use latest versions of promtail&lo…
Browse files Browse the repository at this point in the history
…ki (#14728)
  • Loading branch information
paul1r authored Nov 1, 2024
1 parent 0167b22 commit 2f41584
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 37 deletions.
1 change: 0 additions & 1 deletion clients/cmd/fluentd/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
loki:
build:
Expand Down
4 changes: 2 additions & 2 deletions docs/sources/send-data/promtail/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ See the instructions [here](https://grafana.com/docs/loki/<LOKI_VERSION>/setup/i
1. Make sure to modify the tag to the most recent version.

```bash
docker pull grafana/promtail:3.0.0
docker pull grafana/promtail:3.2.1
```

1. Create your Promtail configuration file in a file called `promtail-config.yaml`. Refer to the [Promtail configuration reference](https://grafana.com/docs/loki/<LOKI_VERSION>/send-data/promtail/configuration/) for more details.

1. Note that you will need to replace `<local-path>` in the commands with your local path.

```bash
docker run -v <local-path>:/mnt/config -v /var/log:/var/log --link loki grafana/promtail:3.0.0 --config.file=/mnt/config/promtail-config.yaml
docker run -v <local-path>:/mnt/config -v /var/log:/var/log --link loki grafana/promtail:3.2.1 --config.file=/mnt/config/promtail-config.yaml
```

## Install on MacOS with Homebrew
Expand Down
12 changes: 6 additions & 6 deletions docs/sources/setup/install/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ The configuration files associated with these installation instructions run Loki
1. Copy and paste the following commands into your command line to start the Docker containers using the configuration files you downloaded in the previous step.

```bash
docker run --name loki -d -v $(pwd):/mnt/config -p 3100:3100 grafana/loki:3.0.0 -config.file=/mnt/config/loki-config.yaml
docker run --name promtail -d -v $(pwd):/mnt/config -v /var/log:/var/log --link loki grafana/promtail:3.0.0 -config.file=/mnt/config/promtail-config.yaml
docker run --name loki -d -v $(pwd):/mnt/config -p 3100:3100 grafana/loki:3.2.1 -config.file=/mnt/config/loki-config.yaml
docker run --name promtail -d -v $(pwd):/mnt/config -v /var/log:/var/log --link loki grafana/promtail:3.2.1 -config.file=/mnt/config/promtail-config.yaml
```

{{< admonition type="note" >}}
Expand All @@ -56,8 +56,8 @@ The configuration files associated with these installation instructions run Loki
```bash
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9485de9ad351 grafana/promtail:3.0.0 "/usr/bin/promtail -…" About a minute ago Up About a minute promtail
cece1df84519 grafana/loki:3.0.0 "/usr/bin/loki -conf…" About a minute ago Up About a minute 0.0.0.0:3100->3100/tcp, :::3100->3100/tcp loki
9485de9ad351 grafana/promtail:3.2.1 "/usr/bin/promtail -…" About a minute ago Up About a minute promtail
cece1df84519 grafana/loki:3.2.1 "/usr/bin/loki -conf…" About a minute ago Up About a minute 0.0.0.0:3100->3100/tcp, :::3100->3100/tcp loki
```

1. Verify that Loki is up and running.
Expand All @@ -78,8 +78,8 @@ wget https://raw.githubusercontent.com/grafana/loki/v3.0.0/clients/cmd/promtail/
1. Copy and paste the following commands into your command line to start the Docker containers using the configuration files you downloaded in the previous step. Note that you will need to replace the `<local-path>` in the commands with your local path.

```bash
docker run --name loki -v <local-path>:/mnt/config -p 3100:3100 grafana/loki:3.0.0 --config.file=/mnt/config/loki-config.yaml
docker run -v <local-path>:/mnt/config -v /var/log:/var/log --link loki grafana/promtail:3.0.0 --config.file=/mnt/config/promtail-config.yaml
docker run --name loki -v <local-path>:/mnt/config -p 3100:3100 grafana/loki:3.2.1 --config.file=/mnt/config/loki-config.yaml
docker run -v <local-path>:/mnt/config -v /var/log:/var/log --link loki grafana/promtail:3.2.1 --config.file=/mnt/config/promtail-config.yaml
```

1. Verify that Loki is up and running.
Expand Down
8 changes: 3 additions & 5 deletions examples/getting-started/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
---
version: "3"

networks:
loki:

services:
read:
image: grafana/loki:3.1.0
image: grafana/loki:latest
command: "-config.file=/etc/loki/config.yaml -target=read"
ports:
- 3101:3100
Expand All @@ -27,7 +25,7 @@ services:
- loki

write:
image: grafana/loki:3.1.0
image: grafana/loki:latest
command: "-config.file=/etc/loki/config.yaml -target=write"
ports:
- 3102:3100
Expand Down Expand Up @@ -121,7 +119,7 @@ services:
- loki

backend:
image: grafana/loki:3.1.0
image: grafana/loki:latest
volumes:
- ./loki-config.yaml:/etc/loki/config.yaml
ports:
Expand Down
6 changes: 2 additions & 4 deletions production/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
version: "3"

networks:
loki:

services:
loki:
image: grafana/loki:2.9.10
image: grafana/loki:latest
ports:
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml
networks:
- loki

promtail:
image: grafana/promtail:2.9.10
image: grafana/promtail:latest
volumes:
- /var/log:/var/log
command: -config.file=/etc/promtail/config.yml
Expand Down
8 changes: 3 additions & 5 deletions production/docker/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.8"

networks:
loki:

Expand All @@ -14,7 +12,7 @@ services:
# Loki would not have permissions to create the directories.
# Therefore the init container changes permissions of the mounted directory.
init:
image: &lokiImage grafana/loki:2.9.10
image: &lokiImage grafana/loki:latest
user: root
entrypoint:
- "chown"
Expand Down Expand Up @@ -71,7 +69,7 @@ services:
- ./loki/:/var/log/

promtail:
image: grafana/promtail:2.9.10
image: grafana/promtail:latest
volumes:
- ./loki/:/var/log/
- ./config:/etc/promtail/
Expand Down Expand Up @@ -104,7 +102,7 @@ services:
- loki

loki-gateway:
image: nginx:1.27
image: nginx:latest
volumes:
- ./config/nginx.conf:/etc/nginx/nginx.conf
ports:
Expand Down
1 change: 0 additions & 1 deletion tools/dev/loki-tsdb-storage-s3/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3.4'
services:
consul:
logging: &logging
Expand Down
1 change: 0 additions & 1 deletion tools/kafka/plain/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '2'
services:
zookeeper:
image: wurstmeister/zookeeper
Expand Down
5 changes: 2 additions & 3 deletions tools/kafka/sasl-plain/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '2'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
Expand All @@ -14,7 +13,7 @@ services:
- ./conf:/etc/kafka/secrets

kafka:
image: confluentinc/cp-kafka:6.2.15
image: confluentinc/cp-kafka:latest
depends_on:
- zookeeper
ports:
Expand All @@ -29,4 +28,4 @@ services:
KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/secrets/kafka.jaas.conf
volumes:
- ./conf:/etc/kafka/secrets
- /var/run/docker.sock:/var/run/docker.sock
- /var/run/docker.sock:/var/run/docker.sock
5 changes: 2 additions & 3 deletions tools/kafka/sasl-scram/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '2'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
Expand All @@ -14,7 +13,7 @@ services:
- ./conf:/etc/kafka/secrets

kafka:
image: confluentinc/cp-kafka:6.2.15
image: confluentinc/cp-kafka:latest
depends_on:
- zookeeper
ports:
Expand All @@ -29,4 +28,4 @@ services:
KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/secrets/kafka.jaas.conf
volumes:
- ./conf:/etc/kafka/secrets
- /var/run/docker.sock:/var/run/docker.sock
- /var/run/docker.sock:/var/run/docker.sock
5 changes: 2 additions & 3 deletions tools/kafka/sasl-ssl/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '2'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
Expand All @@ -14,7 +13,7 @@ services:
- ./conf:/etc/kafka/secrets

kafka:
image: confluentinc/cp-kafka:6.2.15
image: confluentinc/cp-kafka:latest
depends_on:
- zookeeper
ports:
Expand All @@ -36,4 +35,4 @@ services:
KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/jaas/kafka.jaas.conf
volumes:
- ../secrets:/etc/kafka/secrets
- ./conf:/etc/kafka/jaas
- ./conf:/etc/kafka/jaas
5 changes: 2 additions & 3 deletions tools/kafka/ssl/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '2'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
Expand All @@ -9,7 +8,7 @@ services:
ZOOKEEPER_CLIENT_PORT: 22181

kafka:
image: confluentinc/cp-kafka:6.2.15
image: confluentinc/cp-kafka:latest
depends_on:
- zookeeper
ports:
Expand All @@ -27,4 +26,4 @@ services:
KAFKA_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM: " "
KAFKA_SSL_CLIENT_AUTH: required
volumes:
- ../secrets:/etc/kafka/secrets
- ../secrets:/etc/kafka/secrets

0 comments on commit 2f41584

Please sign in to comment.