Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions datadog_checks_base/changelog.d/24947.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow schema collectors to report object-specific count telemetry.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def collect_schemas(self) -> bool:
raw=True,
)
self._check.gauge(
f"dd.{self._check.dbms}.schema.tables_count",
self.object_count_metric_name,
self._total_rows_count,
tags=self._check.tags + ["status:" + status],
hostname=self._check.reported_hostname,
Expand All @@ -132,6 +132,10 @@ def collect_schemas(self) -> bool:
self._reset()
return True

@property
def object_count_metric_name(self) -> str:
return f"dd.{self._check.dbms}.schema.tables_count"

@property
def base_event(self):
return {
Expand Down
Loading