You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the results you expected:
In #9786 postgres table bloat metrics were introduced based on this query.
That query however also includes index bloat (the idbloat column). It actually returns a row per index meaning that a single table with multiple indexes will have multiple entries.
Currently the agent ignores idbloat and creates a metric entry for each row in that table meaning that like in the example above a single table with three indexes will get three entries (with the same value).
I think it should be adapted to:
have a single table_bloat entry per table
have a index_bloat (based in idbloat) per index
The single table_bloat entry might not be a huge deal as I assume Datadog will merge them anyway. But mainly the index_bloat entry would be helpful to properly monitor bloat in the database (thus table bloat + index bloat).
The text was updated successfully, but these errors were encountered:
Hi @jeroenj, thanks for suggesting this. I’ve made a PR to include an index bloat metric and limit the table_bloat entries. Let me know if this is what you had in mind: #10431
Output of the info page
Steps to reproduce the issue:
datadog-agent check postgres
Describe the results you received:
For each index there's a
postgresql.table_bloat
entry using thetbloat
value:Describe the results you expected:
In #9786 postgres table bloat metrics were introduced based on this query.
That query however also includes index bloat (the
idbloat
column). It actually returns a row per index meaning that a single table with multiple indexes will have multiple entries.Currently the agent ignores
idbloat
and creates a metric entry for each row in that table meaning that like in the example above a single table with three indexes will get three entries (with the same value).I think it should be adapted to:
table_bloat
entry per tableindex_bloat
(based inidbloat
) per indexThe single
table_bloat
entry might not be a huge deal as I assume Datadog will merge them anyway. But mainly theindex_bloat
entry would be helpful to properly monitor bloat in the database (thus table bloat + index bloat).The text was updated successfully, but these errors were encountered: