diff options
author | makefunstuff <[email protected]> | 2024-06-28 20:01:17 +0200 |
---|---|---|
committer | makefunstuff <[email protected]> | 2024-06-28 20:01:17 +0200 |
commit | e94042689dcddf3e95bcc7d961d63fcc520441ba (patch) | |
tree | fbcb743560a4c6d1abf1a81f71b85faaa1271a52 /tools/monitoring/values.yaml | |
parent | c45de25c558f76c7805f50f417e3a7fd09a3794d (diff) | |
download | k3s-lab-e94042689dcddf3e95bcc7d961d63fcc520441ba.tar.gz |
logstash
Diffstat (limited to '')
-rw-r--r-- | tools/monitoring/values.yaml | 46 |
1 files changed, 29 insertions, 17 deletions
diff --git a/tools/monitoring/values.yaml b/tools/monitoring/values.yaml index a19ba65..fb3c6d9 100644 --- a/tools/monitoring/values.yaml +++ b/tools/monitoring/values.yaml @@ -25,12 +25,12 @@ grafana: - name: Prometheus type: prometheus access: proxy - url: http://prometheus-server.monitoring.svc.cluster.local + url: http://prometheus-server isDefault: true - name: Elasticsearch type: elasticsearch access: proxy - url: http://elasticsearch-master.monitoring.svc.cluster.local:9200 + url: http://elasticsearch-master jsonData: esVersion: 7 timeField: "@timestamp" @@ -155,15 +155,6 @@ opentelemetry-collector: protocols: grpc: {} http: {} - filelog: - include: ["/var/log/containers/*.log"] - operators: - - type: json_parser - timestamp: - parse_from_field: time - layout: '%Y-%m-%dT%H:%M:%S.%fZ' - severity: - parse_from_field: severity processors: batch: {} resource: @@ -177,15 +168,36 @@ opentelemetry-collector: endpoint: "http://prometheus-server.monitoring.svc.cluster.local/api/v1/write" logging: loglevel: debug - otlphttp: - endpoint: "http://elasticsearch-master.monitoring.svc.cluster.local:9200" service: pipelines: metrics: receivers: [otlp] processors: [batch] exporters: [prometheusremotewrite] - logs: - receivers: [otlp, filelog] - processors: [batch, resource] - exporters: [logging, otlphttp] + +logstash: + enabled: true + volumeClaimTemplate: + accessModes: [ "ReadWriteOnce" ] + resources: + requests: + storage: 10Gi + logstashConfig: + logstash.yml: | + http.host: "0.0.0.0" + xpack.monitoring.elasticsearch.hosts: [ "http://elasticsearch-master:9200" ] + logstashPipeline: + logstash.conf: | + input { + tcp { + port => 5044 + codec => json + } + } + output { + elasticsearch { + hosts => ["http://elasticsearch-master:9200"] + index => "logstash-%{+YYYY.MM.dd}" + } + } + |