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(elk): add elk-based observability tools stack (kibana + vector) #800

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
6 changes: 6 additions & 0 deletions commands/env.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ fi
[[ ${WARDEN_MAGEPACK} -eq 1 ]] \
&& appendEnvPartialIfExists "${WARDEN_ENV_TYPE}.magepack"

if [[ ${WARDEN_ELK} -eq 1 ]]; then
appendEnvPartialIfExists "kibana"
appendEnvPartialIfExists "vector"
appendEnvPartialIfExists "${WARDEN_ENV_TYPE}.vector"
fi

if [[ -f "${WARDEN_ENV_PATH}/.warden/warden-env.yml" ]]; then
DOCKER_COMPOSE_ARGS+=("-f")
DOCKER_COMPOSE_ARGS+=("${WARDEN_ENV_PATH}/.warden/warden-env.yml")
Expand Down
14 changes: 14 additions & 0 deletions environments/includes/kibana.base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
kibana:
hostname: "${WARDEN_ENV_NAME}-kibana"
image: docker.elastic.co/kibana/kibana:${ELK_VERSION:-${ELASTICSEARCH_VERSION:-7.17.24}}
labels:
- traefik.enable=true
- traefik.http.routers.${WARDEN_ENV_NAME}-kibana.tls=true
- traefik.http.routers.${WARDEN_ENV_NAME}-kibana.rule=HostRegexp(`kibana.${TRAEFIK_DOMAIN}`)
- traefik.http.services.${WARDEN_ENV_NAME}-kibana.loadbalancer.server.port=5601
- traefik.docker.network=${WARDEN_ENV_NAME}_default
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
depends_on:
- elasticsearch
10 changes: 10 additions & 0 deletions environments/includes/vector.base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
services:
vector:
image: wardenenv/vector:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
WARDEN_ENV_NAME: ${WARDEN_ENV_NAME}
VECTOR_CONFIG: /etc/vector/vector.yaml
depends_on:
- elasticsearch
1 change: 1 addition & 0 deletions environments/magento2/init.env
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ WARDEN_SPLIT_SALES=0
WARDEN_SPLIT_CHECKOUT=0
WARDEN_TEST_DB=0
WARDEN_MAGEPACK=0
WARDEN_ELK=0

MAGEPACK_VERSION=2.11

Expand Down