forked from Dabz/ccloudexporter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (42 loc) · 1.21 KB
/
docker-compose.yaml
File metadata and controls
42 lines (42 loc) · 1.21 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
version: "3"
services:
# Sample Go application producing counter metrics.
ccloud_exporter:
image: dabz/ccloudexporter
ports:
- '2112:2112'
hostname: ccloud_exporter
container_name: ccloud_exporter
environment:
CCLOUD_API_KEY: <<CCLOUD_API_KEY>>
CCLOUD_API_SECRET: <<CCLOUD_API_SECRET>>
CCLOUD_CLUSTER: <<CCLOUD_CLUSTER>>
# Splunk Enterprise server:
splunk:
image: splunk/splunk:latest
container_name: splunk
environment:
- SPLUNK_START_ARGS=--accept-license
- SPLUNK_HEC_TOKEN=00000000-0000-0000-0000-0000000000000
- SPLUNK_PASSWORD=changeme
ports:
- 18000:8000
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8000']
interval: 5s
timeout: 5s
retries: 20
volumes:
- ./splunk.yml:/tmp/defaults/default.yml
- /opt/splunk/var
- /opt/splunk/etc
# OpenTelemetry Collector
otelcollector:
image: quay.io/signalfx/splunk-otel-collector:0.29.0
container_name: otelcollector
command: ["--config=/etc/otel-collector-config.yml", "--log-level=DEBUG"]
volumes:
- ./otel-collector-config.yml:/etc/otel-collector-config.yml
depends_on:
- splunk
- ccloud_exporter