# Enrich PubSub for Google Cloud
> Standalone JVM application for enriching Snowplow events from Google Cloud PubSub with configurable enrichments and validation.
> Source: https://docs.snowplow.io/docs/api-reference/enrichment-components/enrich-pubsub/
> Documentation index: https://docs.snowplow.io/llms.txt

`enrich-pubsub` is a standalone JVM application that reads from and writes to PubSub topics. It can be run from anywhere, as long as it has permissions to access the topics.

It is published on Docker Hub and can be run with the following command:

```bash
docker run \
-it --rm \
-v $PWD:/snowplow \
-e GOOGLE_APPLICATION_CREDENTIALS=/snowplow/snowplow-gcp-account-11aa55ff6b1b.json \
snowplow/snowplow-enrich-pubsub:6.15.0 \
--enrichments /snowplow/enrichments \
--iglu-config /snowplow/resolver.json \
--config /snowplow/config.hocon
```

Above assumes that you have following directory structure:

1. GCP credentials [JSON file](https://cloud.google.com/docs/authentication/getting-started)
2. `enrichments` directory, (possibly empty) with all [enrichment configuration JSONs](/docs/pipeline/enrichments/available-enrichments/)
3. Iglu Resolver [configuration JSON](/docs/api-reference/iglu/iglu-resolver/)
4. enrich-pubSub [configuration HOCON](/docs/api-reference/enrichment-components/configuration-reference/)

It is possible to use environment variables in all of the above (for Iglu and enrichments starting from `3.7.0` only).

Configuration guide can be found on [this page](/docs/api-reference/enrichment-components/configuration-reference/) and information about the monitoring on [this one](/docs/api-reference/enrichment-components/monitoring/).

**Telemetry notice**

By default, Snowplow collects telemetry data for Enrich PubSub (since version 3.0.0). Telemetry allows us to understand how our applications are used and helps us build a better product for our users (including you!).

This data is anonymous and minimal, and since our code is open source, you can inspect [what’s collected](https://raw.githubusercontent.com/snowplow/iglu-central/master/schemas/com.snowplowanalytics.oss/oss_context/jsonschema/1-0-1).

If you wish to help us further, you can optionally provide your email (or just a UUID) in the `telemetry.userProvidedId` configuration setting.

If you wish to disable telemetry, you can do so by setting `telemetry.disable` to `true`.

See our [telemetry principles](/docs/get-started/self-hosted/telemetry/) for more information.
