Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Metricbeat] Add regions support in googlecloud module #15780

Closed
kaiyan-sheng opened this issue Jan 23, 2020 · 0 comments · Fixed by #16203
Closed

[Metricbeat] Add regions support in googlecloud module #15780

kaiyan-sheng opened this issue Jan 23, 2020 · 0 comments · Fixed by #16203
Assignees
Labels
enhancement Metricbeat Metricbeat Team:Integrations Label for the Integrations team

Comments

@kaiyan-sheng
Copy link
Contributor

Right now in googlecloud module, we can specify a specific zone in each configuration section. For example if I want to collect compute metrics from all three zones under europe-west1 region, I have to specify three sections:

- module: googlecloud
  metricsets:
    - compute
  zone: "europe-west1-b"
  project_id: "test"
  credentials_file_path: "/Users/kaiyansheng/Downloads/test-d17781618202.json"
  exclude_labels: false
  period: 300s
- module: googlecloud
  metricsets:
    - compute
  zone: "europe-west1-c"
  project_id: "test"
  credentials_file_path: "/Users/kaiyansheng/Downloads/test-d17781618202.json"
  exclude_labels: false
  period: 300s
- module: googlecloud
  metricsets:
    - compute
  zone: "europe-west1-d"
  project_id: "test"
  credentials_file_path: "/Users/kaiyansheng/Downloads/test-d17781618202.json"
  exclude_labels: false
  period: 300s

It will be useful to add a regions parameter in config which makes this module automatically goes to collect metrics from the zones that belong to the same region. For example:

- module: googlecloud
  metricsets:
    - compute
  regions: 
    - europe-west1
  project_id: "test"
  credentials_file_path: "/Users/kaiyansheng/Downloads/test-d17781618202.json"
  exclude_labels: false
  period: 300s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Metricbeat Metricbeat Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants