Compare commits
7 Commits
a6901f7a1e
...
754c088621
| Author | SHA1 | Date |
|---|---|---|
|
|
754c088621 | |
|
|
86a1605242 | |
|
|
f9762de132 | |
|
|
c1ee39453b | |
|
|
c0aa6022fa | |
|
|
260cdb3d1f | |
|
|
bc4a1931ff |
|
|
@ -0,0 +1,7 @@
|
||||||
|
docker run -d --net main_subnet --ip 172.30.27.1 \
|
||||||
|
-v /opt/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml \
|
||||||
|
-v /opt/prometheus/web.yml:/etc/prometheus/web.yml \
|
||||||
|
-v /opt/prometheus/data:/prometheus \
|
||||||
|
--name=prometheus \
|
||||||
|
--restart unless-stopped \
|
||||||
|
prom/prometheus --config.file=/etc/prometheus/prometheus.yml --web.config.file=/etc/prometheus/web.yml
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
%
|
||||||
|
@ #ip_address
|
||||||
|
@ http://172.30.27.1:9090/
|
||||||
|
%
|
||||||
|
@ #service
|
||||||
|
@ prometheus
|
||||||
|
%
|
||||||
|
@ #ADDITIONAL_REPLACE
|
||||||
|
@ template = template.replace("proxy_set_header Host $host;", "proxy_set_header Host $host;\nproxy_set_header Upgrade $http_upgrade;\nproxy_set_header Connection \"upgrade\";")
|
||||||
|
%
|
||||||
|
@ #START_CONTAINER
|
||||||
|
@ os.system("mkdir -p /opt/prometheus/data && touch /opt/prometheus/prometheus.yaml && touch /opt/prometheus/web.yaml && chown -R nobody:nogroup /opt/prometheus/")
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
basic_auth_users:
|
||||||
|
admin: {bcrypt-hashed-password}
|
||||||
Loading…
Reference in New Issue