iptime: add Prometheus metrics

master
Michael Hope 3 years ago
parent 1c86e5c746
commit c2a63719a9

@ -6,8 +6,10 @@ import astral
import dateutil.tz
import flask
import requests
import prometheus_flask_exporter # type: ignore
app = flask.Flask(__name__)
_ = prometheus_flask_exporter.PrometheusMetrics(app)
def to_sec(dt):

@ -10,7 +10,8 @@ setup(
description='Word clock services',
packages=find_packages(),
install_requires=[
'Flask>=1.0.2',
'Flask>=1.1.1',
'prometheus-flask-exporter>=0.12.1',
'astral>=1.7.1',
'python-dateutil>=2.7.5',
'python-geoip-geolite2-yplan',

Loading…
Cancel
Save