Skip to content

Commit

Permalink
Log collect parser (#3006)
Browse files Browse the repository at this point in the history
* tbtc faucet bot to 0.0.4

* use proper parse for log collect
  • Loading branch information
yourmoonlight authored Dec 3, 2024
1 parent 9af6f55 commit d618b46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion kube/promtail/promtail-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ data:
kubernetes_sd_configs:
- role: pod
pipeline_stages:
- docker: {}
- regex:
expression: '^(?P<timestamp>[^ ]+ [^ ]+) (?P<level>[^ ]+) (?P<message>.*)$'
- labels:
level: level
- output:
source: message
relabel_configs:
- source_labels:
- __meta_kubernetes_pod_node_name
Expand Down
2 changes: 1 addition & 1 deletion kube/testnet/tbtc-faucet/tbtc-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d618b46

Please sign in to comment.