PMMServer

by perconalab
17 deployments · 11 still active · last rev. 21 days ago

Basic Percona Monitoring and Management (PMM) Server Deployment

Compatible with: Ubuntu 18.04 LTS
						#!/bin/bash

#!/bin/bash
# This block defines the variables the user of the script needs to input
# when deploying using this script.
#
#
#<UDF name="hostname" label="The hostname for the new Linode.">
# HOSTNAME=
#

echo "StackScript Started" > /tmp/stackscript

# This section sets the hostname.
echo $HOSTNAME > /etc/hostname
hostname -F /etc/hostname

# Docker
apt -y install docker.io

systemctl enable docker.service

#PMM 

docker pull percona/pmm-server:latest

docker create \
   -v /opt/prometheus/data \
   -v /opt/consul-data \
   -v /var/lib/mysql \
   -v /var/lib/grafana \
   --name pmm-data \
   percona/pmm-server:latest /bin/true

docker run -d \
   -p 80:80 \
   --volumes-from pmm-data \
   --name pmm-server \
   --restart always \
   percona/pmm-server:latest


echo "StackScript Finished" > /tmp/stackscript

#