This code uses python to publish computer statistics to BigQuery using Pub/Sub and Cloud Functions.
Table of Contents
-
Wouldn't it be great to see how your computers' CPU usage and other stats change over time, stornig it for future analysis?
-
In this project, I use python to publish data to Google Pub/Sub, and use Google Functions on-demand computing to take published data and store it in BigQuery for future use.
- Installing all Required Packages
pip install -r requirements.txt
-
Open a Google Cloud Platform Account and create a new project.
-
Open the IAM & Admin page, set up permissions and obtain an API key.
- Set up the Cloud Function to pull the Pub/Sub data when it's published and append it to BigQuery.
- Use Pub/Sub Metrics and Logs to troubleshoot any issues you have.
- Use BigQuery to check query your computers' stats over time.
Jared Fiacco - jaredfiacco2@gmail.com
Another GCP Project of Mine: Transcribe Podcasts, Save to GCP Firebase
This project was inspired by: IOT Weather Station using Pub/Sub PubSub to BigTable Using Cloud Functions