diff --git a/install_node_exp.sh b/install_node_exp.sh index efc5ef0..0a54bd7 100755 --- a/install_node_exp.sh +++ b/install_node_exp.sh @@ -6,14 +6,14 @@ sudo mkdir /var/lib/prometheus sudo chown prometheus:prometheus /etc/prometheus sudo chown prometheus:prometheus /var/lib/prometheus - wget https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz - tar xvf node_exporter-0.18.1.linux-amd64.tar.gz - sudo cp node_exporter-0.18.1.linux-amd64/node_exporter /usr/local/bin + wget https://github.com/prometheus/node_exporter/releases/download/v1.0.1/node_exporter-1.0.1.linux-amd64.tar.gz + tar xvf node_exporter-1.0.1.linux-amd64.tar.gz + sudo cp node_exporter-1.0.1.linux-amd64/node_exporter /usr/local/bin sudo chown node_exporter:node_exporter /usr/local/bin/node_exporter - rm -rf node_exporter-0.16.0.linux-amd64.tar.gz node_exporter-0.18.1.linux-amd64 + rm -rf node_exporter-1.0.0.linux-amd64.tar.gz node_exporter-1.0.1.linux-amd64 sudo cp node_exporter.service /etc/systemd/system/node_exporter.service sudo systemctl daemon-reload sudo systemctl start node_exporter sudo systemctl status node_exporter sudo systemctl enable node_exporter - rm node_exporter-0.18.1.linux-amd64.tar.gz + \ No newline at end of file diff --git a/install_prom.sh b/install_prom.sh index bc9b9ff..1092102 100755 --- a/install_prom.sh +++ b/install_prom.sh @@ -1,8 +1,8 @@ #/bin/bash - wget https://github.com/prometheus/prometheus/releases/download/v2.16.0/prometheus-2.16.0.linux-amd64.tar.gz - tar xfz prometheus-2.16.0.linux-amd64.tar.gz - cd prometheus-2.16.0.linux-amd64/ + wget https://github.com/prometheus/prometheus/releases/download/v2.22.0/prometheus-2.22.0.linux-amd64.tar.gz + tar xfz prometheus-2.22.0.linux-amd64.tar.gz + cd prometheus-2.22.0.linux-amd64/ sudo cp ./prometheus /usr/local/bin/ sudo cp ./promtool /usr/local/bin/ sudo chown prometheus:prometheus /usr/local/bin/prometheus @@ -12,8 +12,8 @@ sudo chown -R prometheus:prometheus /etc/prometheus/consoles sudo chown -R prometheus:prometheus /etc/prometheus/console_libraries cd .. - rm -rf prometheus-2.16.0.linux-amd64 - rm prometheus-2.16.0.linux-amd64.tar.gz + rm -rf prometheus-2.22.0.linux-amd64 + rm prometheus-2.22.0.linux-amd64.tar.gz # Necessary to fill up port of prometheus in prometheus.yml, af far as cadvisor port according to install_cadvisor.sh sudo cp ./prometheus.yml /etc/prometheus/prometheus.yml diff --git a/prometheus.service b/prometheus.service index 890e9b9..e05c81e 100644 --- a/prometheus.service +++ b/prometheus.service @@ -12,7 +12,7 @@ --storage.tsdb.path /var/lib/prometheus/ \ --web.console.templates=/etc/prometheus/consoles \ --web.console.libraries=/etc/prometheus/console_libraries \ - --web.listen-address="0.0.0.0:27090" + --web.listen-address="0.0.0.0:8090" ExecReload=/bin/kill -HUP $MAINPID [Install] diff --git a/prometheus.yml b/prometheus.yml index 16d1e9c..9fd57d0 100644 --- a/prometheus.yml +++ b/prometheus.yml @@ -10,7 +10,7 @@ scrape_configs: - job_name: 'prometheus' scrape_interval: 5s static_configs: - - targets: ['localhost:9090'] + - targets: ['localhost:8090'] - job_name: 'node_exporter' scrape_interval: 5s static_configs: