0
点赞
收藏
分享

微信扫一扫

vector采集k8s日志

安装helm

curl -x proxy.ops.qianxin-inc.cn:3128 -O https://get.helm.sh/helm-v3.8.0-linux-amd64.tar.gz
sudo mv helm /usr/bin/

添加vector存储仓库

sudo helm repo add vector https://helm.vector.dev
sudo helm repo update

检查helm的配置

sudo helm show values vector/vector

将vector配置为agent

cat <<-'VALUES' > values.yaml
role: Agent
VALUES

install

sudo helm install vector vector/vector \
  --namespace vector \
  --create-namespace \
  --values values.yaml

update

sudo helm repo update && \
helm upgrade vector vector/vector \
  --namespace vector \
  --reuse-values

默认host_metrics, internal_metrics采集器结果,输出为prometheus_exporter,k8s日志打到了vector容器console

curl http://svc:9090/metrics

举报

相关推荐

0 条评论