Skip to content

Commit

Permalink
Fix query tag for postgres to use the normalized query (#7982)
Browse files Browse the repository at this point in the history
  • Loading branch information
justiniso authored and ofek committed Nov 10, 2020
1 parent fa31896 commit 9cfaf3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgres/datadog_checks/postgres/statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def row_keyfunc(row):
continue
value = row[column]
if column == 'query':
value = normalize_query_tag(value)
value = normalize_query_tag(normalized_query)
tags.append('{tag_name}:{value}'.format(tag_name=tag_name, value=value))

for column, metric_name in PG_STAT_STATEMENTS_METRIC_COLUMNS.items():
Expand Down

0 comments on commit 9cfaf3f

Please sign in to comment.