init prometheus node exporter installation
This commit is contained in:
commit
5a07d2b628
2 changed files with 79 additions and 0 deletions
13
install-node-exporter
Normal file
13
install-node-exporter
Normal 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