Skip to content

Commit

Permalink
fix(vector): try again to remap
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim Shakavin committed Aug 20, 2024
1 parent ed8c59e commit cf49baf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: qbittorrent-emonoda
name: qbittorrent-tools-emonoda
spec:
interval: 30m
chart:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: qbit-manage
name: qbittorrent-tools-manage
spec:
interval: 30m
chart:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ transforms:
.custom_app_name = .pod_labels."app.kubernetes.io/name" || .pod_labels.app || .pod_labels."k8s-app" || "unknown"
# Drop pod_labels
del(.pod_labels)
unwrap_logs:
type: remap
inputs: ["kubernetes_remap"]
source: |
if contains(string!(.custom_app_name), "qbittorrent-tools") {
.log = .message
} else {
.log = encode_json(.)
}
del(.message)
#
# Sinks
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
context: ""
contexts: {}

0 comments on commit cf49baf

Please sign in to comment.