standard-build/scripts/prometheus/manifest.dat

12 lines
421 B
Plaintext

%
@ #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 && chown -R nobody:nogroup /opt/prometheus/")