From 426321be07393f7500997e35282a4022a164a9f8 Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Thu, 24 Mar 2022 20:48:19 -0400 Subject: [PATCH] fix filebeat pod dying --- values.yaml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/values.yaml b/values.yaml index 1c8d403..023cb8c 100644 --- a/values.yaml +++ b/values.yaml @@ -51,12 +51,28 @@ filebeat: - logs_path: logs_path: "/var/log/containers/" output.logstash: - hosts: ["logstash-loki:5044"] + # TODO make vvv this depend on helm chart name + hosts: ["loki-stack-logstash:5044"] logstash: enabled: true image: grafana/logstash-output-loki imageTag: 1.0.1 + + service: + type: ClusterIP + ports: + - name: beats + port: 5044 + protocol: TCP + targetPort: 5044 + - name: http + port: 8080 + protocol: TCP + targetPort: 8080 + + # readiness probe seems to be failing (connection refused to port 9600) + filters: main: |- filter { @@ -74,13 +90,16 @@ logstash: remove_field => ["tags"] } } + + # TODO drop high cardinality data (https://grafana.com/docs/loki/latest/clients/logstash) outputs: main: |- output { loki { - url => "http://loki:3100/loki/api/v1/push" - username => "test" - password => "test" + # TODO this url may be wrong + url => "http://loki-stack:3100/loki/api/v1/push" + #username => "test" + #password => "test" } # stdout { codec => rubydebug } }