https://github.com/dutterbutter/gran-canarias
https://github.com/dutterbutter/gran-canarias
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dutterbutter/gran-canarias
- Owner: dutterbutter
- Created: 2021-05-30T02:16:05.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-10T02:59:11.000Z (about 5 years ago)
- Last Synced: 2025-05-31T15:11:18.459Z (about 1 year ago)
- Language: HCL
- Size: 49.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform Module for Monitoring using Prometheus, Alertmanager and Grafana
This Terraform module makes it easy to setup [Prometheus](https://prometheus.io), [Alertmanager](https://prometheus.io/docs/alerting/latest/alertmanager) and [Grafana](https://grafana.com/) on AWS.
## Usage
In order to get the module you will have to (re)initialize Terraform:
```
terraform init
```
Now you can deploy to AWS:
```
terraform apply
```
This will create the necessary EC2 instances, the S3 bucket which is used for configuration, the necessary IAM configuration as well as the security groups.
## Configuration
This Terraform module uses a S3 bucket to store the configuration for Prometheus, Alertmanager and Grafana.
To use your own configuration you have to apply the following folder structure:
```
- config
- alertmanager
- alertmanager.yml
- grafana
- provisioning
- dashboards
dashboard.yml
- datasources
datasource.yml
- grafana.ini
- prometheus
- prometheus.yml
- rules.yml
```
Sync your configuration to your S3 bucket and redeploy the module to get Prometheus, Alertmanager and Grafana to use your latest configuration.
```
aws s3 sync config s3://my-monitoring-config
```