Recently, we released Percona Monitoring and Management 2.34 (PMM) which includes upgrades for backup and Database as a Service (DBaaS) features, and we are seeking ways to simplify PMM deployment.
Previously I wrote about our Terraform provider to deploy Percona Server for MySQL — Percona Server for MySQL: Automatic Cloud Deployment with Terraform — and now we added capabilities to deploy PMM with Terraform.
You need the provider version 0.9.10 and PMM can be deployed as:
|
1 |
resource "percona_pmm" "pmm" {<br> instance_type = "t3.micro" <br> key_pair_name = "sshKey1" <br> path_to_key_pair_storage = "/tmp/" <br> volume_type = "gp2" <br>}<br> |
Overall I like using Terraform as it offers the following benefits:
As another example, we also added PMM monitoring when deploying Percona Server for MySQL instances with Terraform:
|
1 |
resource "percona_ps" "ps" {<br> count = 1<br> instance_type = "t3.micro" # for AWS<br> key_pair_name = "sshKey1"<br> password = "password"<br> replication_type = "async" <br> replication_password = "replicaPassword"<br> cluster_size = 3<br> path_to_key_pair_storage = "/tmp/"<br> pmm_address = "http://admin:[email protected]" <br>}<br> |
The source code for our Terraform provider is here:
And you are welcome to use our prepackaged binaries from Percona-Lab/percona | Terraform Registry.
Percona Monitoring and Management is a best-of-breed open source database monitoring solution. It helps you reduce complexity, optimize performance, and improve the security of your business-critical database environments, no matter where they are located or deployed.
[button link=”https://www.percona.com/software/database-tools/percona-monitoring-and-management” color=”green”] Download Percona Monitoring and Management Today[/button]
Resources
RELATED POSTS