Metrics importer for Amazon AWS CloudWatch from Prometheus
-
Clone
git clone https://github.com/tivaliy/cloudwatch_importer.git
-
Create isolated Python environment
virtualenv cw_importer_venv
and activate itsource cw_importer_venv/bin/activate
-
Install all necessary dependencies:
pip install -r requirements.txt
-
Configure
config.yaml
to meet your requirements. Specify metrics you want to import to Amazon AWS CloudWatch (metrics
) from Prometheus:url: http://localhost:9090/ aws-region: eu-central-1 namespace: TestNamespace metrics: - go_memstats_alloc_bytes_total - go_goroutines - go_memstats_last_gc_time_seconds
-
Make sure that your
~/.aws/credentials
file is configured properly (or see for more details the ways of how Configuring Credentials) -
Run python
import_metrics.py
script (e.g.python import_metrics.py -c config.yaml
)