Get vm uptime data from stackdriver-agent in gcp?

人盡茶涼 提交于 2021-02-11 14:07:56

问题


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.


回答1:


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.

Gathered metrics are represented in the customizable Dashboards of the Cloud Console.

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.



来源:https://stackoverflow.com/questions/61335593/get-vm-uptime-data-from-stackdriver-agent-in-gcp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!