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 2 3 4 5 6 |
resource "percona_pmm" "pmm" { instance_type = "t3.micro" key_pair_name = "sshKey1" path_to_key_pair_storage = "/tmp/" volume_type = "gp2" } |
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 2 3 4 5 6 7 8 9 10 11 |
resource "percona_ps" "ps" { count = 1 instance_type = "t3.micro" # for AWS key_pair_name = "sshKey1" password = "password" replication_type = "async" replication_password = "replicaPassword" cluster_size = 3 path_to_key_pair_storage = "/tmp/" } |
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