blob: 32ea95119e7cec82f1c35fe39bbde9eb5bc78d87 [file] [log] [blame]
[Unit]
Description=ssh tunnel to skia-prom for prom metrics federation.
Wants=network-online.target
Wants=sshd.service
[Service]
Environment=HOME=/home/chrome-bot
# Start a tunnel that forwards requests to skia-prom:12001 to localhost:8000,
# which is where the Prometheus instance runs on the jumphost.
# The port number 12001 is defined in infra/prometheus/sys/prometheus.yml and is
# reserved for this jumphost.
ExecStart=/usr/bin/gcloud compute ssh default@skia-prom \
--zone=us-central1-c \
-- \
-NT -R 12001:localhost:8000 \
-o "ExitOnForwardFailure=yes" \
-o "ServerAliveInterval=30" \
-o "ServerAliveCountMax=10"
RestartSec=3
Restart=always
User=chrome-bot
Group=chrome-bot
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target