python CLI for monitoring metrics of amazon RDS instances
Project description
rdsmon
commandline tool for monitoring aws RDS instances
Quick Start
The requirements for using rdsmon are relatively straight forward, however you will need:
Installation
Install the tool - pip install rdsmon (to install the latest version)
Authentication
Typically you require an access token for a user that is configured for rds accessibility using
aws IAM roles. Once your user has been created, you will require an access key and this
should be either configured on disk, or exposed to the environment running rdsmon. It is
completely unadvised to user the root user and the account running the tool should have as
minimal permissions as possible. The IAM capabilities required by the tool are:
- Todo
Important: Properly configured IAM roles/users should be in place, tokens should be kept secure,
under no circumstances should you share them with anybody. rdsmon utilises the same mechanisms
by the boto3 aws SDK for credential detection and usage.
To better understand IAM user and policies, please refer to:
Configuration on disk
Once you have appropriate IAM roles and have created an access_key, these should be stored in:
~/.aws/credentials
[default]
aws_access_key_id = YOUR_ACCESS_KEY
aws_secret_access_key = YOUR_SECRET_KEY
You may also want to add a default region to the aws configuration file, this should be set in:
~/.aws/config
[default]
region=us-east-1
Monitoring an RDS instance
Todo
Contributing to rdsmon
Ensure you have python3.11+ installed and poetry:
git clone https://github.com/symonk/rdsmon
cd rdsmon
poetry shell
poetry install
This will create an editable install, you can point your IDE to the virtualenv output by poetry shell and begin contributing.
Linting the code is done via tox -e linting, additionally pre-commit install will run the linter before committing automatically.
tox -e py311 will run all tests against python3.11
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rdsmon-0.1.0.tar.gz.
File metadata
- Download URL: rdsmon-0.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1011-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9873db825d75423fe3b04c3724b611e606110b0e4679b95ad465d93163f5748
|
|
| MD5 |
ea1c0718880c2f6382723c688b2b7c17
|
|
| BLAKE2b-256 |
2abcb47ef24129e49e3928611f68e107d508f4df8640aa921d6d53af8b14fb35
|
File details
Details for the file rdsmon-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rdsmon-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1011-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18c2d43e42071ef6819f87627c082848bb054d824bb71ececfa84af2107373ce
|
|
| MD5 |
3d1b936ff0552cab5f20b68d95203f26
|
|
| BLAKE2b-256 |
ee936f8d998ec2714875fb246534bf6fb9d43e1fb05823cf178cea79d4b8583b
|