0d9674bd87
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
20 lines
451 B
Plaintext
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
|