HPE Blade enclosure scraper. Goes through all blades individually, querying data. Provides Prometheus data on http request. I acknowledge I learned and changed during, and regret how it looks. Still better than hpe tho. prom.py is main.
Go to file
rasmus 97ee6390d9 Add prod docker-compose and instructions 2021-12-16 01:18:25 +02:00
.vscode we have bays 2021-12-16 01:18:24 +02:00
.gitignore Dockerization 2021-12-16 01:18:24 +02:00
Dockerfile Rename entry point to blades.py 2021-12-16 01:18:25 +02:00
README.md Add prod docker-compose and instructions 2021-12-16 01:18:25 +02:00
blade_bay_locations.png Upload /blade_bay_locations.png 2021-12-16 01:18:25 +02:00
blades.py Rename entry point to blades.py 2021-12-16 01:18:25 +02:00
docker-compose.dev.yml Rename dev instance compose 2021-12-16 01:18:25 +02:00
docker-compose.yml Add prod docker-compose and instructions 2021-12-16 01:18:25 +02:00
listServers.py fix treating remarks as server items, what sometimes causes a crash downstream (while the remark is present for a few) 2021-12-16 01:18:25 +02:00
prom_servers.py Add git hash to metrics. 2021-12-16 01:18:25 +02:00
prometheus.yml increased timeout from 3.5m to 10m 2021-12-16 01:18:25 +02:00
readme.jpg add more junk to the root of the project (readme) 2021-12-16 01:18:25 +02:00
relativeUsage.py foo bar 2021-12-16 01:18:24 +02:00
requirements.txt Dockerization 2021-12-16 01:18:24 +02:00
scraperMain.py remove some unneeded test data 2021-12-16 01:18:24 +02:00

README.md

a pigeon flying with their feet as a helicopter, quote When your program is a complete mess, but does its job

That's about what you would expect for the first larger than a few lines python thing (this) I have started from scratch and made functional.

To be honest, the HPE side is quite a bird-copter as well.

Running development instance

docker-compose -f docker-compose.dev.yml up --build

Deploying

Deploying in prod:

docker-compose -f docker-compose.yml up --build -d