mirror of
https://github.com/neondatabase/neon.git
synced 2026-07-06 21:50:37 +00:00
tests: avoid using "create tenant" as a metric test
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user