[英]Problem monitoring Couchbase using Google Ops Agent
I have enabled the Google Ops Agent on our Couchbase servers, and the logs are collecting fine.我已经在我们的 Couchbase 服务器上启用了 Google Ops Agent,并且日志收集得很好。 The documentation says to ingest metrics you need to specify the endpoint url文档说要摄取指标,您需要指定端点 url
https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/third-party/couchbase?hl=en_GB&_ga=2.90344287.-478137036.1661114061 https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/third-party/couchbase?hl=en_GB&_ga=2.90344287.-478137036.1661114061
"endpoint http://localhost:8091 The URL of the node to monitor." “端点 http://localhost:8091 要监控的节点的 URL。”
The config.yaml file is configured as below, but the service doesn't restart. config.yaml 文件配置如下,但服务没有重启。 Remove the line for endpoint and it starts ok.删除端点的线,它开始正常。 I've tried localhost, ip address FQDN without much success.我试过 localhost,ip 地址 FQDN 没有多大成功。
metrics:
receivers:
couchbase:
type: couchbase
endpoint: http:localhost:8091
username: [username]
password: [password]
collection_interval: 60s
service:
pipelines:
couchbase:
receivers:
- couchbase
Any help would be greatly appreciated!任何帮助将不胜感激!
The correct format is localhost:8091
, without the http://
.正确的格式是localhost:8091
,没有http://
。 Note that this is the default anyhow and doesn't need to be configured explicitly if you're running on port 8091.请注意,无论如何这是默认设置,如果您在端口 8091 上运行,则不需要显式配置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.