add node exporter and program directories
This commit is contained in:
parent
b1efd26056
commit
2f4fec36dc
2 changed files with 79 additions and 0 deletions
13
install-node-exporter.sh
Executable file
13
install-node-exporter.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
PROM_DIR=/var/prometheus-node-exporter
|
||||
|
||||
mkdir $PROM_DIR/
|
||||
|
||||
apt install prometheus-node-exporter
|
||||
|
||||
chown prometheus:prometheus $PROM_DIR
|
||||
|
||||
echo "ARGS+= --collector.textfile.directory $PROM_DIR" \
|
||||
>> /etc/default/prometheus-node-exporter
|
||||
|
||||
install rdl_prometheus /usr/local/bin/
|
||||
Loading…
Add table
Add a link
Reference in a new issue