I got a monitoring project that is unable to see memory stats or query memory stats with MQL on servers that have the ops agent installed. But on the obervation tab in the resource project I can see the memory stats. any idea why?
Hello @gcp888 ,Welcome on Google Cloud Community.
Are you able to paste you MQL here? Perhaps you are not referring to metrics collected by agent.
Agent: "The "metric type" strings in this table must be prefixed with agent.googleapis.com/agent/"
Compute: The "metric type" strings in this table must be prefixed with compute.googleapis.com/
.
fetch gce_instance
| metric 'agent.googleapis.com/agent/memory_usage'
| group_by 1m, [value_memory_usage_mean: mean(value.memory_usage)]
| every 1m
| group_by [],
[value_memory_usage_mean_aggregate: aggregate(value_memory_usage_mean)]
Important: Keep in mind, that MQL will be deprecated this year. Google announced that PromQL will be default approach for monitoring language.
More info here: https://cloud.google.com/stackdriver/docs/deprecations/mql
--
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost