question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Increase TABLE_COUNT_LIMIT or make it configurable for postgres integration

See original GitHub issue

Output of the info page

Additional environment details (Operating System, Cloud provider, etc):

datadog agent running as docker container (6.10.2) monitoring postgreqSQL 10 in AWS (RDS).

schema has more than 200 tables:

$ grep -c '^CREATE TABLE ' SCHEMA_SQL.sql
202

Steps to reproduce the issue:

  1. load DB schema
  2. start datadog agent
  3. observe metric postgresql.table.count (with schema tag)

Describe the results you received: not all schemas are reported correctly for the table count per schema.

Describe the results you expected: some tables are omitted from the table count.

Additional information you deem important (e.g. issue happens only occasionally):

Because the inner select limit the total number of tables returned, the general metric is incorrect if there are more than 200 tables in the database. This may result in unexpected monitoring and behavior if there is an alarm when the number of tables changes.

The limit is currently hardcoded in postgres.py to 200, it would be good to make it configurable via the configuration file for the database.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
fischazcommented, May 8, 2019

PR created.

0reactions
ChristineTChencommented, Aug 27, 2019

Feature is now available 6.14.x. Thanks @fischaz https://github.com/DataDog/integrations-core/pull/3729

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation: 15: ALTER SYSTEM - PostgreSQL
ALTER SYSTEM is used for changing server configuration parameters across the entire database cluster. It can be more convenient than the traditional method ......
Read more >
PostgreSQL integration's configuration settings
PostgreSQL instance settings. The PostgreSQL integration collects both Metrics (M) and Inventory (I) information. The Applies To column in the following table ...
Read more >
Setting Up Database Monitoring for self hosted Postgres
Do the following setup to enable Database Monitoring with your Postgres database: Configure database parameters; Grant the Agent access to the database ...
Read more >
Azure Database for PostgreSQL - Flexible Server
When you create an Azure Database for PostgreSQL - Flexible Server ... You can't change your networking option after the server is created....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found