CL19 work in progress
This commit is contained in:
Kris-Sekula 2019-01-22 17:44:31 +01:00
commit 64d0a40381
2 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,7 @@
This is an example of how to use Cisco Hyperflex API with python. I've been tasked with deploying multiple Hyperflex Clusters at Cisco Live 2018 in Barcelona. As part of that deployment I wanted to have a way to monitor performace of the system. The Hyperflex system has a built performace "screen" that can be accessed via the http://hx-controller/perf link but I wanted to have both of my systems data presented on one screen.
I decided to use the "Prometheus" https://prometheus.io/ as backend, Grafana as frontend and a python script to bring the data from the HX system to Prometheus. This script crates a local web server on address http://localhost:8082/metrics that will serve the data that looks like this:
I decided to use the "Prometheus" https://prometheus.io/ as backend, Grafana as frontend and a python script to bring the data from the HX systems to Prometheus. This script crates a local web server on address http://localhost:8082/metrics that will serve the data that looks like this:
```
MBps_Read{host="10.127.253.81"} 1728.0
MBps_Write{host="10.127.253.81"} 1490454.7
@ -13,4 +13,8 @@ Lat_Write{host="10.127.253.81"} 6.261
```
Every 1 min Prometheus calls the url and processes the data.
Here is an example of thos the graphs look like:
![alt text](https://github.com/Kris-Sekula/Hyperflex-API/blob/master/cl2018-stats-example.png "Graphana Dashboard")
Keywords: Cisco Hyperflex, API, python.

BIN
cl2018-stats-example.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 KiB