-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix panic when setting only_counter for default relabelings (#279)
Deduplicate labels used in `Collection.init()` in the same way as in `processSource`. Side-Effect: When overriding `method` one needs to manually add the split/whitelist config from `DefaultRelabelings` in their own config file. Resolve #216
- Loading branch information
Showing
4 changed files
with
51 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
listen { | ||
port = 4040 | ||
} | ||
|
||
namespace "nginx" { | ||
source = { | ||
files = [ | ||
".behave-sandbox/access.log" | ||
] | ||
} | ||
|
||
format = "$remote_addr - $remote_user [$time_local] \"$request\" $status $body_bytes_sent \"$http_referer\" \"$http_user_agent\" \"$http_x_forwarded_for\" $request_time $upstream_response_time" | ||
|
||
relabel "status" { | ||
from = "status" | ||
only_counter = true | ||
} | ||
relabel "method" { | ||
from = "request" | ||
only_counter = true | ||
split = 1 | ||
whitelist = [ "GET" ] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters