Skip to content

Commit cab6c5c

Browse files
committed
fix hardcoded metric name
1 parent 24a87d8 commit cab6c5c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/slo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ jobs:
4848
timeBetweenPhases: 30
4949
shutdownTime: 30
5050

51-
language_id0: sync-table
51+
language_id0: sync-python-table
5252
language0: Python SDK over Table Service
5353
workload_path0: tests/slo
5454
workload_build_context0: ../..
5555
workload_build_options0: -f Dockerfile --build-arg SDK_SERVICE=table-service
5656

57-
language_id1: sync-query
57+
language_id1: sync-python-query
5858
language1: Python SDK over Query Service
5959
workload_path1: tests/slo
6060
workload_build_context1: ../..

tests/slo/src/metrics.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
JOB_READ_LABEL, JOB_WRITE_LABEL = "read", "write"
1414
JOB_STATUS_OK, JOB_STATUS_ERR = "ok", "err"
1515

16+
SDK_SERVICE_NAME = "sync-python-table"
17+
1618

1719
class Metrics:
1820
def __init__(self, push_gateway):
@@ -105,7 +107,7 @@ def push(self):
105107
job="workload-sync",
106108
registry=self._registry,
107109
grouping_key={
108-
"sdk": "python-sync",
110+
"sdk": SDK_SERVICE_NAME,
109111
"sdkVersion": version("ydb"),
110112
},
111113
)

0 commit comments

Comments
 (0)