# Metricbeat GCP Billing metricset fails with timeout error

**URL:** https://discuss.elastic.co/t/metricbeat-gcp-billing-metricset-fails-with-timeout-error/336516
**Category:** Beats
**Tags:** metricbeat
**Created:** [June 20, 2023, 11:05pm UTC](https://discuss.elastic.co/t/metricbeat-gcp-billing-metricset-fails-with-timeout-error/336516 "2023-06-20T23:05:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Patr123](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@Patr123](https://discuss.elastic.co/u/Patr123)
#### Post date: [June 20, 2023, 11:05pm UTC](https://discuss.elastic.co/t/metricbeat-gcp-billing-metricset-fails-with-timeout-error/336516/1 "2023-06-20T23:05:32Z")

</div>

I enabled the gcp module for metricbeat and used the billing metricset as:

```auto
- module: gcp
  metricsets:
    - billing
  period: 24h
  project_id: "project"
  credentials_file_path: "/etc/metricbeat/service-account.json"
  dataset_id: "dataset-id"
  #table_pattern: "table pattern"
  #cost_type: "regular"

```

When I run the metricbeat module test I get the following error:  
`metricbeat test modules gcp`

```auto
gcp...
  billing...
    error... ERROR timeout waiting for an event

```

```auto
[root@server1 bin]# metricbeat test config
Config OK

```

My config looks ok, I get metrics from different modules like system and linux for example.

Not sure what I am doing wrong.  
Also my metricbeat logs are not populating but it could be related to something else.

---

<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: [July 19, 2023, 1:06am UTC](https://discuss.elastic.co/t/metricbeat-gcp-billing-metricset-fails-with-timeout-error/336516/2 "2023-07-19T01:06:13Z")

</div>

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