Skip to content

Latest commit

 

History

History
96 lines (64 loc) · 3.1 KB

README.md

File metadata and controls

96 lines (64 loc) · 3.1 KB

LinkedIn


Logo

Monitor Computer's Stats, Store in Google Cloud

This code uses python to publish computer statistics to BigQuery using Pub/Sub and Cloud Functions.

Table of Contents
  1. About The Project
  2. Prerequisites & Instructions
  3. Contact

About The Project

  • 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.

Process Map

Built With

Prerequisites & Instructions

  1. Installing all Required Packages
pip install -r requirements.txt
  1. Open a Google Cloud Platform Account and create a new project.

  2. Open the IAM & Admin page, set up permissions and obtain an API key.

set up permissions

  1. Set up the Cloud Function to pull the Pub/Sub data when it's published and append it to BigQuery.

set up cloud fucntions

  1. Use Pub/Sub Metrics and Logs to troubleshoot any issues you have.

check pub/sub metrics and logs

  1. Use BigQuery to check query your computers' stats over time.

use BigQuery to query the stats

Contact

Jared Fiacco - [email protected]

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