Commit 85df97d 1 parent 401945b commit 85df97d Copy full SHA for 85df97d
File tree 6 files changed +66
-0
lines changed
6 files changed +66
-0
lines changed Original file line number Diff line number Diff line change 37
37
* .srl
38
38
* .jks
39
39
40
+ # Secrets
41
+ * .token.txt
42
+
40
43
# Java
41
44
* .hprof
Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ defaults
15
15
16
16
default-server check inter 10s fall 2 rise 1
17
17
18
+ frontend prometheus
19
+ bind :8405
20
+ mode http
21
+ http-request use-service prometheus-exporter if { path /metrics }
22
+ no log
23
+
18
24
frontend internal
19
25
bind :8445 ssl crt /usr/local/etc/haproxy/itmo-dating-backend.pem
20
26
bind :8446 ssl crt /usr/local/etc/haproxy/itmo-dating-backend.pem
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ FROM prom/prometheus:latest
2
2
3
3
COPY ./prometheus.yml /etc/prometheus/prometheus.yml
4
4
5
+ COPY ./vault.token.txt /etc/prometheus/vault.token.txt
6
+
5
7
CMD [ \
6
8
"--config.file=/etc/prometheus/prometheus.yml" , \
7
9
"--storage.tsdb.retention.size=500MB" , \
Original file line number Diff line number Diff line change @@ -65,3 +65,46 @@ scrape_configs:
65
65
- database-primary-exporter.dating.se.ifmo.ru
66
66
type : ' A'
67
67
port : 9187
68
+
69
+ - job_name : consul
70
+ dns_sd_configs :
71
+ - names :
72
+ - consul-exporter.dating.se.ifmo.ru
73
+ type : ' A'
74
+ port : 9107
75
+
76
+ - job_name : vault
77
+ metrics_path : /v1/sys/metrics
78
+ params :
79
+ format : [ 'prometheus' ]
80
+ authorization :
81
+ credentials_file : /etc/prometheus/vault.token.txt
82
+ dns_sd_configs :
83
+ - names :
84
+ - vault.dating.se.ifmo.ru
85
+ type : ' A'
86
+ port : 8200
87
+ scheme : https
88
+ tls_config :
89
+ insecure_skip_verify : true
90
+
91
+ - job_name : haproxy
92
+ dns_sd_configs :
93
+ - names :
94
+ - haproxy.dating.se.ifmo.ru
95
+ type : ' A'
96
+ port : 8405
97
+
98
+ - job_name : prometheus
99
+ dns_sd_configs :
100
+ - names :
101
+ - prometheus.dating.se.ifmo.ru
102
+ type : ' A'
103
+ port : 9090
104
+
105
+ - job_name : grafana
106
+ dns_sd_configs :
107
+ - names :
108
+ - grafana.dating.se.ifmo.ru
109
+ type : ' A'
110
+ port : 3000
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ listener "tcp" {
10
10
tls_min_version = " tls13"
11
11
}
12
12
13
+ telemetry {
14
+ prometheus_retention_time = " 12h"
15
+ }
16
+
13
17
storage "consul" {
14
18
address = " server.dc1.consul:8501"
15
19
max_parallel = 32
Original file line number Diff line number Diff line change @@ -141,6 +141,14 @@ services:
141
141
- consul-data:/opt/consul/data
142
142
tty : true
143
143
hostname : server.dc1.consul
144
+ consul-exporter :
145
+ image : prom/consul-exporter
146
+ command : --consul.server=server.dc1.consul:8500
147
+ tty : true
148
+ hostname : consul-exporter.dating.se.ifmo.ru
149
+ depends_on :
150
+ consul :
151
+ condition : service_started
144
152
vault :
145
153
image : ghcr.io/secs-dev/itmo-dating-vault:latest
146
154
build :
You can’t perform that action at this time.
0 commit comments