Playing with formatting...
This commit is contained in:
parent
662895737e
commit
0f67574684
28
README.md
28
README.md
|
@ -20,26 +20,26 @@ Here is an example of thos the graphs look like:
|
|||
## How to deploy.
|
||||
|
||||
1. Install ubuntu server 16.04 64bit (I used: ubuntu-16.04.5-server-amd64.iso):
|
||||
- Basic installation, only select OpenSSH from the package list, create a user.
|
||||
- Basic installation, only select OpenSSH from the package list, create a user.
|
||||
2. Install Prometheus:
|
||||
- create required user:
|
||||
- create required user:
|
||||
```
|
||||
sudo useradd -M -s /bin/fals prometheus
|
||||
```
|
||||
-create required folders:
|
||||
```
|
||||
-create required folders:
|
||||
```
|
||||
sudo mkdir /etc/prometheus
|
||||
sudo mkdir /var/lib/prometheus
|
||||
sudo chown prometheus:prometheus /etc/prometheus
|
||||
sudo chown prometheus:prometheus /var/lib/prometheus
|
||||
```
|
||||
* download and extract:
|
||||
```
|
||||
```
|
||||
- download and extract:
|
||||
```
|
||||
curl -LO https://github.com/prometheus/prometheus/releases/download/v2.6.1/prometheus-2.6.1.linux-amd64.tar.gz
|
||||
tar xvf prometheus-2.6.1.linux-amd64.tar.gz
|
||||
```
|
||||
* copy files and change premissions:
|
||||
```
|
||||
```
|
||||
- copy files and change premissions:
|
||||
```
|
||||
sudo cp prometheus-2.6.1.linux-amd64/prometheus /usr/local/bin/
|
||||
sudo cp prometheus-2.6.1.linux-amd64/promtool /usr/local/bin/
|
||||
sudo chown prometheus:prometheus /usr/local/bin/prometheus
|
||||
|
@ -48,11 +48,11 @@ Here is an example of thos the graphs look like:
|
|||
sudo cp -r prometheus-2.6.1.linux-amd64/console_libraries /etc/prometheus
|
||||
sudo chown -R prometheus:prometheus /etc/prometheus/consoles
|
||||
sudo chown -R prometheus:prometheus /etc/prometheus/console_libraries
|
||||
```
|
||||
* configure prometheus:
|
||||
```
|
||||
```
|
||||
- configure prometheus:
|
||||
```
|
||||
sudo vim /etc/prometheus/prometheus.yml
|
||||
```
|
||||
```
|
||||
|
||||
tab is two spaces, no other char allowed, watch for formatting
|
||||
<file:prometheus.yml>
|
||||
|
|
Loading…
Reference in New Issue