Thanks Sayf.  

I already have alertmanager.service file to start/stop the alertmanager.  
Is there any way to add the file reference inside this alertmanager.service 
file ? 
cat /usr/lib/systemd/system/alertmanager.service.d/proxy.conf 
[Service] Environment="HTTP_PROXY=http://proxy.example.com:80/"; 
"NO_PROXY=localhost,127.0.0.1,<Prometheus IP>"

$ cat alertmanager.service:   -- current file output 

[Unit]
Description=AlertManager Server Service
Wants=network-online.target
After=network-online.target

[Service]
User=root
Group=root
Type=simple
ExecStart=/home/opc/software/prometheus/alertmanager/alertmanager  
--config.file /home/opc/software/prometheus/alertmanager/alertmanager.yml

[Install]
WantedBy=multi-user.target


thanks
praveen

On Monday, May 11, 2020 at 10:55:18 PM UTC+1, sayf eddine Hammemi wrote:
>
> For me it is easier to setup alert manager as a systemd service then add a 
> drop-in directory to force proxy only on it with the file :
> /usr/lib/systemd/system/alertmanager.service.d/proxy.conf that contains
> [Service] Environment="HTTP_PROXY=http://proxy.example.com:80/"; 
> "NO_PROXY=localhost,127.0.0.1,<Prometheus IP>"
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/f8002e73-0337-479e-9e1b-b0e73c4fa7eb%40googlegroups.com.

Reply via email to