Skip to content

Commit 377aa21

Browse files
update labels
1 parent d815c42 commit 377aa21

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

slo/src/Internal/SloContext.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public async Task Run(RunConfig runConfig)
128128
}
129129

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

133133
Logger.LogInformation("Run task is finished");
134134
return;
@@ -137,11 +137,14 @@ Task ShootingTask(RateLimiter rateLimitPolicy, string operationType,
137137
Func<T, RunConfig, Gauge?, Task<(int, StatusCode)>> action)
138138
{
139139
var metricFactory = Metrics.WithLabels(new Dictionary<string, string>
140-
{
141-
{ "operation_type", operationType },
142-
{ "sdk", "dotnet" },
143-
{ "sdkVersion", Environment.Version.ToString() }
144-
});
140+
{
141+
{ "operation_type", operationType },
142+
{ "sdk", "dotnet" },
143+
{ "sdk_version", Environment.Version.ToString() },
144+
{ "workload", Job },
145+
{ "workload_version", "0.0.0" }
146+
}
147+
);
145148

146149
var okGauge = metricFactory.CreateGauge(
147150
"sdk_operations_success_total",

0 commit comments

Comments
 (0)