1. You have to configure your alertmanager to listen on /my/path
2. I believe you need the leading slash.
Here are some working configs taken straight off my system, where the alertmanager path prefix is "/alertmanager"
For alertmanager itself, run with this flag:
(You can test this using "curl localhost:9093/alertmanager/metrics")
For prometheus:
alerting:
alertmanagers:
- scheme: http
path_prefix: /alertmanager
static_configs:
- targets:
- "
127.0.0.1:9093"
scrape_configs:
- job_name: alertmanager
scrape_interval: 1m
metrics_path: /alertmanager/metrics
static_configs:
- targets: ['localhost:9093']