Skip to content

xenonstack/deploy-java-app-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Application Deployment, Monitoring & Backup by Ansible

This will Deploy Java App on Tomcat Server with Nginx as a Reverse Proxy Server. Prometheus and Grafana will be deployed for Monitoring.

Perequisites

  • Centos 7
  • Ansible 2.2.1.0
  • Selinux Disabled

Bootstrap

  • Add ssh key of root user to given instance.

Update Configurations files

  • Update the Inventory Files
  • Update vars for Each in there respective directory like :- roles/tomcat/vars/main.yml

Deploy Application and Monitoring Stack

ansible-playbook main.yml -i inventory

To view Running Application

Update your hosts file with following entries.

* <ip address of centos 7 machine>
* tomcat.demo.com
* promethous.demo.com
* grafana.demo.com

Note: You need to add data source in grafana dashboard manually to view graphs for mysql and application monitoring. Name should be "Prometheus" of datasource.

Add Graphs in Grafana

Add following mentioned json file for Graphs to Grafana Dashboard. add all the json file from graph folder to grafana server

For Backup of Mysql Database

ansible-playbook backup.yml -i inventory

For Restore of Mysql Database from sql file

ansible-playbook restore.yml -i inventory

About

Deploy's Spring App with Ansible and Setup Monitoring and Backup of MySQL Database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages