Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Python Client for Stackdriver Monitoring

Project Description
Python idiomatic client for Stackdriver Monitoring

Quick Start

$ pip install --upgrade google-cloud-monitoring

Authentication

With google-cloud-python we try to make authentication as painless as possible. Check out the Authentication section in our documentation to learn more. You may also find the authentication document shared by all the google-cloud-* libraries to be helpful.

Using the API

Stackdriver Monitoring (Monitoring API docs) collects metrics, events, and metadata from Google Cloud Platform, Amazon Web Services (AWS), hosted uptime probes, application instrumentation, and a variety of common application components including Cassandra, Nginx, Apache Web Server, Elasticsearch and many others. Stackdriver ingests that data and generates insights via dashboards, charts, and alerts.

This package currently supports all Monitoring API operations other than writing custom metrics.

List available metric types:

from google.cloud import monitoring
client = monitoring.Client()
for descriptor in client.list_metric_descriptors():
    print(descriptor.type)

Display CPU utilization across your GCE instances during the last five minutes:

metric = 'compute.googleapis.com/instance/cpu/utilization'
query = client.query(metric, minutes=5)
print(query.as_dataframe())

See the google-cloud-python API monitoring documentation to learn how to connect to Stackdriver Monitoring using this Client Library.

Release History

Release History

This version
History Node

0.27.0

History Node

0.26.0

History Node

0.25.0

History Node

0.24.0

History Node

0.23.0

History Node

0.22.0

History Node

0.21.0

History Node

0.20.0

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
google_cloud_monitoring-0.27.0-py2.py3-none-any.whl (34.8 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Aug 24, 2017
google-cloud-monitoring-0.27.0.tar.gz (42.6 kB) Copy SHA256 Checksum SHA256 Source Aug 24, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting