16 lines
411 B
Python
16 lines
411 B
Python
from prometheus_flask_exporter.multiprocess import GunicornPrometheusMetrics
|
|
from flask import Blueprint
|
|
|
|
metrics = GunicornPrometheusMetrics()
|
|
|
|
by_path_counter = metrics.counter(
|
|
"by_path_counter",
|
|
"Request count by request paths",
|
|
labels={"path": lambda: request.path},
|
|
)
|
|
|
|
|
|
routes = Blueprint("routes", __name__)
|
|
|
|
from .client import * # Goes last to avoid circular imports
|
|
from .static import *
|