<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>

# 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
