# Metricbeat not retrieving GCP metrics

**URL:** https://discuss.elastic.co/t/metricbeat-not-retrieving-gcp-metrics/271562
**Category:** Beats
**Tags:** metricbeat
**Created:** [April 28, 2021, 9:50pm UTC](https://discuss.elastic.co/t/metricbeat-not-retrieving-gcp-metrics/271562 "2021-04-28T21:50:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Francisco\_Gomez1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francisco_gomez1/32/78301_2.png) [@Francisco\_Gomez1](https://discuss.elastic.co/u/Francisco_Gomez1)
#### Post date: [April 28, 2021, 9:50pm UTC](https://discuss.elastic.co/t/metricbeat-not-retrieving-gcp-metrics/271562/1 "2021-04-28T21:50:00Z")

</div>

Hi im trying to use metricbeat to monitor a GCP instance, i followed all the steps presents in: [Monitor Google Cloud Platform | Observability Guide [7.12] | Elastic](https://www.elastic.co/guide/en/observability/current/monitor-gcp.html) this tutorial.

But when i try to test my GCP connection i got an:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/d/2df9e78809bfcbc3e808d8d90bdfe1b4647873d8.png)

Therefore i dont get any GCP metric when i run metricbeat, i will anex all the relevant information, the most weird thing is that GCP actually is recieving the requests:

gcp.yml:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/8/581f335d0fcb2061d0740c6aab9a94e5773502a1.png)

metricbeat -e logs:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/3/c3fa0029b39a35da8384cba977812da15c97f087.png)

After that i only get in the console

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/f/ef3a6c0582ca71c43f0d611621ab807c35f140dd.png)  
GCP Side:  
Here we can see we are receiving the petitions.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/6/269daf1346048285fb81e744dd6c3a0ea8139f8e.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/5/d52e183c09ea2250fe2383828b9fde65c32e9072.png)

These are the roles of my service account  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/2/026525311f585d3fadf6c2c6772934831ddd8872.png)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 26, 2021, 11:51pm UTC](https://discuss.elastic.co/t/metricbeat-not-retrieving-gcp-metrics/271562/2 "2021-05-26T23:51:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
