Update README.md
This commit is contained in:
parent
f2eefe4015
commit
d7408b4849
16
README.md
16
README.md
|
@ -53,7 +53,7 @@ Here is an example of thos the graphs look like:
|
|||
```
|
||||
sudo vim /etc/prometheus/prometheus.yml
|
||||
```
|
||||
**Note:** watch out for formatting this is YAML, no TABs allowed, use two spaces instead. The second 'localhost' below tells prometheus to make a call to itself on port 8082 and open the /hx_metrics to fetch the data every one minute.
|
||||
**Note:** watch out for formatting this is YAML, no TABs allowed, use two spaces instead. The second 'localhost' below tells prometheus to make a call http://localhost:8082/hx_metrics to fetch the data every one minute, the data is provided the python script running on prometheus server.
|
||||
|
||||
```yaml
|
||||
global:
|
||||
|
@ -170,18 +170,22 @@ Here is an example of thos the graphs look like:
|
|||
|
||||
use the provided HX-monitor-Grafana_normal.json file that has a preconfigured dashboard
|
||||
you will need to opend this file first and replace the ip addresses that I've been using
|
||||
with our addresses. Once done sace and use to import new dshboard to Grafana.
|
||||
with our addresses. Once done sace and use to import new dashboard to Grafana.
|
||||
|
||||
4. Install the script:
|
||||
|
||||
* Clone the repositry locally.
|
||||
`git clone https://github.com/Kris-Sekula/Hyperflex-API.git'
|
||||
* Create credentials file:
|
||||
`vi hx_creds.py'
|
||||
`vi hx_creds.py`
|
||||
This is how the file should look like:
|
||||
'''
|
||||
hosts=[{'host':'ip_HX_Cluster_1', 'username':'local/root', 'password':'password_HX1'},{'host':'ip_HX_Cluster2', 'username':'local/root', 'pass
|
||||
word':'password_HX2'}]
|
||||
```
|
||||
hosts=[{'host':'ip_HX_Cluster_1', 'username':'local/root', 'password':'password_HX1'},{'host':'ip_HX_Cluster2', 'username':'local/root', 'password':'password_HX2'}]
|
||||
```
|
||||
* run the script:
|
||||
|
||||
`python hx_metrics.py`
|
||||
|
||||
* Logs are created in the same directory, you can watch them to see if prometheus is calling the script every 1 minute.
|
||||
|
||||
Keywords: Cisco Hyperflex, API, python.
|
||||
|
|
Loading…
Reference in New Issue