about summary refs log tree commit diff
path: root/tools/monitoring/values.yaml
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-06-28 19:44:15 +0200
committermakefunstuff <[email protected]>2024-06-28 19:44:15 +0200
commitc45de25c558f76c7805f50f417e3a7fd09a3794d (patch)
tree14114e5d45272656424d428ee96c57da4eb95a48 /tools/monitoring/values.yaml
parent791dfea63286a3f8cd23f8058c788c26fc25f99c (diff)
downloadk3s-lab-c45de25c558f76c7805f50f417e3a7fd09a3794d.tar.gz
again
Diffstat (limited to '')
-rw-r--r--tools/monitoring/values.yaml14
1 files changed, 9 insertions, 5 deletions
diff --git a/tools/monitoring/values.yaml b/tools/monitoring/values.yaml
index 6ccc866..a19ba65 100644
--- a/tools/monitoring/values.yaml
+++ b/tools/monitoring/values.yaml
@@ -155,11 +155,15 @@ opentelemetry-collector:
         protocols:
           grpc: {}
           http: {}
-      k8s_logs:
+      filelog:
+        include: ["/var/log/containers/*.log"]
         operators:
-          - type: extract
-            config:
-              from: kubernetes.annotations
+          - type: json_parser
+            timestamp:
+              parse_from_field: time
+              layout: '%Y-%m-%dT%H:%M:%S.%fZ'
+            severity:
+              parse_from_field: severity
     processors:
       batch: {}
       resource:
@@ -182,6 +186,6 @@ opentelemetry-collector:
           processors: [batch]
           exporters: [prometheusremotewrite]
         logs:
-          receivers: [otlp, k8s_logs]
+          receivers: [otlp, filelog]
           processors: [batch, resource]
           exporters: [logging, otlphttp]