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

Use compose to start the monitoring stack #2123

Merged
merged 3 commits into from
Dec 13, 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
77 changes: 77 additions & 0 deletions docker-compose.template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
services:
alertmanager:
container_name: aalert
image: "prom/alertmanager:${ALERT_MANAGER_VERSION}"
#GENERAL_DOCER_CONFIG
ports:
- ${BIND_ADDRESS}${ALERTMANAGER_PORT}:9093
volumes:
- ${ALERT_MANAGER_RULE_CONFIG}:/etc/alertmanager/config.yml
#ALERT_MANAGER_DIR
#ALERTMANAGER_COMMAND
grafana:
container_name: agraf
environment:
- GF_PANELS_DISABLE_SANITIZE_HTML=true
- GF_PATHS_PROVISIONING=/var/lib/grafana/provisioning
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=scylladb-scylla-datasource
- GF_AUTH_BASIC_ENABLED=${GF_AUTH_BASIC_ENABLED}
- GF_AUTH_ANONYMOUS_ENABLED=${GF_AUTH_ANONYMOUS_ENABLED}
- GF_AUTH_ANONYMOUS_ORG_ROLE=${GF_AUTH_ANONYMOUS_ORG_ROLE}
- GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD}
- GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=/var/lib/grafana/dashboards/ver_${SCYLLA_VERSION}/scylla-overview.${SCYLLA_VERSION}.json
#GRAFANA_ENV
#GENERAL_DOCER_CONFIG
image: grafana/grafana:${GRAFANA_VERSION}
ports:
- ${BIND_ADDRESS}${GRAFANA_PORT}:3000
user: 1000:1000
volumes:
- ./grafana/build:/var/lib/grafana/dashboards
- ./grafana/plugins:/var/lib/grafana/plugins
- ./grafana/provisioning:/var/lib/grafana/provisioning
#GRAFANA_VOLUMES
# - path/to/grafana/dir:/var/lib/grafana
loki:
command:
- --config.file=/mnt/config/loki-config.yaml
container_name: loki
image: grafana/loki:${LOKI_VERSION}
#GENERAL_DOCER_CONFIG
#LOKi_USER_PERMISSIONS
ports:
- ${BIND_ADDRESS}${LOKI_PORT}:3100
volumes:
- ${LOKI_RULE_DIR}:/etc/loki/rules/fake:z
- ${LOKI_CONF_DIR}:/mnt/config:z
- ${LOKI_WALL_DIR}:/wal:z
#LOKI_DIR
promotheus:
#PROMETHEUS_COMMAND_LINE
#GENERAL_DOCER_CONFIG
#PROMETHEUS_USER_PERMISSIONS
container_name: aprom
image: prom/prometheus:${PROMETHEUS_VERSION}
ports:
- ${BIND_ADDRESS}${PROMETHEUS_PORT}:9090
volumes:
- ./prometheus/build/prometheus.yml:/etc/prometheus/prometheus.yml
- ${SCYLLA_TARGET_FILE}
- ${PROMETHEUS_RULES}
- ${SCYLLA_MANGER_TARGET_FILE}
- ${NODE_TARGET_FILE}
- ${SCYLLA_MANGER_AGENT_TARGET_FILE}
#PROMETHEUS_VOLUMES
# - path/to/data/dir:/prometheus/data
promtail:
command:
- --config.file=/etc/promtail/config.yml
container_name: promtail
#GENERAL_DOCER_CONFIG
image: grafana/promtail:${LOKI_VERSION}
ports:
- ${BIND_ADDRESS}1514:1514
- ${BIND_ADDRESS}9080:9080
volumes:
- ./loki/promtail/promtail_config.compose.yml:/etc/promtail/config.yml
version: '3'
2 changes: 2 additions & 0 deletions docs/source/install/start-all.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ You cannot use port mapping when using the ``-l`` flag

**--auto-restart** When set, Docker will automatically restart all the services inside the containers in case of a failure.

**--compose** This is an experimental option. When set, it initiates a two-stage process. Firstly, a ``docker-compose.yml`` file is created along with an ``.env`` file. Following this, the script executes ``docker-compose up``. Please note that having docker-compose is a prerequisite.

Grafana Related Commands
------------------------

Expand Down
Loading