Skip to content

Commit

Permalink
changelog and IPv4->string for json serialization?
Browse files Browse the repository at this point in the history
  • Loading branch information
edengorevoy committed Aug 14, 2023
1 parent 1f3b93d commit 5a4be4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions postgres/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

***Added***:

* Add schema collection to Postgres integration ([#15484](https://github.com/DataDog/integrations-core/pull/15484))
* Add schema collection to Postgres integration ([#15484](https://github.com/DataDog/integrations-core/pull/15484))

## 14.1.0 / 2023-08-10
Expand Down
4 changes: 3 additions & 1 deletion postgres/datadog_checks/postgres/statement_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ def _filter_and_normalize_statement_rows(self, rows):
'backend_type', 'client backend'
) == 'client backend':
continue
if row['client_addr']:
row['client_addr'] = str(row['client_addr'])
query = row['query']
if query == '<insufficient privilege>':
insufficient_privilege_count += 1
Expand Down Expand Up @@ -736,7 +738,7 @@ def _collect_plan_for_statement(self, row):
"cloud_metadata": self._config.cloud_metadata,
"network": {
"client": {
"ip": row.get('client_addr', None),
"ip": str(row.get('client_addr', None)),
"port": row.get('client_port', None),
"hostname": row.get('client_hostname', None),
}
Expand Down

0 comments on commit 5a4be4b

Please sign in to comment.