diff --git a/README.md b/README.md index ffe3f56..cf5f7b7 100644 --- a/README.md +++ b/README.md @@ -43,4 +43,12 @@ is not finished
## Cloudserver Repo Autoset ![https://img.shields.io/badge/Debian%2010-work!-green](https://img.shields.io/badge/Debian%2010-work!-green) ![https://img.shields.io/badge/Debian%209-work!-green](https://img.shields.io/badge/Debian%209-work-green) ![https://img.shields.io/badge/Ubuntu%2018.04-work!-green](https://img.shields.io/badge/Ubuntu%2018.04-work!-green)
-bash <(wget -O - 'https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/cloudserver_auto_repos.sh') \ No newline at end of file +bash <(wget -O - 'https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/cloudserver_auto_repos.sh') + + +----- + + +## Prometheus + Grafana + Node_Exporter Quick Installer +![https://img.shields.io/badge/Debian%2010-work!-green](https://img.shields.io/badge/Debian%2010-work!-green) ![https://img.shields.io/badge/Debian%209-work!-green](https://img.shields.io/badge/Debian%209-work-green) ![https://img.shields.io/badge/Ubuntu%2018.04-work!-green](https://img.shields.io/badge/Ubuntu%2018.04-work!-green)
+bash <(wget -O - 'https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/prometheus.sh') \ No newline at end of file diff --git a/sh_scripts/prometheus.sh b/sh_scripts/prometheus.sh index bff3bc4..99c5ad3 100644 --- a/sh_scripts/prometheus.sh +++ b/sh_scripts/prometheus.sh @@ -76,7 +76,7 @@ scrape_configs: static_configs: - targets: ['localhost:9100']" > /etc/prometheus/prometheus.yml -sudo echo "< /etc/systemd/system/prometheus.service +WantedBy=multi-user.target" > /etc/systemd/system/prometheus.service for i in rules rules.d files_sd; do sudo chown -R prometheus:prometheus /etc/prometheus/${i}; done for i in rules rules.d files_sd; do sudo chmod -R 775 /etc/prometheus/${i}; done sudo chown -R prometheus:prometheus /var/lib/prometheus/ @@ -117,7 +116,7 @@ tar -xvf node_exporter*.tar.gz cd node_exporter*/ sudo cp node_exporter /usr/local/bin -sudo echo "< /etc/systemd/system/node_exporter.service +WantedBy=default.target" > /etc/systemd/system/node_exporter.service sudo apt install -y apt-transport-https