Skip to content

Commit ad760ba

Browse files
fixup! feat: optional id label for all metrics
1 parent d381ed9 commit ad760ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: internal/run/main_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func TestMain(m *testing.M) {
3030
if err != nil {
3131
log.Fatal(err)
3232
}
33-
err = os.Setenv("PROMETHEUS_ID_LABEL", fakePrometheusID)
33+
err = os.Setenv("PROMETHEUS_LABEL_ID", fakePrometheusID)
3434
if err != nil {
3535
log.Fatal(err)
3636
}

Diff for: internal/run/test_runner.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func NewRun(options options.RunOptions, t *api.Trigger) (*Run, error) {
4949
run.pusher = run.pusher.Grouping("namespace", namespaceLabel)
5050
}
5151

52-
idLabel := os.Getenv("PROMETHEUS_ID_LABEL")
52+
idLabel := os.Getenv("PROMETHEUS_LABEL_ID")
5353
if idLabel != "" {
5454
run.pusher = run.pusher.Grouping("id", idLabel)
5555
}

0 commit comments

Comments
 (0)