octavia/elements/amphora-agent/install.d/amphora-agent-source-install/prometheus-proxy.conf
Michael Johnson 0d9674bd87 Add the PROMETHEUS protocol to listeners
This patch adds a new protocol for listeners called "PROMETHEUS" that exposes
a Prometheus endpoint. This allows detailed metrics collection from Octavia
load balancers.

Change-Id: I3e27e4e57ad955bcd7728426c91f05171a46ef7f
2022-02-22 01:57:53 +00:00

20 lines
451 B
Plaintext

description "Start up the Octavia Prometheus Proxy"
start on started amphora-agent
stop on runlevel [!2345]
respawn
# Handle the race condition with the netns being created
respawn limit unlimited
exec /usr/local/bin/prometheus-proxy
post-start script
PID=`status prometheus-proxy | egrep -oi '([0-9]+)$' | head -n1`
echo $PID > /var/run/prometheus-proxy.pid
end script
post-stop script
rm -f /var/run/prometheus-proxy.pid
end script