2023-12-20 03:34:15 +00:00
|
|
|
%
|
|
|
|
@ #ip_address
|
|
|
|
@ http://172.30.27.1:9090/
|
|
|
|
%
|
|
|
|
@ #service
|
|
|
|
@ prometheus
|
|
|
|
%
|
|
|
|
@ #ADDITIONAL_REPLACE
|
2023-12-20 03:45:31 +00:00
|
|
|
@ 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
|
2023-12-20 03:55:54 +00:00
|
|
|
@ os.system("mkdir -p /opt/prometheus/data && touch /opt/prometheus/prometheus.yaml && touch /opt/prometheus/web.yaml && chown -R nobody:nogroup /opt/prometheus/")
|