Skip to content

Commit

Permalink
add to unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
moh-osman3 committed Nov 10, 2022
1 parent 02bb878 commit 2e57707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/otel-allocator/prehook/relabel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,13 @@ var (
Regex: relabel.MustNewRegexp("(.*)"),
Separator: ";",
Modulus: 1,
TargetLabel: "tmp",
TargetLabel: "tmp-0",
Action: "hashmod",
Replacement: "$1",
},

{
SourceLabels: model.LabelNames{"tmp"},
SourceLabels: model.LabelNames{"tmp-$(SHARD)"},
Regex: relabel.MustNewRegexp("$(SHARD)"),
Separator: ";",
Action: "keep",
Expand Down

0 comments on commit 2e57707

Please sign in to comment.