Commit 9ea6127 1 parent c7cff4d commit 9ea6127 Copy full SHA for 9ea6127
File tree 4 files changed +24
-0
lines changed
4 files changed +24
-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 @@ -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 @@ -72,3 +72,18 @@ scrape_configs:
72
72
- consul-exporter.dating.se.ifmo.ru
73
73
type : ' A'
74
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
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
You can’t perform that action at this time.
0 commit comments