Skip to content

simple module to collect stats about general host health using Flask.

License

Notifications You must be signed in to change notification settings

phbridge/Python_Prometheus_Host_Stats

Repository files navigation

Title

Python Prometheus Host Stats (some RaspberryPi (Debain not Rasperian) specifics)

Language

Python 3.5+

Description

This is designed to be an easy way to collect host stats using prometheus scrape as if your are scraping for other stuff nice and easy to also scrape for this. I got fed up of the different ways telegraf and prometheus reported stuff making comparisons and graphing on a single page hard work. If you want to monitor some basic host stats from the hose its self that from other source this is a quick easy way to add this. I am amazed someone has not done it already but a quick search returned fruitless.

I should probably mention this uses proc/XYZ for grabbing the stats so will only work on OS's that have the proc files :-)

This can be run in either Pull mode (Prometheus/Flask) or Push mode (Influx directly)

Contacts

Phil Bridges - phbridge@cisco.com

Licence

Please see LICENCE file

EULA

This software is provided as is and with zero support level. Support can be purchased by providing Phil bridges with a varity of Beer, Wine, Steak and Greggs pasties. Please contact phbridge@cisco.com for support costs and arrangements. Until provison of alcohol or baked goodies your on your own but there is no rocket sciecne involved so dont panic too much. To accept this EULA you must include the correct flag when running the script. If this script goes crazy wrong and breaks everything then your also on your own and Phil will not accept any liability of any type or kind. As this script belongs to Phil and NOT Cisco then Cisco cannot be held responsable for its use or if it goes bad, nor can Cisco make any profit from this script. Phil can profit from this script but will not assume any liability. Other than the boaring stuff please enjoy and plagerise as you like (as I have no ways to stop you) but common curtacy says to credit me in some way [see above comments on Beer, Wine, Steak and Greggs.].

About

simple module to collect stats about general host health using Flask.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages