我在 Kubernetes 集群中使用 Elastic Heartbeat。
我正在尝试将谷歌云平台模块设置为 Heartbeat,文档说:
metricbeat.modules:
- module: googlecloud
metricsets:
- compute
region: "us-"
project_id: "your project id"
credentials_file_path: "your JSON credentials file path"
exclude_labels: false
period: 1m
Run Code Online (Sandbox Code Playgroud)
我有凭据.json 文件来访问 GCP,但是,我无法使用 Heartbeat 将此凭据放入 kubernetes pod 中。
我尝试使用 kubernetes 秘密,但模块配置不允许这样做。只需允许放置一条路径即可。
如何将此凭据放入我的心跳 Pod 中?
谢谢!