autoscaling:
  enabled: false
customConfig:
  api:
    address: 0.0.0.0:8686
    enabled: true
    playground: false
  data_dir: /vector-data-dir
  sinks:
    loki:
      compression: gzip
      encoding:
        codec: text
      endpoint: http://loki-ha-write.observability.svc.cluster.local:3100
      inputs:
      - all_logs
      labels:
        app: '{{ `{{ kubernetes.pod_name }}` }}'
        cluster: o11y-control-plane
        container: '{{ `{{ kubernetes.container_name }}` }}'
        namespace: '{{ `{{ kubernetes.pod_namespace }}` }}'
        node: '{{ `{{ kubernetes.pod_node_name }}` }}'
        stream: '{{ `{{ stream  }}` }}'
      out_of_order_action: accept
      type: loki
    loki-dataservice:
      compression: gzip
      encoding:
        codec: json
      endpoint: http://loki-dataservice-write.dataservice-infra.svc.cluster.local:3100
      inputs:
      - trans_dataservice_log
      labels:
        cluster: '{{"{{ cluster }}"}}'
        dataapp: '{{"{{ dataapp }}"}}'
        log_level: '{{"{{ level }}"}}'
      out_of_order_action: accept
      tenant_id: '{{"{{ org }}"}}'
      type: loki
    loki_sys_logs:
      compression: gzip
      encoding:
        codec: text
      endpoint: http://loki-ha-write.observability.svc.cluster.local:3100
      inputs:
      - journald
      labels:
        cluster: o11y-control-plane
        node: '{{ `{{ host }}` }}'
        syslog: '{{ "{{ SYSLOG_IDENTIFIER }}" }}'
      out_of_order_action: accept
      type: loki
    self_logs_sink:
      compression: gzip
      encoding:
        codec: text
      endpoint: http://loki-ha-write.observability.svc.cluster.local:3100
      inputs:
      - self_logs
      labels:
        app: vector_log_agent
        cluster: o11y-control-plane
        node: '{{ `{{ host }}` }}'
      out_of_order_action: accept
      type: loki
    self_metrics_sink:
      address: 0.0.0.0:9598
      inputs:
      - self_metrics
      type: prometheus_exporter
  sources:
    all_logs:
      fingerprint_lines: 2
      type: kubernetes_logs
    dataservice_custom_log:
      fingerprint:
        ignored_header_bytes: 0
        lines: 1
        strategy: checksum
      include:
      - /var/log/dataservice-customlog/endpoint_exec.log
      max_line_bytes: 10485760
      max_read_bytes: 10485760
      type: file
    journald:
      type: journald
    self_logs:
      type: internal_logs
    self_metrics:
      type: internal_metrics
  transforms:
    trans_dataservice_log:
      drop_on_abort: true
      drop_on_error: true
      inputs:
      - dataservice_custom_log
      source: |-
        . = parse_json!(.message)
        .timestamp=parse_timestamp!(del(.time), format: "%Y/%m/%d %T%.3f %:z")
      type: remap
extraVolumeMounts:
- mountPath: /etc/machine-id
  name: machine-id
  readOnly: true
extraVolumes:
- hostPath:
    path: /etc/machine-id
    type: File
  name: machine-id
haproxy:
  enabled: false
image:
  pullPolicy: IfNotPresent
  repository: gcr.io/pingcap-public/dbaas/vector
  tag: 0.37.1-2d79df-debian
ingress:
  enabled: false
livenessProbe:
  httpGet:
    path: /health
    port: api
persistence:
  hostPath:
    path: /var/lib/vector/01
podDisruptionBudget:
  enabled: false
podMonitor:
  enabled: false
psp:
  create: false
rbac:
  create: true
readinessProbe:
  httpGet:
    path: /health
    port: api
resources:
  limits:
    cpu: 500m
    memory: 1000Mi
  requests:
    cpu: 10m
    memory: 100Mi
role: Agent
rollWorkload: true
service:
  enabled: false
serviceAccount:
  automountToken: true
  create: true
tolerations:
- operator: Exists
