本文介绍了带有或不带有堆栈驱动程序的GCP Compute Engine中的内存使用情况监视的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Cloud Platform- GCP Compute Engine

Cloud Platform - GCP Compute Engine

OS- Ubuntu,16.04 LTS

我想查看内存利用率图,就像CPU利用率(compute.googleapis.com/instance/cpu/utilization)一样.

I want to see memory utilization graph just like CPU utilization (compute.googleapis.com/instance/cpu/utilization).

即使启用了堆栈驱动程序,我也无法找到任何方法来监视我的Compute Engine内存利用率.

I could not find any way to monitor my Compute Engine memory utilization even if Stack-driver is enabled.

我检查了 https://cloud.google.com/monitoring/api /metrics_gcp#gcp-compute ,并且没有用于内存使用率监视的端点.

I checked https://cloud.google.com/monitoring/api/metrics_gcp#gcp-compute and there is no endpoint for memory utilization monitoring.

我也尝试了监视端点的stackdriver agent,但是它不起作用(agent.googleapis.com/memory/percent_used) https://cloud.google.com/monitoring/api/metrics_agent#agent-记忆.

I tried stackdriver agent monitoring endpoints also but it is not working ( agent.googleapis.com/memory/percent_used) https://cloud.google.com/monitoring/api/metrics_agent#agent-memory.

有人知道如何在GCP计算引擎实例监视中或通过堆栈驱动程序监视来查看内存利用率图

Does anyone know how can I see memory utilization graph in GCP compute engine instance monitoring or via Stack Driver Monitoring

推荐答案

已编辑

  • 在Stackdriver Monitoring上 :(您必须在VM实例上安装代理)

  • On Stackdriver Monitoring: (You will have to install the agent on your VM Instance)

  1. 按照本指南安装Stackdriver Monitoring Agent.
  2. 通过单击导航菜单-> Stackdriver->监视来打开stackdriver监视API
  3. 一旦您在左侧,您将单击资源"->度量标准浏览器".
  4. 关于资源类型:GCE VM实例/指标:内存使用率"和/或内存使用率".
  5. 在过滤器上,选择名称",值" :(您的实例的名称)您现在应该看到内存利用率的图形指标.
  1. Install the Stackdriver Monitoring Agent following this guide.
  2. Open stackdriver monitoring API by clicking Navigation Menu -> Stackdriver -> Monitoring
  3. Once you are there on the left side you will click on "Resources" -> Metric explorer.
  4. On resource type: GCE VM Instance / Metrics: "Memory usage" and/or "Memory utilization".
  5. On filter, select Name, Value: (Name of your instance) You should see now the graphic metrics of the Memory utilization.

这篇关于带有或不带有堆栈驱动程序的GCP Compute Engine中的内存使用情况监视的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 09:49