Skip to main content

Graphite AWS Cleaner

Delete old graphite data based on instance name pattern and current running AWS instances.

This is very useful if you have AWS instances that are terminated and you no longer need their metrics, so you can just remove their stats.

It is required to have AWS credentials set via environment variables (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY) or IAM roles.

Installation

$ pip install graphite_aws_cleaner

Usage

# aws context
web_i-123 # running
web_i-456 # running
web_i-789 # terminated


$ graphite-aws-cleaner '*web*' /opt/graphite/storage

This is going to delete all graphite data related to web_i-789, since the instance is no longer runnning.

Patterns

Anything that matches Python’s fnmatch.fnmatch works as a pattern:

Pattern

Meaning

*

matches everything

?

matches any single character

[seq]

matches any character in seq

[!seq]

matches any character not in seq

Development

$ make setup

Running tests

$ make test

Metadata

Release files for graphite_aws_cleaner 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for graphite_aws_cleaner 0.0.3
File Size Uploaded Provenance
graphite_aws_cleaner-0.0.3.tar.gz 3.7 kB Without provenance Details

Release files / graphite_aws_cleaner-0.0.3.tar.gz

Download URL graphite_aws_cleaner-0.0.3.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6a47697455d0375896daa6064e6f6a4023c990ecbe33bec38fa866616e973db0
BLAKE2b-256 checksum
How to use checksums
d6d1aca63bf889aca8ac66e06fd5e6c3c1cdc9e0de712a7392166ef8b8b36882
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for graphite_aws_cleaner 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page