Ir al contenido principal

Destacado

Monitoring your micro services with Spring Boot Admin

This new joetip is for those who have in their architecture some micro-services developed with Spring Boot and are already using some Spring Cloud projects such as Spring Cloud Config and Spring Cloud Eureka as Discovery server.

The Spring Boot Admin is a project developed by CodeCentric which is available for free at https://github.com/codecentric/spring-boot-admin so we can monitor our microservices.

In order for these micro-services to be monitored, we have 2 options:


Placing the dependency of spring boot admin client on each projectOr configuring the Eureka (Consul or Zookeeper) so that you can monitor the micro-services that are already registered in it.

I will explain step by step what has to be done to work with the spring boot admin in our microservices cluster. But, if you are impatient and already want to try it, here is the GitHub repository: https://github.com/joedayz/spring-boot-admin-cloud-finchley.

For my demos I will use the following projects and the following versions…

JoeTip #004: Instalando Python 3 y Django 1.6 en Rackspace - Parte I


Instalando Development tools


$yum groupinstall "Development tools"
$yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel

Instalando Python 3


Instalare la última versión disponible.


Luego en mi servidor Kratos en Rackspace instalare Python3 de esta manera:

$cd /opt

$wget http://www.python.org/ftp/python/3.3.3/Python-3.3.3.tar.bz2
$tar -xjf Python-3.3.3.tar.bz2
$cd Python-3.3.3

# Configuramos el build con un prefijo (directorio de instalación) de #/opt/python3, compilar, e instalar.
$./configure --prefix=/opt/python3
$make
$sudo make altinstall
Como se puede apreciar la instalación la verificamos de esta manera:

$/opt/python3/bin/python3 -V


El versión del sistema seguirá siendo la 2.6.6 y disponible en  /usr/bin/python y /usr/bin/python2.6.


Instalar Distribute


$ wget https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip --no-check-certificate
$ unzip distribute-0.7.3.zip
$ cd distribute-0.7.3
/opt/python3/bin/python3 setup.py install

Instalar VirtualEnv


Para poder manejar varios entornos de python, cada uno con versión diferente y sus librerías.

$ /opt/python3/bin/easy_install virtualenv

Instalando Django 1.6


$ wget https://www.djangoproject.com/download/1.6.1/tarball/
tar xzvf Django-1.6.1.tar.gz
$ cd Django-1.6.1
sudo /opt/python3/bin/python3.3 setup.py install




En el siguiente post veremos como configurar el apache para que permita desplegar nuestras aplicaciones de Django.

Joe




Comentarios

  1. Bluehost is ultimately the best website hosting company with plans for all of your hosting requirments.

    ResponderEliminar

Publicar un comentario