Skip to content

Commit fd394f6

Browse files
Added test_name:{build_variant|metric_context_path} labels to time-series (#275)
* Added test_name:build_variant tag to timeseries * Added test_name:metric_context_path tag to time-series
1 parent 4ea1a6e commit fd394f6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redisbench-admin"
3-
version = "0.6.11"
3+
version = "0.6.12"
44
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
55
authors = ["filipecosta90 <[email protected]>","Redis Performance Group <[email protected]>"]
66
readme = "README.md"

redisbench_admin/utils/remote.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,9 +823,17 @@ def get_ts_tags_and_name(
823823
break_by_value, tf_github_repo
824824
)
825825
timeserie_tags["test_name"] = str(test_name)
826+
if build_variant_name is not None:
827+
timeserie_tags["test_name:build_variant"] = "{}:{}".format(
828+
test_name, build_variant_name
829+
)
826830
timeserie_tags["metric"] = str(metric_name)
827831
timeserie_tags["metric_name"] = metric_name
828832
timeserie_tags["metric_context_path"] = metric_context_path
833+
if metric_context_path is not None:
834+
timeserie_tags["test_name:metric_context_path"] = "{}:{}".format(
835+
test_name, metric_context_path
836+
)
829837
timeserie_tags["metric_jsonpath"] = metric_jsonpath
830838
if metric_context_path not in testcase_metric_context_paths:
831839
testcase_metric_context_paths.append(metric_context_path)

0 commit comments

Comments
 (0)