简体   繁体   English

Google 监视器 - 带有 CPU、Memory 和 GCE 过滤器的磁盘使用情况的仪表板

[英]Google monitor - Dashboard with CPU, Memory and Disk usages with GCE filter

I'm trying to set up Googlecloud monitor Dashboard for my GCE's.我正在尝试为我的 GCE 设置 Googlecloud 监控仪表板。 I'm expiriancing some difficulties though when tring to filter.我在尝试过滤时遇到了一些困难。 I have serveral GCE, and some are not running and are as backup, but are still displayed in the Cloud Monitor.我有几个 GCE,有些没有运行并作为备份,但仍显示在 Cloud Monitor 中。

I would like to monitor 3 metrics (for now): CPU, Mem, Disk usage.我想监控 3 个指标(目前):CPU、内存、磁盘使用情况。 CPU wasnt a problem as i could just filter by GCE instance name: CPU 不是问题,因为我可以按 GCE 实例名称过滤:

在此处输入图像描述

But now if i try to do the same for Memory and Disk usage, I dont have the option to filter as I did using CPU.但是现在如果我尝试对 Memory 和磁盘使用情况做同样的事情,我没有像使用 CPU 那样进行过滤的选项。 I tried serveral different approaches like filter by "metadata labels:name", "label", "zone" etc. - all result in a "no data avalible for selected timeframe" (without the filter data is displayed).我尝试了几种不同的方法,例如按“元数据标签:名称”、“标签”、“区域”等过滤 - 所有结果都导致“在选定的时间范围内没有可用的数据”(不显示过滤数据)。 I feel like I'm missing something trivial:我觉得我错过了一些微不足道的东西:

在此处输入图像描述

What am I doing wrong?我究竟做错了什么? How can I filter by Instancename?如何按实例名称过滤? Do i need to Activate some logger on Google cloud?我需要在谷歌云上激活一些记录器吗? Thank you verymuch in advance!非常感谢您提前!

Use the Cloud Monitoring agent to gather system and application metrics (disk, CPU, network and process) from VM instances and send them to Monitoring.使用 Stackdriver Monitoring 代理从 VM 实例收集系统和应用指标(磁盘、CPU、网络和进程)并将它们发送到 Monitoring。

Install the Monitoring Agent 安装监控代理

Use the Cloud Logging agent to gather logging metrics from VM instances and send them to Cloud Monitoring.使用 Stackdriver Logging 代理从 VM 实例收集日志记录指标并将其发送到 Stackdriver Monitoring。

Install the Logging Agent安装日志代理

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM