Skip to content

Instantly share code, notes, and snippets.

View arnecls's full-sized avatar

Arne Claus arnecls

View GitHub Profile
@arnecls
arnecls / delete_custom_metrics.py
Last active February 4, 2022 19:12 — forked from jeffadams/delete_custom_metrics.py
script to delete all custom metrics from a stackdriver account
#!/usr/bin/env python
from google.cloud import monitoring_v3
'''
Requires you to be logged in via `gcloud auth application-default login`.
'''
project_id = 'my-project-id' # change project id here
metrics_prefix = 'custom.googleapis.com'