Skip to content

Commit 809a7fd

Browse files
fix name workload
1 parent 377aa21 commit 809a7fd

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

slo/src/AdoNet/SloContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class SloContext : SloContext<YdbDataSource>
2020
errorsGauge?.WithLabels(((YdbException)e).Code.StatusName(), "retried").Inc();
2121
});
2222

23-
protected override string Job => "workload-ado-net";
23+
protected override string Job => "AdoNet";
2424

2525
protected override async Task Create(YdbDataSource client, string createTableSql, int operationTimeout)
2626
{

slo/src/Internal/SloContext.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Diagnostics;
2+
using System.Text.Json.Serialization;
23
using System.Threading.RateLimiting;
34
using Microsoft.Extensions.Logging;
45
using Prometheus;
@@ -128,7 +129,6 @@ public async Task Run(RunConfig runConfig)
128129
}
129130

130131
await prometheus.StopAsync();
131-
// await MetricReset(promPgwEndpoint);
132132

133133
Logger.LogInformation("Run task is finished");
134134
return;
@@ -141,7 +141,7 @@ Task ShootingTask(RateLimiter rateLimitPolicy, string operationType,
141141
{ "operation_type", operationType },
142142
{ "sdk", "dotnet" },
143143
{ "sdk_version", Environment.Version.ToString() },
144-
{ "workload", Job },
144+
{ "workload", "workload-" + Job },
145145
{ "workload_version", "0.0.0" }
146146
}
147147
);
@@ -270,13 +270,6 @@ Task ShootingTask(RateLimiter rateLimitPolicy, string operationType,
270270

271271
return (attempts, code);
272272
}
273-
274-
private async Task MetricReset(string promPgwEndpoint)
275-
{
276-
var deleteUri = $"{promPgwEndpoint}/job/{Job}";
277-
using var httpClient = new HttpClient();
278-
await httpClient.DeleteAsync(deleteUri);
279-
}
280273
}
281274

282275
public static class StatusCodeExtension

slo/src/TableService/SloContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace TableService;
1010
public class SloContext : SloContext<TableClient>
1111
{
1212
private readonly TxControl _txControl = TxControl.BeginSerializableRW().Commit();
13-
protected override string Job => "workload-table-service";
13+
protected override string Job => "TableService";
1414

1515
protected override async Task Create(TableClient client, string createTableSql, int operationTimeout)
1616
{

0 commit comments

Comments
 (0)