Skip to content

Commit

Permalink
[Metricbeat] Add googlecloud compute overview dashboard (#16819)
Browse files Browse the repository at this point in the history
* Add googlecloud compute overview dashboard
  • Loading branch information
kaiyan-sheng committed Mar 18, 2020
1 parent c06c106 commit 578e9b8
Show file tree
Hide file tree
Showing 6 changed files with 977 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Align fields to ECS and add more tests for the azure module. {issue}16024[16024] {pull}16754[16754]
- Add additional cgroup fields to docker/diskio{pull}16638[16638]
- Add PubSub metricset to Google Cloud Platform module {pull}15536[15536]
- Add overview dashboard for googlecloud compute metricset. {issue}16534[16534] {pull}16819[16819]
- Add Prometheus remote write endpoint {pull}16609[16609]
- Release STAN module as GA. {pull}16980[16980]
- Release ActiveMQ module as GA. {issue}17047[17047] {pull}17049[17049]
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions metricbeat/docs/modules/googlecloud.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,24 @@ Google Cloud Platform pricing depends of the number of requests you do to their

For example, if Compute Metricset fetches 14 metrics (which is the number of metrics fetched in the early beta version). Each of those metrics will attempt an API call to Compute API to retrieve also their metadata. Because you have 20 different instances, the total number of API calls that will be done on each refresh period are: 14 metrics + 20 instances = 34 API requests every 5 minutes if that is your current Period. 9792 API requests per day with one zone. If you add 2 zones more with the same amount of instances you'll have 19584 API requests per day (9792 on each zone) or around 587520 per month for the Compute Metricset. This maths must be done for each different Metricset with slight variations.

[float]
== Metricsets
Currently, we have `compute`, `loadbalancing`, and `pubsub` metricset in
`googlecloud` module.

[float]
=== `compute`
Compute Metricset to fetch metrics from https://cloud.google.com/compute/[Compute Engine]
Virtual Machines in Google Cloud Platform. The `compute` metricset contains some of the
metrics exported from the https://cloud.google.com/monitoring/api/metrics_gcp#gcp-compute[Stackdriver API].
Extra labels and metadata are also extracted using the https://cloud.google.com/compute/docs/reference/rest/v1/instances/get[Compute API].
This is enough to get most of the info associated with a metric like compute
labels and metadata and metric specific Labels.

The `compute` metricset comes with a predefined dashboard:

image::./images/metricbeat-googlecloud-compute-overview.png[]


[float]
=== Example configuration
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/docs/modules_list.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ This file is generated! See scripts/mage/docs_collector.go
|<<metricbeat-module-golang,Golang>> |image:./images/icon-yes.png[Prebuilt dashboards are available] |
.2+| .2+| |<<metricbeat-metricset-golang-expvar,expvar>>
|<<metricbeat-metricset-golang-heap,heap>>
|<<metricbeat-module-googlecloud,Google Cloud Platform>> beta[] |image:./images/icon-no.png[No prebuilt dashboards] |
|<<metricbeat-module-googlecloud,Google Cloud Platform>> beta[] |image:./images/icon-yes.png[Prebuilt dashboards are available] |
.3+| .3+| |<<metricbeat-metricset-googlecloud-compute,compute>> beta[]
|<<metricbeat-metricset-googlecloud-loadbalancing,loadbalancing>> beta[]
|<<metricbeat-metricset-googlecloud-pubsub,pubsub>> beta[]
Expand Down
18 changes: 18 additions & 0 deletions x-pack/metricbeat/module/googlecloud/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,21 @@ A recommended `period` value between fetches is between 5 and 10 minutes, depend
Google Cloud Platform pricing depends of the number of requests you do to their API's. Here you have some information that you can use to make an estimation of the pricing you should expect. For example, imagine that you have a Compute Metricset activated and you don't want to exclude labels. You have a total of 20 instances running in a particular GCP project, region and zone.

For example, if Compute Metricset fetches 14 metrics (which is the number of metrics fetched in the early beta version). Each of those metrics will attempt an API call to Compute API to retrieve also their metadata. Because you have 20 different instances, the total number of API calls that will be done on each refresh period are: 14 metrics + 20 instances = 34 API requests every 5 minutes if that is your current Period. 9792 API requests per day with one zone. If you add 2 zones more with the same amount of instances you'll have 19584 API requests per day (9792 on each zone) or around 587520 per month for the Compute Metricset. This maths must be done for each different Metricset with slight variations.

[float]
== Metricsets
Currently, we have `compute`, `loadbalancing`, and `pubsub` metricset in
`googlecloud` module.

[float]
=== `compute`
Compute Metricset to fetch metrics from https://cloud.google.com/compute/[Compute Engine]
Virtual Machines in Google Cloud Platform. The `compute` metricset contains some of the
metrics exported from the https://cloud.google.com/monitoring/api/metrics_gcp#gcp-compute[Stackdriver API].
Extra labels and metadata are also extracted using the https://cloud.google.com/compute/docs/reference/rest/v1/instances/get[Compute API].
This is enough to get most of the info associated with a metric like compute
labels and metadata and metric specific Labels.

The `compute` metricset comes with a predefined dashboard:

image::./images/metricbeat-googlecloud-compute-overview.png[]
Loading

0 comments on commit 578e9b8

Please sign in to comment.