Skip to content

Commit

Permalink
fix E231
Browse files Browse the repository at this point in the history
  • Loading branch information
ian28223 committed Jan 14, 2019
1 parent 85da148 commit 44a9979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgres/datadog_checks/postgres/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ def check(self, instance):
tags = list(set(tags))

# preset tags to host (if using socket) or host-port
tags.extend(["pg_instance:%s" % (host if host.startswith('/') else "{}-{}".format(host,port))])
tags.extend(["pg_instance:%s" % (host if host.startswith('/') else "{}-{}".format(host, port))])

# preset tags to the database name
tags.extend(["db:%s" % dbname])
Expand Down

0 comments on commit 44a9979

Please sign in to comment.