Compare commits

...

7 Commits

Author SHA1 Message Date
drunkendog 754c088621 Add scripts/prometheus/web.yml.example 2023-12-20 03:56:51 +00:00
drunkendog 86a1605242 Add auth to prometheus 2023-12-20 03:56:13 +00:00
drunkendog f9762de132 Add auth to prometheus 2023-12-20 03:55:54 +00:00
drunkendog c1ee39453b Add chown to fix prometheus permission error 2023-12-20 03:45:31 +00:00
drunkendog c0aa6022fa Update scripts/prometheus/launch-docker.sh 2023-12-20 03:37:47 +00:00
drunkendog 260cdb3d1f Add scripts/prometheus/manifest.dat 2023-12-20 03:34:15 +00:00
drunkendog bc4a1931ff Add scripts/prometheus/launch-docker.sh 2023-12-20 03:33:37 +00:00
3 changed files with 21 additions and 0 deletions

View File

@ -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

View File

@ -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/")

View File

@ -0,0 +1,2 @@
basic_auth_users:
admin: {bcrypt-hashed-password}