Playing with formatting...

This commit is contained in:
Kris-Sekula 2019-01-23 15:50:27 +01:00
parent 488e36fd10
commit ae1cbf2513
1 changed files with 5 additions and 3 deletions

View File

@ -49,11 +49,12 @@ Here is an example of thos the graphs look like:
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
```
**watch out for formatting this is YAML, tab = two spaces**
**Note** watch out for formatting this is YAML, not TABs, use two spaces
```
global:
scrape_interval: 15s
@ -69,7 +70,8 @@ scrape_configs:
- targets: ['localhost:8082']
labels:
service_name: hx_read_write_stats
```
```
- try to start prometheus:
```
sudo -u prometheus /usr/local/bin/prometheus --config.file /etc/prometheus/prometheus.yml --storage.tsdb.path /var/lib/prometheus --web.console.templates=/etc/prometheus/consoles --web.console.libraries=/etc/prometheus/console_libraries