- # dependency. We could fix that, but this is easier. So, we keep
- # handling both cases in case we fix that or maybe run a different
- # distro that doesn't have it.
- if [[ -e /lib/systemd/system/prometheus-node-exporter.service ]]; then
-
- if [[ -e /etc/systemd/system/prometheus.service ]]; then
- rm -f /etc/systemd/system/prometheus.service
- sysd_reload=true
- fi
-
-
- i /etc/systemd/system/prometheus-node-exporter.service.d/override.conf <<'EOF'
-[Unit]
-# needed to continually restart
-StartLimitIntervalSec=0
+ # dependency. But since the collectors package is just a few
+ # small scripts we don't even currently use, and of course are not
+ # there on old versions, lets not try to use that package, and
+ # just manually install the files we want from upstream.
+ # https://github.com/prometheus-community/node-exporter-textfile-collector-scripts