tests: avoid using "create tenant" as a metric test

This commit is contained in:
John Spray
2024-01-04 18:23:02 +00:00
parent e0cd0fac0d
commit bbdd27a522

View File

@@ -219,14 +219,14 @@ def test_metrics_normal_work(neon_env_builder: NeonEnvBuilder):
labels = ",".join([f'{key}="{value}"' for key, value in sample.labels.items()])
log.info(f"{sample.name}{{{labels}}} {sample.value}")
# Test that we gather tenant create metric
# Test that we gather tenant operations metrics
storage_operation_metrics = [
"pageserver_storage_operations_seconds_global_bucket",
"pageserver_storage_operations_seconds_global_sum",
"pageserver_storage_operations_seconds_global_count",
]
for metric in storage_operation_metrics:
value = ps_metrics.query_all(metric, filter={"operation": "create tenant"})
value = ps_metrics.query_all(metric, filter={"operation": "layer flush"})
assert value