问题描述
我的GCP项目vm安装在代理下面:google_osconfig_agent/opt/stackdriver/collected/sbin/stackdriver-collected.我可以使用stackdriver-agent获取一些数据吗?例如.运行一些命令以获取所有实例的存储,正常运行时间等.
My GCP project vm installed below agents:google_osconfig_agent/opt/stackdriver/collectd/sbin/stackdriver-collectd.Can i use the stackdriver-agent to get some data? eg. run some commands to get all instances storage, uptime etc.
推荐答案
云监控代理从VM实例收集指标,并将其发送到Google Cloud Monitoring.其中有指标,用于正常运行时间和磁盘利用率.
The Cloud Monitoring agent gathers metrics from VM instances and sends them to Google Cloud Monitoring. Among many there are metrics for uptime and disk utilization.
收集的指标在Cloud Console的可自定义的仪表板中表示.
Gathered metrics are represented in the customizable Dashboards of the Cloud Console.
如果您需要以更复杂的方式过滤和处理指标,则可以使用监控API 适用于C#,Go,Java,Node.js,PHP,Python,Ruby.
If you need to filter and process metrics in a more sophisticated way, you can use the Monitoring API available for C#, Go, Java, Node.js, PHP, Python, Ruby.
这篇关于从gcp中的stackdriver-agent获取虚拟机正常运行时间数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!