Skip to main content

python CLI for monitoring metrics of amazon RDS instances

Project description

version codecov docs

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:

AWS IAM user creation

AWS Access Tokens

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rdsmon-0.1.0.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

rdsmon-0.1.0-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page