From d618b46d18234b16dac5257046bbdafcf08eca8a Mon Sep 17 00:00:00 2001 From: yourmoonlight Date: Tue, 3 Dec 2024 19:23:13 +0800 Subject: [PATCH] Log collect parser (#3006) * tbtc faucet bot to 0.0.4 * use proper parse for log collect --- kube/promtail/promtail-config.yaml | 7 ++++++- kube/testnet/tbtc-faucet/tbtc-deployment.yaml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/kube/promtail/promtail-config.yaml b/kube/promtail/promtail-config.yaml index 1c970e0615..41b9fadfdd 100644 --- a/kube/promtail/promtail-config.yaml +++ b/kube/promtail/promtail-config.yaml @@ -20,7 +20,12 @@ data: kubernetes_sd_configs: - role: pod pipeline_stages: - - docker: {} + - regex: + expression: '^(?P[^ ]+ [^ ]+) (?P[^ ]+) (?P.*)$' + - labels: + level: level + - output: + source: message relabel_configs: - source_labels: - __meta_kubernetes_pod_node_name diff --git a/kube/testnet/tbtc-faucet/tbtc-deployment.yaml b/kube/testnet/tbtc-faucet/tbtc-deployment.yaml index 28a098d7c8..a20ae68278 100644 --- a/kube/testnet/tbtc-faucet/tbtc-deployment.yaml +++ b/kube/testnet/tbtc-faucet/tbtc-deployment.yaml @@ -15,7 +15,7 @@ spec: spec: containers: - name: tbtc-discord-bot - image: ghcr.io/yourmoonlight/tbtc-discord-bot:0.0.3 + image: ghcr.io/yourmoonlight/tbtc-discord-bot:0.0.4 volumeMounts: - name: data mountPath: /app/data