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.
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
Built Distribution
File details
Details for the file google-cloud-monitoring-0.25.0.tar.gz
.
File metadata
- Download URL: google-cloud-monitoring-0.25.0.tar.gz
- Upload date:
- Size: 26.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d3f5b6eb4384c8e28e3e4f7a9e3d4e232d622cc5105cb7461daffd09fada037 |
|
MD5 | f477e12b60ae6b5ad805705a72a27b74 |
|
BLAKE2b-256 | f2f1bc6ef7bd211bc394ed961351b4a44998fa33c9bec83ffe40e40670f02af8 |
Provenance
File details
Details for the file google_cloud_monitoring-0.25.0-py2.py3-none-any.whl
.
File metadata
- Download URL: google_cloud_monitoring-0.25.0-py2.py3-none-any.whl
- Upload date:
- Size: 34.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aac18880b369cdec8b2657a5cf63c9807783d75fdd6f9ef43c4fb2fa349c839f |
|
MD5 | 5bf28729a9e9e78c81d8de266c9cc2ac |
|
BLAKE2b-256 | 9748374db03ba2f76d78c4aae4c27d3d2880e639e89a246af103b161c7b0fc13 |