Google Cloud's operations suite provides monitoring, logging, and diagnostics for Python apps.
Python libraries are available for the following Google Cloud's operations suite services:
Cloud Debugger lets you inspect the state of a Python app, at any code location, without stopping or slowing down the running app. To get started with Cloud Debugger, see Setting up Cloud Debugger for Python.
Cloud Logging lets you store, search, analyze, monitor, and set alerts on log data and events in Python apps. Logging provides Bunyan and Winston plugins, as well as a Cloud Logging API client library. To get started with Logging, see Setting up Cloud Logging for Python.
Cloud Monitoring collects metrics, events, and metadata from Python apps. Google Cloud's operations suite uses that data to generate dashboards, charts, and alerts.
For more information, see the following topics:
- Cloud Client Libraries for the Cloud Monitoring API
- Creating custom metrics
- Reading metrics
- Browsing metrics
- Python client library for the Cloud Monitoring API on GitHub
Cloud Trace is a distributed tracing system for Google Cloud that collects latency data from apps and displays it in near real time in the Google Cloud console. For more information, see Cloud Trace documentation.
Cloud Profiler is a statistical, low-overhead profiler that continuously gathers CPU usage and memory-allocation information from your production applications. It attributes that information to the application's source code, helping you identify the parts of the application consuming the most resources, and otherwise illuminating the performance characteristics of the code. For more information, see Profiling Python apps.