-
Notifications
You must be signed in to change notification settings - Fork 14
/
pillar.example
88 lines (83 loc) · 2.11 KB
/
pillar.example
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
79
80
81
82
83
84
85
86
87
88
consul:
data_dir: /var/lib/consul/data
ui_dir: /var/lib/consul/ui
config_dir: /etc/consul
datacenter: dc1
nameservers:
- 8.8.8.8
ports:
udp:
dns: 53
server_pattern: 'consul-server*'
server_target_mode: 'glob'
services:
example:
name: "example",
tags:
- example
address: webservice.example.com
port: 80
checks:
- http: http://webservice.example.com
interval: 5m
nginx:
client_max_body_size: 128
microservices:
example:
hostname: example.services.acme.co
containers:
web:
instances: 2
docker_image: docker-registry.acme.co/services/example:latest
stateful: False
http: True
http_internal_port: 8000
base_port: 10000
links:
database: db
volumes:
- ["persistent", "/var/lib/persistent-app-data", "rw"]
environment:
DATABASE_PASSWORD: supersecret
db:
instances: 1
docker_image: mariadb:10
stateful: True
volumes:
- ["database", "/var/lib/mysql", "rw"]
environment:
MYSQL_ROOT_PASSWORD: supersupersecret
MYSQL_PASSWORD: supersecret
MYSQL_USER: myapp
MYSQL_DATABASE: myapp
prometheus:
proxy:
server_name: prometheus.example.com
ssl_certificate: /etc/ssl/certs/prometheus.example.com.pem
ssl_key: /etc/ssl/private/prometheus.example.com.key
alerts:
InstanceDown: |
ALERT InstanceDown
IF up == 0
FOR 1m
LABELS { severity="critical" }
ANNOTATIONS {
summary = {% raw %}"Instance {{ $labels.instance }} down"{% endraw %}
}
configuration:
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
- job_name: prometheus
static_configs:
- targets:
- localhost:9090
alertmanager:
configuration:
global:
# The smarthost and SMTP sender used for mail notifications.
smtp_smarthost: mail.example.com
smtp_from: 'alertmanager@example.com'
smtp_auth_username: ''
smtp_auth_password: ''