theshire/kubernetes/apps/observability/vector-agent/app/resources/vector.yml

36 lines
908 B
YAML
Raw Permalink Normal View History

2024-10-19 19:49:25 -05:00
---
data_dir: /vector-data-dir
sources:
internal_metrics:
type: internal_metrics
kubernetes_logs:
type: kubernetes_logs
use_apiserver_cache: true
pod_annotation_fields:
container_image: container_image
container_name: container_name
pod_labels: pod_labels
pod_name: pod_name
pod_annotations: ""
namespace_annotation_fields:
namespace_labels: ""
node_annotation_fields:
node_labels: ""
# https://github.com/vectordotdev/vector/issues/12014
# https://github.com/vectordotdev/vector/issues/13467
max_line_bytes: 131072 # 128 KiB
max_read_bytes: 131072 # 128 KiB
sinks:
prom_exporter:
type: prometheus_exporter
inputs: [internal_metrics]
address: 0.0.0.0:9090
vector:
type: vector
compression: true
version: "2"
address: vector-aggregator.observability:6000
inputs: ["kubernetes_logs"]