https://github.com/bobbui/prometheus-flask
Library to expose Prometheus performance metrics on Flask application
https://github.com/bobbui/prometheus-flask
Last synced: about 1 year ago
JSON representation
Library to expose Prometheus performance metrics on Flask application
- Host: GitHub
- URL: https://github.com/bobbui/prometheus-flask
- Owner: bobbui
- License: apache-2.0
- Created: 2017-08-23T14:26:32.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-24T06:02:45.000Z (over 8 years ago)
- Last Synced: 2025-03-23T18:54:22.622Z (about 1 year ago)
- Language: Python
- Size: 24.4 KB
- Stars: 15
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prometheus-flask
Library to expose Prometheus performance metrics on Flask application
Metric will be exposed on the same port as main Flask application
## Available metrics
- Host metrics:
- Up time
- CPU usage: percent, CPU time for user/system
- Memory usage: total, available, cached, swap
- IO usage: number of read/write operation
- Networking: in and out: drop/packet/bytes/erros
- Web application metrics:
- Request Response time
- Request size.
- Response size.
- Throughput
- HTTP status breakdown
## Dashboard
Start Grafana, import the Grafana-dashboard.json, profit!
# Installation
Install dependencies
```
pip install -r requirements.txt
```
Run
```
python main.py
```