Skip to content

Commit df2e832

Browse files
committed
Use "betterstack" Google bucket, add releasing instructions
1 parent f896c9a commit df2e832

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A Dataflow Flex template that reads messages from Pub/Sub and sends them to Bett
77
1. Go to Google Cloud Console -> Dataflow -> [Create job from template](https://console.cloud.google.com/dataflow/createjob)
88
2. Choose the name and region for the Dataflow job
99
3. Select **Custom Template**
10-
4. As Template path, use `better-stack-gcs-dataflow/pubsub-to-betterstack.json`
10+
4. As Template path, use `betterstack/pubsub-to-betterstack.json`
1111
5. Set parameters based on your Google Cloud Pub/Sub Subscription and [Better Stack Telemetry source](https://telemetry.betterstack.com/team/260195/sources)
1212
6. Click **Run job**
1313

@@ -23,7 +23,7 @@ INGESTING_HOST=<your-better-stack-ingesting-host>
2323
2. Create a Dataflow job using the template
2424
```bash
2525
gcloud dataflow flex-template run "pubsub-to-betterstack-$(date +%Y%m%d-%H%M%S)" \
26-
--template-file-gcs-location=gs://better-stack-gcs-dataflow/pubsub-to-betterstack.json \
26+
--template-file-gcs-location=gs://betterstack/pubsub-to-betterstack.json \
2727
--parameters input_subscription=$INPUT_SUBSCRIPTION \
2828
--parameters better_stack_source_token=$SOURCE_TOKEN \
2929
--parameters better_stack_ingesting_host=$INGESTING_HOST \
@@ -41,6 +41,21 @@ The template supports the following optional parameters:
4141

4242
You can include these parameters in your Dataflow job by adding them to the run command, e.g. `gcloud dataflow flex-template run ... --parameters window_size=30`.
4343

44+
## Releasing new version
45+
46+
After making changes, rebuild the Docker image and the Dataflow template:
47+
48+
```bash
49+
docker build --tag betterstack/gcp-dataflow-pubsub-to-betterstack .
50+
docker push betterstack/gcp-dataflow-pubsub-to-betterstack
51+
gcloud dataflow flex-template build gs://betterstack/pubsub-to-betterstack.json \
52+
--image "docker.io/betterstack/gcp-dataflow-pubsub-to-betterstack" \
53+
--sdk-language "PYTHON" \
54+
--metadata-file "metadata.json"
55+
```
56+
57+
Requires access to `betterstack` Docker Hub repository, and `betterstack` Google Cloud Bucket.
58+
4459
## License
4560

4661
ISC License. See [LICENSE.md](LICENSE.md) for details.

0 commit comments

Comments
 (0)