Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bonnefoa committed Apr 7, 2023
1 parent 19b6598 commit 68d1c0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions postgres/datadog_checks/postgres/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,15 +332,15 @@ def get_schema_field(descriptors):

TX_METRICS = {
'name': 'pg_snapshot_xmin',
'query': "pg_snapshot_xmin(pg_current_snapshot())",
'query': "select pg_snapshot_xmin(pg_current_snapshot())",
'columns': [
{'name': 'postgresql.transactions.xid', 'type': 'gauge'},
],
}

TX_METRICS_LT_13 = {
'name': 'pg_snapshot_xmin',
'query': "txid_snapshot_xmin(txid_current_snapshot())",
'query': "select txid_snapshot_xmin(txid_current_snapshot())",
'columns': [
{'name': 'postgresql.transactions.xid', 'type': 'gauge'},
],
Expand Down
1 change: 0 additions & 1 deletion postgres/tests/test_pg_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
requires_static_version,
)
from .utils import requires_over_10, requires_over_13, requires_over_14
from .utils import requires_over_10

CONNECTION_METRICS = ['postgresql.max_connections', 'postgresql.percent_usage_connections']

Expand Down

0 comments on commit 68d1c0f

Please sign in to comment.