Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trailbehind/aws-utilities
Collection of scripts for interacting with Amazon Web Services
https://github.com/trailbehind/aws-utilities
aws cloudwatch rabbitmq
Last synced: 3 days ago
JSON representation
Collection of scripts for interacting with Amazon Web Services
- Host: GitHub
- URL: https://github.com/trailbehind/aws-utilities
- Owner: trailbehind
- Created: 2016-05-05T13:35:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-05-12T17:40:20.000Z (over 2 years ago)
- Last Synced: 2023-04-21T10:26:32.325Z (over 1 year ago)
- Topics: aws, cloudwatch, rabbitmq
- Language: Python
- Size: 14.6 KB
- Stars: 9
- Watchers: 17
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS-Utilities
Collection of scripts for interacting with Amazon Web Services## download-rds-logs.py
Backup AWS RDS instance logs.Log files that have already been downloaded will not be re-downloaded.
Options
```
Usage: download-rds-logs.py -i my-instance-idOptions:
-h, --help show this help message and exit
-d, --debug Turn on debug logging
-q, --quiet turn off all logging
-i INSTANCE, --instance=INSTANCE
instance name
-o OUTPUT_DIR, --output=OUTPUT_DIR
output directory
-r REGION, --region=REGION
AWS region
```Example usage and output:
```
$ python download-rds-logs.py -i my-instance-id
INFO:root:AdditionalDataPending:True Marker:14:438625
INFO:root:requesting error/postgresql.log.2016-05-04-22 marker:14:438625 chunk:1
INFO:root:AdditionalDataPending:True Marker:14:891049
INFO:root:requesting error/postgresql.log.2016-05-04-22 marker:14:891049 chunk:2
INFO:root:AdditionalDataPending:True Marker:14:1320763
INFO:root:requesting error/postgresql.log.2016-05-04-22 marker:14:1320763 chunk:3
INFO:root:AdditionalDataPending:True Marker:14:1758515
INFO:root:requesting error/postgresql.log.2016-05-04-22 marker:14:1758515 chunk:4
INFO:root:AdditionalDataPending:True Marker:14:2203827
INFO:root:requesting error/postgresql.log.2016-05-04-22 marker:14:2203827 chunk:5
INFO:root:AdditionalDataPending:True Marker:14:2649495
INFO:root:requesting error/postgresql.log.2016-05-04-22 marker:14:2649495 chunk:6
INFO:root:AdditionalDataPending:True Marker:14:3092815
INFO:root:requesting error/postgresql.log.2016-05-04-22 marker:14:3092815 chunk:7
INFO:root:AdditionalDataPending:False Marker:14:3532449
```## rabbitmq-to-cloudwatch.py
Publish rabbit-mq queue depths as an AWS cloudwatch metric.Runs as a loop and publishes every 5 minutes.
No command line options.