Skip to main content

Python Client for Stackdriver Monitoring

Project description

Python idiomatic client for Stackdriver Monitoring

pypi versions

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.

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.24.0.tar.gz (42.8 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.24.0-py2.py3-none-any.whl (60.8 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for google-cloud-monitoring-0.24.0.tar.gz
Algorithm Hash digest
SHA256 71d944046967e14d1223717ad3be598b8cea857bd59910fc52408c9ec5a8940e
MD5 3751b1205ad1c060693827187c24f68a
BLAKE2b-256 1f4650472137007f3cb99dc462c9169523b321e8e9c10e951023ff35224fd5b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_cloud_monitoring-0.24.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b6b10a1ddafc0f0f17aaeb45874a6e46783e7b395733e3bb61ced9c13a8cbece
MD5 d4c4b993add57562543ba677340babc2
BLAKE2b-256 ade0acb142dbef3f8872507ece6a1879c264cf590663b7ae17a8e59ce3d316fb

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