How to verify that Cloud Pub/Sub actually got the message?

0 votes
Nov 6, 2019 in GCP by anonymous
• 10,080 points
64 views

1 answer to this question.

0 votes

To verify that your Cloud Pub/Sub topic is receiving messages from your job:

  1. Invoke the following command:

     gcloud pubsub subscriptions pull cron-sub --limit 5
  2. View the results. You should see output that looks roughly like the following

     +-------------+----------------+------------+-----------------------------+
     | DATA        | MESSAGE_ID     | ATTRIBUTES | ACK_ID                      |
     +-------------+----------------+------------+-----------------------------+
     | hello cron! | 56344662920621 |            | EkwnGERJUytDCypYEU4EISE-... |
     +-------------+----------------+------------+-----------------------------+
     | hello cron! | 56340561244339 |            | EkwnGERJUytDCypYEU4EISE-... |
     +-------------+----------------+------------+-----------------------------+
     | hello cron! | 56340388879975 |            | EkwnGERJUytDCypYEU4EISE-... |
     +-------------+----------------+------------+-----------------------------+
     | hello cron! | 56337745052761 |            | EkwnGERJUytDCypYEU4EISE...  |
     +-------------+----------------+------------+-----------------------------+
     | hello cron! | 56337890896134 |            | EkwnGERJUytDCypYEU4EISE-... |
     +-------------+----------------+------------+-----------------------------+
answered Nov 6, 2019 by Sirajul
• 53,110 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

How to export a custom image to the cloud storage?

The preferred way to export an image ...READ MORE

answered Oct 18, 2019 in GCP by Sirajul
• 53,110 points
281 views
0 votes
1 answer
0 votes
1 answer

How to verify that my cluster is using routes?

List your cluster nodes: kubectl get nodes The output ...READ MORE

answered Oct 31, 2019 in GCP by Sirajul
• 53,110 points
90 views
0 votes
1 answer

Creating a SQL Server instance using Google Compute engine.

Google Compute Engine provides public images preconfigured with ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 53,110 points
287 views
0 votes
1 answer
0 votes
1 answer

How do i install gcloud compute?

The gcloud compute command-line tool enables you to easily ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 53,110 points
247 views
0 votes
1 answer

How to set up and use Pub/Sub Notifications for Cloud Storage?

The following steps add a notification configuration to your ...READ MORE

answered Nov 21, 2019 in GCP by Sirajul
• 53,110 points
357 views