Skip to content

Commit

Permalink
migrated prometheus app to json config
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianneubauer committed Jan 7, 2018
1 parent 90e05b6 commit 4ea3d1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions postgraas_server/prometheus_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
def db_connection(config):
username = cfg.get_user(config)
connection = psycopg2.connect(
database=config.get('metadb', 'db_name'),
database=config['metadb']['db_name'],
user=username,
password=config.get('metadb', 'db_pwd'),
host=config.get('metadb', 'host'),
port=config.get('metadb', 'port')
password=config['metadb']['db_pwd'],
host=config['metadb']['host'],
port=config['metadb']['port']
)
yield connection
connection.close()
Expand Down

0 comments on commit 4ea3d1d

Please sign in to comment.