jrd / capp-monitoring

Monitoring app for capp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Capp monitoring

Generate SSH private/public keys

You should already have your own (for gitlab, …)

But in case, you generate a new pair like this:

ssh-keygen -t rsa

Register the public key on the capp server

ssh <server-name> pubkeys add '"'"$(cat ~/.ssh/id_rsa)"'"'

Give the private key location when creating the release with create-release.

Specificities of this project

Although heavily based on stefanprodan's dockerprom, this project integrates some specificities:

  • adaptations for the creation of dca archives for easy deployment on a capp server.
  • deletion of caddy reverse proxy: capp nginx proxy will replace it on deployment.

Configurations

Two configurations are provided:

  • example to copy as staging or prod environment.
  • dev for local testing. For local testing, please make sure that docker-compose has access to the ./confs/dev/context directory, as seen in the following chapter.

For each configuration, please update the password and username data in confs/ENV/context/config file before deployment.

First run:

./create-docker-envs-json

Usage for dev

For dev environment, a reverse proxy is needed. We use caddy, that we added in context/docker-compose.dev.yml. Launch the service by combining the two compose files:

TODO
cp -r context/healthchecker ../confs/dev/
docker-compose -f docker-compose.yml -f docker-compose.dev.yml --project-directory $PWD/../confs/dev/context up -d

General documentation

A monitoring solution for Docker hosts and containers with Prometheus, Grafana, cAdvisor, NodeExporter, Capp Healthchecker and alerting with AlertManager.

Containers:

Setup Grafana

Navigate to https://monitoring.<server-name> and login with user admin password admin. You can change the credentials in the compose file or by supplying the ADMIN_USER and ADMIN_PASSWORD environment variables on compose up.

About

Monitoring app for capp

License:MIT License


Languages

Language:Python 88.9%Language:Shell 6.1%Language:Dockerfile 4.9%