In this article, the following aspects of using Prometheus and Grafana will be demonstrated:

TL;TR

  1. One Grafana server presenting data from multiple Prometheus resources.
  2. Each dashboard would show only selected Prometheus datasources (not all configured datasources are relevant to all of the dashboards)
  3. Present only the relevant data from each datasource according to the dashboard content. (For example in case the dashboard panel present one storage mount which has a different mount requirements per server).
  4. Useful dashboards for your needs:
    - Host / VM Resources ( CPU, RAM, Storage and I/O, Network).
    - Docker Containers (Use of resources per container).

In the next article I will present monitoring Jenkins and JVM with Prometheus and Grafana. Stay tuned ;-)
- Jenkins Builds (Total, Successful, Unstable, Failed, Queue etc.).
- Jenkins JVM (Memory and GC stats for performance analysis). …


If the default `docker ps` bothers you, here is a tiny script that can easily help customise its output.

Select your preferred arguments and the order they appear

Usage:

./docker-ps.sh -aiIcCRpsSNLli:mn

Image for post
Image for post

Git project:

Available arguments:

Image for post
Image for post

TL;TR

Jenkins can be used to create maintain and destroy multiple AWS infrastructures environments using Terraform code.

  1. Jenkins is run with the following parameters:
  • AWS region
  • Environment name
  • Action (Plan /Apply / Destroy)
  • Profile (AWS credentials to be used)
  • Email

2. Jenkins fetch the Terraform code from the git repository.

3. Jenkins create, maintain or destroy the environment from the parameter using the Terraform code according to the action required.

In this post, we will demonstrate how multiple Terraform lifecycle infrastructures can be easily and dynamically managed and maintained per environment with Jenkins.

Image for post
Image for post

Terraform:

Terraform introduces infrastructure as code and provides the ability to create, update and destroy any kind of component and environment infrastructures in the cloud. Once provided with the credentials, region, and the required resources, it will be able to create the requested infrastructure. …

About

Natan Bensoussan

DevOPs engineer at Tikal Knowledge (Fullstack as a Service) https://www.linkedin.com/in/natanb

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store