forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Metricbeat] Add Load Balancing metricset to Google Cloud Platform mo…
…dule (elastic#15559)
- Loading branch information
Showing
15 changed files
with
573 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
metricbeat/docs/modules/googlecloud/loadbalancing.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//// | ||
This file is generated! See scripts/mage/docs_collector.go | ||
//// | ||
|
||
[[metricbeat-metricset-googlecloud-loadbalancing]] | ||
=== Google Cloud Platform loadbalancing metricset | ||
|
||
beta[] | ||
|
||
include::../../../../x-pack/metricbeat/module/googlecloud/loadbalancing/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-googlecloud,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../../x-pack/metricbeat/module/googlecloud/loadbalancing/_meta/data.json[] | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
174 changes: 174 additions & 0 deletions
174
x-pack/metricbeat/module/googlecloud/loadbalancing/_meta/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
{ | ||
"@timestamp": "2020-01-14T21:14:00.000Z", | ||
"@metadata": { | ||
"beat": "metricbeat", | ||
"type": "_doc", | ||
"version": "8.0.0" | ||
}, | ||
"host": { | ||
"name": "mcastro", | ||
"architecture": "x86_64", | ||
"os": { | ||
"version": "", | ||
"family": "", | ||
"name": "Antergos Linux", | ||
"kernel": "5.4.3-arch1-1", | ||
"platform": "antergos" | ||
}, | ||
"id": "54f70115bae545cbac2b150f254472a0", | ||
"containerized": false, | ||
"hostname": "mcastro" | ||
}, | ||
"agent": { | ||
"type": "metricbeat", | ||
"ephemeral_id": "ddb5f424-578e-4c51-ac74-08447827a4b1", | ||
"hostname": "mcastro", | ||
"id": "7e36a073-1a32-4a94-b65b-4c7f971fb228", | ||
"version": "8.0.0" | ||
}, | ||
"service": { | ||
"type": "googlecloud" | ||
}, | ||
"cloud": { | ||
"account": { | ||
"id": "elastic-metricbeat" | ||
}, | ||
"provider": "googlecloud" | ||
}, | ||
"event": { | ||
"dataset": "googlecloud.loadbalancing", | ||
"module": "googlecloud", | ||
"duration": 908872754 | ||
}, | ||
"metricset": { | ||
"name": "loadbalancing", | ||
"period": 900000 | ||
}, | ||
"googlecloud": { | ||
"labels": { | ||
"metrics": { | ||
"response_code": "502", | ||
"cache_result": "DISABLED", | ||
"proxy_continent": "Europe", | ||
"client_country": "France", | ||
"response_code_class": "500", | ||
"protocol": "HTTP/1.1" | ||
}, | ||
"resource": { | ||
"matched_url_path_rule": "UNMATCHED", | ||
"backend_target_name": "my-backed", | ||
"backend_type": "INVALID_BACKEND", | ||
"backend_scope_type": "INVALID_BACKEND", | ||
"url_map_name": "test-lb", | ||
"forwarding_rule_name": "test-lb-forwarding-rule", | ||
"region": "global", | ||
"backend_scope": "INVALID_BACKEND", | ||
"target_proxy_name": "test-lb-target-proxy", | ||
"backend_target_type": "BACKEND_SERVICE", | ||
"backend_name": "INVALID_BACKEND" | ||
} | ||
}, | ||
"loadbalancing": { | ||
"https": { | ||
"frontend_tcp_rtt": { | ||
"count": 3, | ||
"mean": 27, | ||
"bucket_options": { | ||
"Options": { | ||
"ExponentialBuckets": { | ||
"growth_factor": 1.4, | ||
"scale": 1, | ||
"num_finite_buckets": 66 | ||
} | ||
} | ||
}, | ||
"bucket_counts": [ | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
3 | ||
] | ||
}, | ||
"request_bytes_count": 1281, | ||
"request_count": 3, | ||
"response_bytes_count": 1464, | ||
"backend_latencies": { | ||
"mean": 112.094, | ||
"bucket_options": { | ||
"Options": { | ||
"ExponentialBuckets": { | ||
"growth_factor": 1.4, | ||
"scale": 1, | ||
"num_finite_buckets": 66 | ||
} | ||
} | ||
}, | ||
"bucket_counts": [ | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
3 | ||
], | ||
"count": 3 | ||
}, | ||
"total_latencies": { | ||
"bucket_counts": [ | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
3 | ||
], | ||
"count": 3, | ||
"mean": 195, | ||
"bucket_options": { | ||
"Options": { | ||
"ExponentialBuckets": { | ||
"growth_factor": 1.4, | ||
"scale": 1, | ||
"num_finite_buckets": 66 | ||
} | ||
} | ||
} | ||
}, | ||
"backend_request_count": 3, | ||
"backend_response_bytes_count": 1464, | ||
"backend_request_bytes_count": 1281 | ||
} | ||
} | ||
}, | ||
"ecs": { | ||
"version": "1.4.0" | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
x-pack/metricbeat/module/googlecloud/loadbalancing/_meta/docs.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Load Balancing metricset to fetch metrics from https://cloud.google.com/load-balancing/[Load Balancing] in Google Cloud Platform. | ||
|
||
The `loadbalancing` metricset contains all metrics exported from the https://cloud.google.com/monitoring/api/metrics_gcp#gcp-loadbalancing[Stackdriver API]. The field names have been left untouched for people already familiar with them. | ||
|
||
[float] | ||
=== Fields | ||
|
||
- `loadbalancing.https.backend_latencies`: A distribution of the latency calculated from when the request was sent by the proxy to the backend until the proxy received from the backend the last byte of response. | ||
- `loadbalancing.https.backend_request_bytes_count`: The number of bytes sent as requests from HTTP/S load balancer to backends. | ||
- `loadbalancing.https.backend_request_count`: The number of requests served by backends of HTTP/S load balancer. | ||
- `loadbalancing.https.backend_response_bytes_count`: The number of bytes sent as responses from backends (or cache) to HTTP/S load balancer. | ||
- `loadbalancing.https.frontend_tcp_rtt`: A distribution of the RTT measured for each connection between client and proxy. | ||
- `loadbalancing.https.request_bytes_count`: The number of bytes sent as requests from clients to HTTP/S load balancer. | ||
- `loadbalancing.https.request_count`: The number of requests served by HTTP/S load balancer. | ||
- `loadbalancing.https.response_bytes_count`: The number of bytes sent as responses from HTTP/S load balancer to clients. | ||
- `loadbalancing.https.total_latencies`: A distribution of the latency calculated from when the request was received by the proxy until the proxy got ACK from client on last response byte. | ||
- `loadbalancing.l3.internal.egress_bytes_count`: The number of bytes sent from ILB backend to client (for TCP flows it's counting bytes on application stream only). | ||
- `loadbalancing.l3.internal.egress_packets_count`: The number of packets sent from ILB backend to client of the flow. | ||
- `loadbalancing.l3.internal.ingress_bytes_count`: The number of bytes sent from client to ILB backend (for TCP flows it's counting bytes on application stream only). | ||
- `loadbalancing.l3.internal.ingress_packets_count`: The number of packets sent from client to ILB backend. | ||
- `loadbalancing.l3.internal.rtt_latencies`: A distribution of RTT measured over TCP connections for ILB flows. | ||
- `loadbalancing.tcp_ssl_proxy.closed_connections`: Number of connections that were terminated over TCP/SSL proxy. | ||
- `loadbalancing.tcp_ssl_proxy.egress_bytes_count`: Number of bytes sent from VM to client using proxy. | ||
- `loadbalancing.tcp_ssl_proxy.frontend_tcp_rtt`: A distribution of the smoothed RTT (in ms) measured by the proxy's TCP stack, each minute application layer bytes pass from proxy to client. | ||
- `loadbalancing.tcp_ssl_proxy.ingress_bytes_count`: Number of bytes sent from client to VM using proxy. | ||
- `loadbalancing.tcp_ssl_proxy.new_connections`: Number of connections that were created over TCP/SSL proxy. | ||
- `loadbalancing.tcp_ssl_proxy.open_connections`: Current number of outstanding connections through the TCP/SSL proxy. |
Oops, something went wrong.