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
Currently the postgres check can collect relation metrics from pg_stat_user_tables and pg_stat_user_indexes, but they don't specify the schema, so it could mixing up be metrics from tables with the same name in different schemas. I'd like to update the check to tag the relation metrics by schema as well as support specifying the schema in config.
Currently the postgres check can collect relation metrics from pg_stat_user_tables and pg_stat_user_indexes, but they don't specify the schema, so it could mixing up be metrics from tables with the same name in different schemas. I'd like to update the check to tag the relation metrics by schema as well as support specifying the schema in config.
So if you have the following db:
And you're running the old check:
You'd submit two rows of data, but the same set of tags, so one of the metrics would win.
In the new version, you'd get two rows of data, but one tagged with
schema:prod
andschema:staging
.You'd also be able to specify the schema:
Which would only query for the prod schema's foo table.
The text was updated successfully, but these errors were encountered: