-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
78 lines (76 loc) · 3.34 KB
/
docker-compose.yaml
File metadata and controls
78 lines (76 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: 'metrics-drilldown'
services:
grafana-gmd:
container_name: 'grafana-gmd'
extends:
file: .config/docker-compose-base.yaml
service: grafana
build:
args:
grafana_image: ${GRAFANA_IMAGE:-grafana-enterprise}
grafana_version: ${GRAFANA_VERSION:-12.4.0}
ports: !override
- '${GRAFANA_PORT:-3001}:3000'
environment:
GF_SERVER_ROOT_URL: 'http://localhost:${GRAFANA_PORT:-3001}'
GF_FEATURE_TOGGLES_ENABLE: exploreMetricsUseExternalAppPlugin,localizationForPlugins${GF_FEATURE_TOGGLES_ENABLE:+,${GF_FEATURE_TOGGLES_ENABLE}}
# prevents a Grafana startup error in case a newer plugin version (set in package.json) is used compared to the latest one published in the catalog
GF_PLUGINS_PREINSTALL_DISABLED: true
volumes:
- ./provisioning/dashboards/dashboardJson:/etc/dashboards
- ${LOGS_DRILLDOWN_DIST:-../logs-drilldown/dist}:/var/lib/grafana/plugins/grafana-lokiexplore-app
extra_hosts:
# This allows us to connect to other services running on the host machine.
# Linux CI: Uses 172.17.0.1 (default)
# macOS/Windows local dev: Override with DOCKER_HOST_IP=host-gateway in .env file
- 'host.docker.internal:${DOCKER_HOST_IP:-172.17.0.1}'
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/api/health']
interval: 1s
timeout: 1s
retries: 30
start_period: 15s
grafana-scopes-gmd:
container_name: 'grafana-scopes-gmd'
extends:
service: grafana-gmd
ports: !override
- '${GRAFANA_SCOPES_PORT:-3002}:3000'
environment:
GF_SERVER_ROOT_URL: 'http://localhost:${GRAFANA_SCOPES_PORT:-3002}'
GF_FEATURE_TOGGLES_ENABLE: exploreMetricsUseExternalAppPlugin,grafanaAPIServer,grafanaAPIServerWithExperimentalAPIs,scopeFilters,promQLScope,enableScopesInMetricsExplore,localizationForPlugins${GF_FEATURE_TOGGLES_ENABLE:+,${GF_FEATURE_TOGGLES_ENABLE}}
extra_hosts:
# This allows us to connect to other services running on the host machine.
# Linux CI: Uses 172.17.0.1 (default)
# macOS/Windows local dev: Override with DOCKER_HOST_IP=host-gateway in .env file
- 'host.docker.internal:${DOCKER_HOST_IP:-172.17.0.1}'
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/api/health']
# Longer intervals and start_period to accommodate experimental feature flags
# which require additional initialization time on slower CI infrastructure
interval: 2s
timeout: 2s
retries: 30
start_period: 30s
prometheus-gmd:
container_name: 'prometheus-gmd'
build:
dockerfile: ./e2e/docker/Dockerfile.prometheus-static-data
context: .
ports:
- '9099:9090'
command: >
--enable-feature=remote-write-receiver
--enable-feature=exemplar-storage
--enable-feature=native-histograms
--config.file=/etc/prometheus/prometheus.yml
--storage.tsdb.path=/prometheus/data
--storage.tsdb.retention.time=42y
healthcheck:
# healthy only when metrics metadata is returned
# it's important because the app heavily relies on them to determine how metrics are rendered in the UI (see GmdVizPanel.tsx)
test: ['CMD-SHELL', 'wget -qO- http://localhost:9090/api/v1/targets/metadata | grep -Fq ''"data":[{''']
interval: 1s
timeout: 1s
retries: 30
start_period: 15s