DEV Community

Vigilmon
Vigilmon

Posted on

How to Monitor Your Jenkins Pipeline with Vigilmon

How to Monitor Your Jenkins Pipeline with Vigilmon

Jenkins remains one of the most popular CI/CD tools, powering thousands of production deployments daily. But Jenkins itself can fail — and when it does, your entire delivery pipeline stops. This guide shows you how to monitor Jenkins and the applications it deploys using Vigilmon.

The Jenkins Monitoring Stack

You need to monitor at two levels:

  1. Jenkins itself — is the Jenkins master reachable?
  2. Deployed applications — did the Jenkins pipeline deploy successfully?

Monitoring Jenkins Health

Jenkins Health Check Endpoint

Create a Vigilmon monitor pointing to the Jenkins login page:
https://jenkins.yourdomain.com/login

  1. Sign in at vigilmon.online
  2. + New Monitor → URL: https://jenkins.yourdomain.com/login
  3. Check interval: 1 minute
  4. Expected status: 200 OK
  5. Alert channel: Slack #devops + email

Monitoring Deployed Applications

Every app deployed by Jenkins should have a health endpoint:

# Django example
from django.http import JsonResponse
import os

def health_check(request):
    return JsonResponse({'status': 'ok', 'build': os.environ.get('BUILD_NUMBER')})
Enter fullscreen mode Exit fullscreen mode

Create separate Vigilmon monitors for each deployed service.

Adding Post-Deploy Verification to Jenkinsfile

Add a verification stage to your Jenkinsfile:

pipeline {
    agent any

    stages {
        stage('Build') {
            steps {
                sh 'npm run build'
            }
        }

        stage('Deploy') {
            steps {
                sh './deploy.sh'
            }
        }

        stage('Verify') {
            steps {
                sleep 30
                sh 'curl --fail https://yourdomain.com/health || exit 1'
                echo 'Deployment verified'
            }
        }
    }

    post {
        failure {
            slackSend channel: '#ops',
              message: "Build FAILED: ${env.JOB_NAME} #${env.BUILD_NUMBER}"
        }
    }
}
Enter fullscreen mode Exit fullscreen mode

Jenkins + Vigilmon Alerting Flow

  1. Jenkins pipeline fails → Jenkins Slack plugin notifies #ops
  2. App goes down post-deploy → Vigilmon alerts #ops + PagerDuty
  3. SSL cert expiring → Vigilmon emails 30 days before expiry
  4. Jenkins itself goes down → Vigilmon pages on-call engineer

This gives you complete coverage from CI to production.

Monitoring Jenkins Agents

If you run distributed Jenkins agents, monitor each agent machine to catch agent failures before builds queue up.

Conclusion

Jenkins + Vigilmon gives you full-stack CI/CD monitoring:

  • ✅ Jenkins master uptime monitoring
  • ✅ Application health checks post-deploy
  • ✅ SSL certificate tracking
  • ✅ Slack/PagerDuty/email alerts
  • ✅ Public status pages for deployed services

Take 5 minutes to set up Vigilmon monitoring for your Jenkins environment. Free tier at vigilmon.online.

Top comments (0)