helm에 repo 추가
helm repo add influxdata https://helm.influxdata.com/
helm update
helm repo update
네임스페이스 정의
export NAMESPACE=<namespace>
helm에서 telegraf 설치
helm upgrade --install telegraf-operator influxdata/telegraf-operator -n $NAMESPACE
설정파일 생성 및 적용
아래 내용과 같은 values.yaml 파일 생성
image:
sidecarImage: "docker.io/library/telegraf:1.24.2"
classes:
secretName: "telegraf-operator-classes"
default: "infra"
data:
infra: |
[[outputs.opentelemetry]]
service_address = "<coralogix_otel_endpoint>"
compression = "gzip"
[outputs.opentelemetry.coralogix]
private_key = "<private_key>"
application = "$NAMESPACE"
subsystem = "$HOSTNAME"
[global_tags]
env = "ci"
hostname = "$HOSTNAME"
nodename = "$NODENAME"
namespace = "$NAMESPACE"
type = "infra"