diff --git a/prometheus_pgbouncer_exporter/cli.py b/prometheus_pgbouncer_exporter/cli.py index b81a5da..81cbd35 100644 --- a/prometheus_pgbouncer_exporter/cli.py +++ b/prometheus_pgbouncer_exporter/cli.py @@ -44,7 +44,7 @@ def main(): # Init logger logHandler = logging.FileHandler(args.log_file) if args.log_file is not "stdout" else logging.StreamHandler() - formatter = jsonlogger.JsonFormatter("(asctime) (levelname) (message)", datefmt="%Y-%m-%d %H:%M:%S") + formatter = jsonlogger.JsonFormatter("%(asctime)s %(levelname)s %(message)s`", datefmt="%Y-%m-%d %H:%M:%S") logHandler.setFormatter(formatter) logging.getLogger().addHandler(logHandler) logging.getLogger().setLevel(args.log_level) diff --git a/setup.py b/setup.py index ab633de..55ca94d 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup( name = 'prometheus-pgbouncer-exporter', packages = ['prometheus_pgbouncer_exporter'], - version = '2.1.1', + version = '2.1.2', description = 'Prometheus exporter for PgBouncer', long_description = long_description, long_description_content_type = "text/markdown", @@ -22,7 +22,7 @@ keywords = ['prometheus', 'pgbouncer'], classifiers = [], python_requires = ' >= 3', - install_requires = ['psycopg2 == 2.8.5', 'prometheus_client==0.8.0', 'python-json-logger==0.1.11', 'PyYAML==5.3.1'], + install_requires = ['psycopg2 == 2.8.5', 'prometheus_client==0.8.0', 'python-json-logger==0.1.11', 'PyYAML>=5.4.1'], entry_points = { 'console_scripts': [ 'pgbouncer-exporter=prometheus_pgbouncer_exporter.cli:main',