add dockerfile building for prometheus to jenkinsfile

This commit is contained in:
2018-11-03 20:29:51 -04:00
parent 2e6cb21d22
commit 790f838a91
3 changed files with 28 additions and 20 deletions

View File

@@ -20,13 +20,12 @@ services:
- 9090:9090
volumes:
- prometheus-storage:/prometheus
# logging:
# driver: fluentd
# options:
# fluentd-address: "logs.xai-corp.net:24224"
# fluentd-async-connect: 'true'
# tag: metrics
healthcheck:
test: ["CMD", "wget", "--spider", "http://localhost:9090/metrics"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 3m
deploy:
mode: replicated
replicas: 1
@@ -66,6 +65,12 @@ services:
resources:
limits:
memory: 512M
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/metrics"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 3m
postgres_exporter:
image: wrouesnel/postgres_exporter
@@ -75,7 +80,7 @@ services:
DATA_SOURCE_NAME: "postgresql://xaicorp_admin:snqioxni1sw@tasks.postgres:5432/?sslmode=disable"
deploy:
mode: replicated
replicas: 0
replicas: 1
restart_policy:
condition: any
delay: "1s"