-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
34 lines (31 loc) · 997 Bytes
/
docker-compose.yml
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
version: "3.1"
services:
prometheus:
image: prom/prometheus
hostname: prometheus
volumes:
- ./prometheus-config/:/etc/prometheus/
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
- "--web.console.templates=/usr/share/prometheus/consoles"
ports:
- 9090:9090
demo-app:
image: barrycommins/spring-boot-splunk-prometheus-metrics
hostname: demo-app
ports:
- 8080:8080
splunk:
image: splunk/splunk
hostname: splunk
environment:
- SPLUNK_START_ARGS=--accept-license
- SPLUNK_PASSWORD=password
- SPLUNK_ADD=index prometheus -datatype metric
- SPLUNK_APPS_URL=https://github.com/lukemonahan/splunk_modinput_prometheus/releases/download/Release_0.6.0/modinput_prometheus.tar.gz
volumes:
- ./splunk/default.yml:/tmp/defaults/default.yml
ports:
- 8000:8000