(**kw)
return report
returns the entirety of the exposed prometheus metrics
returns the entirety of the exposed prometheus metrics
returns the entirety of the exposed prometheus metrics
def prometheus_metrics(**kw):
    """ returns the entirety of the exposed prometheus metrics
    """
    report = """
# HELP pgp_key_expiry_unixtime Expiry date in unix epoch seconds of the given PGP key
"""
    for expiry in kw['pgp_key_expiry_unixtime']:
        report += """pgp_key_expiry_unixtime{{user="{email}"}} {timestamp:.3f}\n""".format(**expiry)
    return report
def prometheus_metrics ( * * kw ) : report = """
# HELP pgp_key_expiry_unixtime Expiry date in unix epoch seconds of the given PGP key
""" for expiry in kw [ 'pgp_key_expiry_unixtime' ] : report += """pgp_key_expiry_unixtime{{user="{email}"}} {timestamp:.3f}\n""" . format ( * * expiry ) return report