diff options
author | Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com> | 2022-04-08 16:09:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-08 16:09:26 +0300 |
commit | 2fbb82df856b7885e1c1560ba63e8fd7562e73b8 (patch) | |
tree | 5462fd6e1c0b7cf8ffed21da78c11b94988e2ced /bin/ncp-dist-upgrade | |
parent | 99a3c45592abc4937b12f2f93b0e81a6aa3fd97d (diff) | |
parent | d42a0c8cd5bf33334fecd8c23eeda0353a993d5c (diff) |
Merge pull request #1444 from feature/custom-prometheus-exporter
Add custom metrics exporter
Diffstat (limited to 'bin/ncp-dist-upgrade')
-rwxr-xr-x | bin/ncp-dist-upgrade | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/ncp-dist-upgrade b/bin/ncp-dist-upgrade index d6c399ab..2deacd13 100755 --- a/bin/ncp-dist-upgrade +++ b/bin/ncp-dist-upgrade @@ -89,6 +89,9 @@ sleep 2 # avoid systemd thinking that PHP is in a crash/restart loop $APTINSTALL -t ${release_new} php${php_ver_new}-gmp #$APTINSTALL -t ${release_new} imagemagick php${php_ver_new}-imagick ghostscript +# Reinstall prometheus-node-exporter, specifically WITH install-recommends to include collectors on bullseye and later +{ dpkg -l | grep '^ii.*prometheus-node-exporter' >/dev/null && apt-get install -y prometheus-node-exporter-collectors; } || true + apt-get autoremove -y apt-get clean |