Skip to content

Commit 2018ec1

Browse files
committed
Removed duplicate script
1 parent 9d28004 commit 2018ec1

1 file changed

Lines changed: 4 additions & 20 deletions

File tree

articles/sap/monitor/provider-linux.md

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In this how-to guide, you learn how to create a Linux operating system (OS) prov
2424
- Node exporter uses the default port **9100** to expose the metrics. If you want to use a custom port, make sure to open the port in the firewall and use the same port while creating the provider.
2525
- Default port **9100** or custom port that is configured for node exporter should be open and listening on the Linux host.
2626

27-
## Install node exporter on Linux
27+
## Set up the node exporter using a script
2828

2929
1. Right-click on the relevant node exporter version for linux from https://prometheus.io/download/#node_exporter and copy the link address to be used in the following command.
3030
For example, https://github.com/prometheus/node_exporter/releases/download/v1.6.1/node_exporter-1.6.1.linux-amd64.tar.gz
@@ -37,36 +37,20 @@ For example, https://github.com/prometheus/node_exporter/releases/download/v1.6.
3737
# Replace "xxx" with the version number
3838

3939
wget https://github.com/prometheus/node_exporter/releases/download/v<xxx>/node_exporter-<xxx>.linux-amd64.tar.gz
40-
41-
tar xvfz node_exporter-<xxx>.linux-amd64.tar.gz
42-
40+
tar xzvf node_exporter-<xxx>.linux-amd64.tar.gz
4341
cd node_exporter-<xxx>.linux-amd64
44-
45-
./node_exporter --web.listen-address=":9100" &
42+
nohup ./node_exporter --web.listen-address=":9100" &
4643
```
4744

4845
The node exporter now starts collecting data. You can export the data at `http://<ip>:9100/metrics`.
4946

50-
## Set up the node exporter using a script
51-
52-
```bash
53-
# To get the latest node exporter version from: https://prometheus.io/download/#node_exporter
54-
# Right-click on the linux node exporter version and copy the link address which will be used in the below command. For example - https://github.com/prometheus/node_exporter/releases/download/v1.6.1/node_exporter-1.6.1.linux-amd64.tar.gz
55-
# Change to the directory where you want to install the node exporter.
56-
57-
wget https://github.com/prometheus/node_exporter/releases/download/v<xxx>/node_exporter-<xxx>.linux-amd64.tar.gz
58-
tar xzvf node_exporter-<xxx>.linux-amd64.tar.gz
59-
cd node_exporter-<xxx>linux-amd64
60-
nohup ./node_exporter --web.listen-address=":9100" &
61-
```
62-
6347
### Set up a systemctl service to start node exporter on a VM restart
6448

6549
1. If the target VM is restarted or stopped, node exporter service is stopped. It must be manually started again to continue monitoring.
6650
1. Run the below commands to enable node exporter to run as a service.
6751

6852
> [!NOTE]
69-
> Replace this `xxxx` with the version of node exporter. For example, `1.6.1`.
53+
> Replace `<xxx>` with the version of node exporter. For example, `1.6.1`.
7054
7155
```bash
7256
# Change to the directory where node exporter bits are downloaded and copy the node_exporter folder to path /usr/bin

0 commit comments

Comments
 (0)