Google Cloud Platform pubsub metricsetedit

PubSub metricsetf fetches metrics from Pub/Sub topics and subscriptions in Google Cloud Platform.

The pubsub metricset contains all GA stage metrics exported from the Stackdriver API. The field names are aligned to Beats naming conventions with minor modifications to their GCP metrics name counterpart.

No special permissions are needed apart from the ones detailed in the module section of the docs.

This is a default metricset. If the host module is unconfigured, this metricset is enabled by default.


For a description of each field in the metricset, see the exported fields section.

Here is an example document generated by this metricset:

    "@timestamp": "2017-10-12T08:05:34.853Z",
    "cloud": {
        "account": {
            "id": "elastic-observability"
        "provider": "gcp"
    "event": {
        "dataset": "gcp.pubsub",
        "duration": 115000,
        "module": "gcp"
    "gcp": {
        "labels": {
            "resource": {
                "subscription_id": "test-subscription-1"
        "pubsub": {
            "subscription": {
                "backlog_bytes": {
                    "value": 0
    "metricset": {
        "name": "pubsub",
        "period": 10000
    "service": {
        "type": "gcp"