Hello,It is me!

Harry

Professional DevOps Engineer Professional Infra Developer infrastructure Desiginer DevOps consultant

Sunday 15 July 2018

How to Install and Configure PyDash Performance Monitoring Tool on ec2.

  • July 15, 2018
  • by
Hi Everybody,

Today i am going to show you how we can setup performance monitoring tool "PyDash" on aws cloud with Infra Monitoring tool MiTE.



What resources we are going to Create on AWS Cloud ?

   We are going to Create below resources on aws cloud with MiTE AWS Platform Tool.
  1.  EC2 Instance  -  Used to Install pydash application.
  2.  Security Group - we will allow ssh, http, https, and other ports.
  3.  KeyPair  -  We will attach our public ssh key, it will use to access ec2 instance.

 Lets Create EC2 Instance

 Step 1:  Copy Below code.
# What Do You Want to Create?
##==================================================##

# To Create Perfect Infrastructure Please Fill Carefully This file will use in script.
# Please fill only Value. don't need to add more lines.
############################################### Created by: Harry
###############################################  Email : HarryTheDevOpsGuy@Gmail.com


# Basic Details about Project:
##==================================================##
NEW_PROJECT_NAME="Mite AWS Platform"
AWS_SERVICES="EC2"

# AWS Secrets Configuration:
##==================================================##
AWS_ACCOUNT_OWNER="{aws account owner}"
YOUR_AWS_ACCESS_KEY="{Your Access KEY}"
YOUR_AWS_SECRET_KEY="{Your Secret key}"
YOUR_INFRA_REGION="us-east-2"

# EC2 Instance Configuration:
##==================================================##
REQUIRED_PACKAGES="nginx php7.2 git"
WEB_SERVER_ENVIRONMENT="nginx"
PROJECT_DOMAIN_NAME="Harry-pc"
ENVIRONMENT_SETUP="PyDash"
INSTANCE_TYPE="t2.micro"
VOLUME_SIZE="8"

# RDS Server Configuration:
##==================================================##
RDS_INSTANCE_TYPE="db.t2.micro"
RDS_DB_VOLUME_SIZE="8"
#mariadb/postgres/mysql
RDS_DB_ENGINE="mysql"
RDS_DB_ENGINE_VERSION="5.7.21"
RDS_DB_PORT="3306"
RDS_DB_NAMES="db1 db2 db3"
RDS_DB_USERS="user1 user2 user3"


# S3 Bucket Configration:
##=====================================##
S3_BUCKETS_NAME="bucket1 bucket2 bucket3"


# Environment tag Details:
##=====================================##
ENVIRONMENT_REQUESTED_BY="Hari"
ENVIRONMENT_CREATED_BY="Harry The DevOps Guy"
OFFICIAL_EMAIL="HarryTheDevOpsGuy@gmail.com"
ENVIRONMENT_TICKET_ID="1112"


run below commands and paste above code into mite_initial_configs.sh file

mkdir -p ~/AWS_ENVIRONMENT_CONFIGS
vim ~/AWS_ENVIRONMENT_CONFIGS/mite_initial_configs.sh

Modify variable value accordingly and run below commands
 MiTE -e mite --plan

if plan has been executed successfully and everything looks good then we can execute apply command to Create ec2 instance on aws cloud.

MiTE -e mite --apply

 if every thing looks good then pass yes value on the terminal. ec2 instance will be create automatically.




After executed above command successfully then we have to execute below command to install PyDash and it will configure automatically.

MiTE -e mite --ansible --playbook pydash.yml


Once above command will execute successfully you will be able to access PyDash home page.

http://your-server-ip


Thanks for Visiting This Page. I am Harry, I am working as DevOps Engineer since 2015, I like to automate linux stuffs,cloud automation. and my hobby is learning Latest Technologies and Latest DevOps Tools.

0 comments:

Post a Comment

Harry
+91-750-3721-297
Delhi, India

SEND ME A MESSAGE