Created
May 15, 2023 13:33
-
-
Save xakrume/540ed34b4b24642d46c372b91d68d943 to your computer and use it in GitHub Desktop.
Revisions
-
xakrume created this gist
May 15, 2023 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ pipeline_stages: - logfmt: mapping: timestamp: time level: - match: ... - match: selector: '{job="exporters"}' stages: - regex: source: service expression: .+-(?P<environment>(stable|testing|unstable)$) - labels: environment: - template: source: environment template: '{% raw %}{{ if .Value }}{{ .Value }}{{ else }}default{{ end }}{% endraw %}'