Google Cloud Platform logo # Google Cloud Functions - Logging and Monitoring sample * [Writing and Viewing Logs from Cloud Functions documentation][docs] * [Viewing Cloud Functions monitored metrics documentation][docs2] * [Background functions sample source code][code] [docs]: https://cloud.google.com/functions/docs/monitoring/logging [docs2]: https://cloud.google.com/functions/docs/monitoring/metrics [code]: index.js ## Deploy and run the sample See the [Writing and Viewing Logs from Cloud Functions documentation][docs]. ## Run the tests 1. Read and follow the [prerequisites](../../#how-to-run-the-tests). 1. Install dependencies: npm install 1. Run the tests: npm test