[Unit] Description=CSLab Blackbox exporter for Prometheus Documentation=https://prometheus.io/docs/introduction/overview/ Conflicts=prometheus-blackbox-exporter.service After=cslab-boot-timesync.service Wants=cslab-boot-timesync.service [Service] Restart=always #User=prometheus DynamicUser=yes #EnvironmentFile=/etc/default/prometheus-blackbox-exporter #ExecStart=/usr/bin/prometheus-blackbox-exporter $ARGS # CSLab: This history limit may turn out to be absurdly too large. We'll # see. ExecStart=/opt/prometheus/blackbox_exporter/blackbox_exporter \ --config.file /etc/prometheus/blackbox.yml \ --web.listen-address=127.0.0.1:9115 \ --web.external-url=https://csmetrics.cs.toronto.edu/blackbox/ \ --web.route-prefix=/ \ --history.limit=2000 # --history.limit=6000 # --history.limit=2000 # CSLab: inexplicably missing from the standard version. ExecReload=/bin/kill -HUP $MAINPID # CSLab: Permit the blackbox exporter to use ping without giving it full # root powers. CapabilityBoundingSet=CAP_NET_RAW AmbientCapabilities=CAP_NET_RAW # Under some circumstances, Blackbox runs into the default limit and # can use a huge one. LimitNOFILE=102400 [Install] WantedBy=multi-user.target