从gcp中的stackdriver-agent获取虚拟机正常运行时间数据? [英] Get vm uptime data from stackdriver-agent in gcp?

查看:52
本文介绍了从gcp中的stackdriver-agent获取虚拟机正常运行时间数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的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.

如果您需要以更复杂的方式过滤和处理指标,则可以使用

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获取虚拟机正常运行时间数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆