Skip to content

Flask Middleware for Prometheus Metrics

License

Notifications You must be signed in to change notification settings

Ometria/flask-prometheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-prometheus

Flask Middleware for Prometheus Metrics

Usage

from flask_prometheus import Prometheus

Prometheus(app)

Metrics

REQUESTS = Counter(
    "http_requests_total", "Total Requests", labelnames=["method", "path", "status"]
)
LATENCY = Histogram(
    "http_request_duration_seconds",
    "Total Requests",
    labelnames=["method", "path", "status"],
)
SIZE = Summary(
    "http_response_size_bytes",
    "Response Sizes",
    labelnames=["method", "path", "status"],
)

About

Flask Middleware for Prometheus Metrics

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages