Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3637

How to list specific resources (ex vm,cpu,memory) metrics with agent.googleapis.com/agent/ through Postman

$
0
0

I want to get the agent metrics in Google Cloud for resources such as cpu,vm, memory etc (they have already installed agents in the vms). When I use metric.type=compute.googleapis.com/instance/usage_time, I am able to get the metrics through Postman through the below restapi call with compute.googleapis.com:

 https://monitoring.googleapis.com/v3/projects/<projectname>/timeSeries?key=XSDXCXCDDDDCDE#$# &interval.endTime=2020-06-14T19:58:17.140600Z&interval.startTime=2020-05-14T18:58:17.140600Z&filter=metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND        metric.labels.instance_name = "i-xyz"&aggregation.perSeriesAligner=ALIGN_SUM&aggregation.alignmentPeriod=3600s&pageSize=20

But when I want to get the agent metrics using agent.googleapis.com agent it is not working:

https://monitoring.googleapis.com/v3/projects/<projectname>?filter=metric.type="agent.googleapis.com/agent/usage_time"

I am getting the below 404 error for any agent metrics:

<!DOCTYPE html><html lang=en><meta charset=utf-8><meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width"><title>Error 404 (Not Found)!!1</title><style>    * {        margin: 0;        padding: 0    }    html,    code {        font: 15px/22px arial, sans-serif    }

How can I get the agent metrics through Postman?


Viewing all articles
Browse latest Browse all 3637

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>