Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit e5958db

Browse files
committed
test with table
1 parent 018bcc4 commit e5958db

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/system/data/test_metrics_async.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2239,11 +2239,13 @@ def time_interval(self, start_timestamp):
22392239
("application_blocking_latencies", [OperationType.READ_ROWS]),
22402240
])
22412241
@CrossSync.pytest
2242-
async def test_metric_existence(self, client, metrics_client, time_interval, metric, methods):
2242+
async def test_metric_existence(self, table_id, client, metrics_client, time_interval, metric, methods):
2243+
print(f"using table: {table_id}")
22432244
for m in methods:
22442245
metric_filter = (
22452246
f'metric.type = "bigtable.googleapis.com/client/{metric}" ' +
2246-
f'AND metric.labels.client_name = "python-bigtable/{CLIENT_VERSION}" '
2247+
f'AND metric.labels.client_name = "python-bigtable/{CLIENT_VERSION}" ' +
2248+
f'AND resource.labels.table = "{table_id}" '
22472249
)
22482250
results = list(metrics_client.list_time_series(
22492251
name=f"projects/{client.project}",

0 commit comments

Comments
 (0)