Skip to main content

Stackdriver Monitoring API client library

Project description

Python idiomatic client for Stackdriver Monitoring

pypi versions

Quick Start

$ pip install --upgrade google-cloud-monitoring

For more information on setting up your Python development environment, such as installing pip and virtualenv on your system, please refer to Python Development Environment Setup Guide for Google Cloud Platform.

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.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

google-cloud-monitoring-0.28.1.tar.gz (43.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

google_cloud_monitoring-0.28.1-py2.py3-none-any.whl (35.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file google-cloud-monitoring-0.28.1.tar.gz.

File metadata

File hashes

Hashes for google-cloud-monitoring-0.28.1.tar.gz
Algorithm Hash digest
SHA256 534d66d97611c9c6e08823532f5144f6786d3a6103a6d5ed6411ac465faa5341
MD5 dc1bb51c87b4cc7097717d9f57b388f1
BLAKE2b-256 bb9bcb40fe7bfbb57ba4f031c93d5353e58c0f2cc0060e00c4871a90360ae2d4

See more details on using hashes here.

File details

Details for the file google_cloud_monitoring-0.28.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for google_cloud_monitoring-0.28.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c7a336a469cf186e3621fe36bf0e4f291ea43a76b4a532b744a167d756a8170d
MD5 d236e5d390d1b95ab5aa25d4918255b7
BLAKE2b-256 689967195b899d8e1189807130062ba68018533677879590673028671fe4c570

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page